diff options
author | minskim <minskim@pkgsrc.org> | 2018-10-25 00:35:22 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2018-10-25 00:35:22 +0000 |
commit | ff636f252d393f08727c2b29b864802507832ea1 (patch) | |
tree | 3987a84b63262426daa5592dc20a82a33f4d0645 | |
parent | d877a75819fe7454bb3562ef63bb26947df94ae7 (diff) | |
download | pkgsrc-ff636f252d393f08727c2b29b864802507832ea1.tar.gz |
textproc/ripgrep: Install with cargo, rather than manually
-rw-r--r-- | textproc/ripgrep/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/textproc/ripgrep/Makefile b/textproc/ripgrep/Makefile index af8ef4a9258..afdb22348f5 100644 --- a/textproc/ripgrep/Makefile +++ b/textproc/ripgrep/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2018/09/21 21:26:33 minskim Exp $ +# $NetBSD: Makefile,v 1.3 2018/10/25 00:35:22 minskim Exp $ GITHUB_PROJECT= ripgrep DISTNAME= 0.8.1 @@ -61,18 +61,12 @@ CARGO_CRATE_DEPENDS+= \ fuchsia-zircon-sys-0.3.3 \ bitflags-1.0.1 -CARGO_INSTALL_FILES= rg - do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release - -INSTALLATION_DIRS+= bin - do-install: -.for file in ${CARGO_INSTALL_FILES} - ${INSTALL_PROGRAM} ${WRKSRC}/target/release/${file} ${DESTDIR}${PREFIX}/bin -.endfor + cd ${WRKSRC} && ${PREFIX}/bin/cargo install --root ${DESTDIR}${PREFIX} + rm ${DESTDIR}${PREFIX}/.crates.toml .include "../../lang/rust/cargo.mk" .include "../../mk/bsd.pkg.mk" |