pkgsrc-WIP-changes archive

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

Also patch compute_all



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

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

Log Message:
Also patch compute_all

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

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__all | 15 +++++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

diffs:
diff --git a/sloccount/Makefile b/sloccount/Makefile
index 7f888dc72f..f49ade4912 100644
--- a/sloccount/Makefile
+++ b/sloccount/Makefile
@@ -4,7 +4,7 @@
 # - avoid use of md5sum(1)
 
 DISTNAME=	sloccount-2.26
-PKGREVISION=	1
+PKGREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	http://www.dwheeler.com/sloccount/
 
@@ -55,7 +55,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=	sloccount
+SUBST_FILES.prefix=	compute_all sloccount
 
 post-install:
 	${MV} ${DESTDIR}${PREFIX}/libexec/sloccount/sloccount ${DESTDIR}${PREFIX}/bin/sloccount
diff --git a/sloccount/distinfo b/sloccount/distinfo
index 6ad1d9f655..512736c822 100644
--- a/sloccount/distinfo
+++ b/sloccount/distinfo
@@ -4,6 +4,7 @@ SHA1 (sloccount-2.26.tar.gz) = 505031c6adfb93e454aaf8b0ee7de04122079d13
 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-makefile) = 67ee105f46bb15b219b0ef888594928b453fe407
 SHA1 (patch-rpm__unpacker) = 1bd30245b1ad1c6de72c0ec63acbd76b95d79efb
 SHA1 (patch-sloccount) = 36f2b762aae891bfd0fdee52b0a34b286c16d5d5
diff --git a/sloccount/patches/patch-compute__all b/sloccount/patches/patch-compute__all
new file mode 100644
index 0000000000..4959101cd8
--- /dev/null
+++ b/sloccount/patches/patch-compute__all
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Correct path to the helper binaries
+
+--- compute_all.orig	2004-08-01 03:01:39.000000000 +0000
++++ compute_all
+@@ -72,7 +72,7 @@ do
+        dup) true ;;
+        auto) true ;;
+        *)
+-         numsloc=`compute_sloc_lang $language "." | tr -d " "`
++         numsloc=`@PREFIX@/libexec/sloccount/compute_sloc_lang $language "." | tr -d " "`
+          echo "$language	$numsloc" >> all-physical.sloc.new
+        ;;
+      esac


Home | Main Index | Thread Index | Old Index