pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/ripgrep textproc/ripgrep: Install with cargo, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c8dc1975e095
branches: trunk
changeset: 386639:c8dc1975e095
user: minskim <minskim%pkgsrc.org@localhost>
date: Thu Oct 25 00:35:22 2018 +0000
description:
textproc/ripgrep: Install with cargo, rather than manually
diffstat:
textproc/ripgrep/Makefile | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diffs (30 lines):
diff -r 00c1e8cba11d -r c8dc1975e095 textproc/ripgrep/Makefile
--- a/textproc/ripgrep/Makefile Wed Oct 24 21:12:59 2018 +0000
+++ b/textproc/ripgrep/Makefile Thu Oct 25 00:35:22 2018 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index