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/d23d779223aa
branches:  trunk
changeset: 326663:d23d779223aa
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 990313bd0d17 -r d23d779223aa 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