summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/sloccount/ChangeLog9
-rw-r--r--app-text/sloccount/Manifest10
-rw-r--r--app-text/sloccount/files/digest-sloccount-2.26-r11
-rw-r--r--app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch12
-rw-r--r--app-text/sloccount/metadata.xml8
-rw-r--r--app-text/sloccount/sloccount-2.26-r1.ebuild43
6 files changed, 79 insertions, 4 deletions
diff --git a/app-text/sloccount/ChangeLog b/app-text/sloccount/ChangeLog
index 640ab6ec7c8a..8d9184d65373 100644
--- a/app-text/sloccount/ChangeLog
+++ b/app-text/sloccount/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/sloccount
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/ChangeLog,v 1.7 2005/02/20 21:07:12 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/ChangeLog,v 1.8 2005/02/27 04:49:38 robbat2 Exp $
+
+*sloccount-2.26-r1 (26 Feb 2005)
+
+ 26 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> +metadata.xml,
+ +files/sloccount-2.26-coreutils-tail-n-fix.patch,
+ +sloccount-2.26-r1.ebuild:
+ Bug #68624, fix the tail warnings.
*sloccount-2.26 (20 Feb 2005)
diff --git a/app-text/sloccount/Manifest b/app-text/sloccount/Manifest
index f4014844f48b..82f3ed25196e 100644
--- a/app-text/sloccount/Manifest
+++ b/app-text/sloccount/Manifest
@@ -1,7 +1,11 @@
-MD5 f77928ae1ebeffd174f3d08ba775076e ChangeLog 1110
MD5 67f5888814e9597410fb0d6079a19e75 sloccount-2.22.ebuild 1060
MD5 44c598128595dc35479bbb20b3451379 sloccount-2.26.ebuild 1025
-MD5 f0620a7ad11d6c60a8098c7d253c434f files/digest-sloccount-2.22 66
+MD5 1f6a4050c46c2e05a54c3476caa46e1e sloccount-2.26-r1.ebuild 1042
+MD5 f77928ae1ebeffd174f3d08ba775076e ChangeLog 1110
+MD5 21cd68602737d7c996bceabf6e62c468 metadata.xml 223
+MD5 e4438da83f662b58c33e01f759570ff7 files/sloccount-2.26-libexec.patch 2293
+MD5 3c5bea5f23bc794e2a74524bd76d2b64 files/sloccount-2.26-coreutils-tail-n-fix.patch 468
+MD5 437c0513b3ee1b6f8c4baca3f77d001c files/digest-sloccount-2.26-r1 66
MD5 2662f30ed5969d9f7cedd6b0addf196b files/sloccount-2.22-libexec.patch 2324
+MD5 f0620a7ad11d6c60a8098c7d253c434f files/digest-sloccount-2.22 66
MD5 437c0513b3ee1b6f8c4baca3f77d001c files/digest-sloccount-2.26 66
-MD5 e4438da83f662b58c33e01f759570ff7 files/sloccount-2.26-libexec.patch 2293
diff --git a/app-text/sloccount/files/digest-sloccount-2.26-r1 b/app-text/sloccount/files/digest-sloccount-2.26-r1
new file mode 100644
index 000000000000..09e9fed7c329
--- /dev/null
+++ b/app-text/sloccount/files/digest-sloccount-2.26-r1
@@ -0,0 +1 @@
+MD5 09abd6e2a016ebaf7552068a1dba1249 sloccount-2.26.tar.gz 190948
diff --git a/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch b/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch
new file mode 100644
index 000000000000..caf30cf894de
--- /dev/null
+++ b/app-text/sloccount/files/sloccount-2.26-coreutils-tail-n-fix.patch
@@ -0,0 +1,12 @@
+diff -Nur sloccount-2.22/compute_sloc_lang sloccount-2.22-new/compute_sloc_lang
+--- sloccount-2.22/compute_sloc_lang 2002-02-28 13:34:09.000000000 +0100
++++ sloccount-2.22-new/compute_sloc_lang 2004-10-23 12:36:56.295312577 +0200
+@@ -30,7 +30,7 @@
+ *) ${language}_count -f ${language}_list.dat > ${language}_outfile.dat
+ ;;
+ esac
+- tail -1 < ${language}_outfile.dat
++ tail -n 1 < ${language}_outfile.dat
+
+ else
+ rm -f ${language}_outfile.dat
diff --git a/app-text/sloccount/metadata.xml b/app-text/sloccount/metadata.xml
new file mode 100644
index 000000000000..5d9f5be9d49d
--- /dev/null
+++ b/app-text/sloccount/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-text/sloccount/sloccount-2.26-r1.ebuild b/app-text/sloccount/sloccount-2.26-r1.ebuild
new file mode 100644
index 000000000000..6362cd89b0e1
--- /dev/null
+++ b/app-text/sloccount/sloccount-2.26-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.26-r1.ebuild,v 1.1 2005/02/27 04:49:38 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="Tools for counting Source Lines of Code (SLOC) for a large number of languages"
+HOMEPAGE="http://www.dwheeler.com/sloccount/"
+SRC_URI="http://www.dwheeler.com/sloccount/${P}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64 ~sparc"
+IUSE=""
+RDEPEND="dev-lang/perl
+ >=sys-apps/sed-4
+ app-shells/bash"
+DEPEND="${RDEPEND}
+ sys-devel/gcc"
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-libexec.patch
+ epatch ${FILESDIR}/${P}-coreutils-tail-n-fix.patch
+
+ sed -i \
+ -e "/^CC/ { s/$/ ${CFLAGS}/g }" \
+ -e "/^DOC_DIR/ { s/-\$(RPM_VERSION)//g }" \
+ -e "/^MYDOCS/ { s/[^ =]\+\.html//g }" \
+ makefile || die "sed makefile failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall PREFIX="${D}/usr" || die
+ prepalldocs
+ dohtml *html
+}