hgrep: use cargo.mk's install

This commit is contained in:
wiz 2023-05-17 21:41:21 +00:00
parent 7d972648d3
commit 69b746f410

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2023/04/01 15:58:34 pin Exp $
# $NetBSD: Makefile,v 1.16 2023/05/17 21:41:21 wiz Exp $
DISTNAME= hgrep-0.3.2
CATEGORIES= textproc
@ -12,8 +12,6 @@ LICENSE= mit
.include "cargo-depends.mk"
INSTALLATION_DIRS= bin
CARGO_NO_DEFAULT_FEATURES= YES
CARGO_FEATURES+= ripgrep syntect-printer
@ -22,10 +20,6 @@ CARGO_FEATURES+= ripgrep syntect-printer
BUILDLINK_TRANSFORM+= l:execinfo:execinfo:atomic
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/hgrep \
${DESTDIR}${PREFIX}/bin
.include "../../mk/atomic64.mk"
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"