pkgsrc-WIP-changes archive

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

Fix path to internal generic_count binary



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Wed Aug 23 18:10:50 2017 +0200
Changeset:	8d0947092251174b5a1255f523ce362485627c17

Modified Files:
	sloccount/Makefile

Log Message:
Fix path to internal generic_count binary

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8d0947092251174b5a1255f523ce362485627c17

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sloccount/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diffs:
diff --git a/sloccount/Makefile b/sloccount/Makefile
index f99f497399..fb6de1bd50 100644
--- a/sloccount/Makefile
+++ b/sloccount/Makefile
@@ -3,7 +3,7 @@
 # - let sloccount(1) find its helper binaries
 
 DISTNAME=	sloccount-2.26
-PKGREVISION=	4
+PKGREVISION=	5
 CATEGORIES=	devel
 MASTER_SITES=	http://www.dwheeler.com/sloccount/
 
@@ -50,6 +50,13 @@ REPLACE_PERL+=		python_count
 REPLACE_PERL+=		simplecount
 REPLACE_PERL+=		sql_count
 
+SUBST_CLASSES+=		generic
+SUBST_MESSAGE.generic=	Fixing path to internal generic_count binary.
+SUBST_STAGE.generic=	post-patch
+SUBST_SED.generic=	-e 's,^generic_count,${PREFIX}/libexec/sloccount/&,g'
+SUBST_FILES.generic=	ada_count awk_count csh_count exp_count lisp_count \
+			makefile_count ruby_count sed_count sh_count tcl_count
+
 SUBST_CLASSES+=		prefix
 SUBST_MESSAGE.prefix=	Fixing path to internal binaries.
 SUBST_STAGE.prefix=	post-patch


Home | Main Index | Thread Index | Old Index