pkgsrc-WIP-changes archive

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

Also patch compute_sloc_lang



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Wed Aug 23 17:52:58 2017 +0200
Changeset:	ce2f85c3a13db0450f2c75a223879413cbe0cfab

Modified Files:
	sloccount/Makefile
	sloccount/distinfo
Added Files:
	sloccount/patches/patch-compute__sloc__lang

Log Message:
Also patch compute_sloc_lang

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

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

diffstat:
 sloccount/Makefile                          |  4 ++--
 sloccount/distinfo                          |  1 +
 sloccount/patches/patch-compute__sloc__lang | 17 +++++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs:
diff --git a/sloccount/Makefile b/sloccount/Makefile
index 14337eb592..f99f497399 100644
--- a/sloccount/Makefile
+++ b/sloccount/Makefile
@@ -3,7 +3,7 @@
 # - let sloccount(1) find its helper binaries
 
 DISTNAME=	sloccount-2.26
-PKGREVISION=	3
+PKGREVISION=	4
 CATEGORIES=	devel
 MASTER_SITES=	http://www.dwheeler.com/sloccount/
 
@@ -54,7 +54,7 @@ SUBST_CLASSES+=		prefix
 SUBST_MESSAGE.prefix=	Fixing path to internal binaries.
 SUBST_STAGE.prefix=	post-patch
 SUBST_SED.prefix=	-e 's,@PREFIX@,${PREFIX},g'
-SUBST_FILES.prefix=	compute_all sloccount
+SUBST_FILES.prefix=	compute_all compute_sloc_lang sloccount
 
 post-install:
 	${MV} ${DESTDIR}${PREFIX}/libexec/sloccount/sloccount ${DESTDIR}${PREFIX}/bin/sloccount
diff --git a/sloccount/distinfo b/sloccount/distinfo
index 3a72dfa6da..c145ea786b 100644
--- a/sloccount/distinfo
+++ b/sloccount/distinfo
@@ -5,6 +5,7 @@ RMD160 (sloccount-2.26.tar.gz) = a5bd1dbe8bd5e5c52ed790990c0d5d8fc49b26ff
 SHA512 (sloccount-2.26.tar.gz) = ed6ab315a56dbdc86c654b94e790c9ea9e2dcad0db26b63c0973c33eb7fa634b4ade0a1f3c6ccfd5172ea95f648c1dd3b0ae2575b0aa44b3fec708c24a6aca54
 Size (sloccount-2.26.tar.gz) = 190948 bytes
 SHA1 (patch-compute__all) = 86bee28f56a366c63f122a417bad92020e748df1
+SHA1 (patch-compute__sloc__lang) = 8692b6b086aad2cf986123c85f70229017a9bf37
 SHA1 (patch-makefile) = 0f696e08486299dadd919d3aee1d31d01d1c6ad1
 SHA1 (patch-rpm__unpacker) = 1bd30245b1ad1c6de72c0ec63acbd76b95d79efb
 SHA1 (patch-sloccount) = 36f2b762aae891bfd0fdee52b0a34b286c16d5d5
diff --git a/sloccount/patches/patch-compute__sloc__lang b/sloccount/patches/patch-compute__sloc__lang
new file mode 100644
index 0000000000..4199f4d240
--- /dev/null
+++ b/sloccount/patches/patch-compute__sloc__lang
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Correct path to the helper binaries
+
+--- compute_sloc_lang.orig	2004-08-01 03:02:54.000000000 +0000
++++ compute_sloc_lang
+@@ -49,8 +49,8 @@ do
+    esac
+ 
+    case "$use_c_count" in
+-     y) c_count -f ${language}_list.dat > ${language}_outfile.dat ;;
+-     *) ${language}_count -f ${language}_list.dat > ${language}_outfile.dat
++     y) "@PREFIX@/libexec/sloccount/c_count" -f ${language}_list.dat > ${language}_outfile.dat ;;
++     *) "@PREFIX@/libexec/sloccount/${language}_count" -f ${language}_list.dat > ${language}_outfile.dat
+         ;;
+    esac
+    tail -1 < ${language}_outfile.dat


Home | Main Index | Thread Index | Old Index