Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/acr devel/acr: fix forgotten placeholders



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc7fa1b3d0e5
branches:  trunk
changeset: 431697:dc7fa1b3d0e5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 16 05:34:15 2020 +0000

description:
devel/acr: fix forgotten placeholders

diffstat:

 devel/acr/Makefile |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 70ce6496bb5a -r dc7fa1b3d0e5 devel/acr/Makefile
--- a/devel/acr/Makefile        Sat May 16 04:57:21 2020 +0000
+++ b/devel/acr/Makefile        Sat May 16 05:34:15 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2019/11/23 08:37:35 mef Exp $
+# $NetBSD: Makefile,v 1.17 2020/05/16 05:34:15 rillig Exp $
 
 DISTNAME=              acr-1.7.2
+PKGREVISION=           1
 CATEGORIES=            devel
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=radare/}
 EXTRACT_SUFX=          .zip
@@ -10,14 +11,22 @@
 COMMENT=               Autoconf replacement
 LICENSE=               gnu-gpl-v2
 
-# Only defined the install target
+# Only defines the install target
 NO_BUILD=              yes
 
 GNU_CONFIGURE=         yes
 AUTO_MKDIRS=           yes
 
+# Had been forgotten in acr-1.7.2, see Makefile.amr.
+# https://github.com/radare/acr/issues/22
+SUBST_CLASSES+=                ver
+SUBST_STAGE.ver=       post-configure
+SUBST_FILES.ver=       src/acr-cat src/acr-sh
+SUBST_SED.ver=         -e s,@VERSION@,${PKGVERSION_NOREV},
+SUBST_SED.ver+=                -e s,@DATADIR@,${PREFIX}/share,
+
 post-install:
-       (cd ${WRKSRC}; \
-       ${INSTALL_DATA} configure.acr ${DESTDIR}${PREFIX}/share/examples/acr/; \
-       )
+       ${RUN} cd ${WRKSRC}; \
+       ${INSTALL_DATA} configure.acr ${DESTDIR}${PREFIX}/share/examples/acr/
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index