pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/geckodriver www/geckodriver: Use cargo in do-install



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df893a446b08
branches:  trunk
changeset: 388663:df893a446b08
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Dec 12 04:51:35 2018 +0000

description:
www/geckodriver: Use cargo in do-install

diffstat:

 www/geckodriver/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 838d902bb9cb -r df893a446b08 www/geckodriver/Makefile
--- a/www/geckodriver/Makefile  Wed Dec 12 02:08:15 2018 +0000
+++ b/www/geckodriver/Makefile  Wed Dec 12 04:51:35 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2018/09/21 21:26:33 minskim Exp $
+# $NetBSD: Makefile,v 1.6 2018/12/12 04:51:35 minskim Exp $
 
 DISTNAME=      geckodriver-0.20.1
 CATEGORIES=    www
@@ -98,8 +98,8 @@
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
 
 do-install:
-       ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/target/release/geckodriver ${DESTDIR}${PREFIX}/bin
+       cd ${WRKSRC} && ${PREFIX}/bin/cargo install --root ${DESTDIR}${PREFIX}
+       rm ${DESTDIR}${PREFIX}/.crates.toml
 
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index