summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2005-02-20 21:07:13 +0000
committerLuca Barbato <lu_zero@gentoo.org>2005-02-20 21:07:13 +0000
commit0ec55954813c9ebafe7b0d31d5268876274ced5d (patch)
tree185979281af2026f77f8e2fbe864e920a6448603 /app-text/sloccount
parentinitial import (diff)
downloadhistorical-0ec55954813c9ebafe7b0d31d5268876274ced5d.tar.gz
historical-0ec55954813c9ebafe7b0d31d5268876274ced5d.tar.bz2
historical-0ec55954813c9ebafe7b0d31d5268876274ced5d.zip
New version
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'app-text/sloccount')
-rw-r--r--app-text/sloccount/ChangeLog8
-rw-r--r--app-text/sloccount/Manifest5
-rw-r--r--app-text/sloccount/files/digest-sloccount-2.261
-rw-r--r--app-text/sloccount/files/sloccount-2.26-libexec.patch81
-rw-r--r--app-text/sloccount/sloccount-2.26.ebuild45
5 files changed, 138 insertions, 2 deletions
diff --git a/app-text/sloccount/ChangeLog b/app-text/sloccount/ChangeLog
index 48a949495f4a..640ab6ec7c8a 100644
--- a/app-text/sloccount/ChangeLog
+++ b/app-text/sloccount/ChangeLog
@@ -1,6 +1,12 @@
# 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.6 2005/01/01 16:36:27 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/ChangeLog,v 1.7 2005/02/20 21:07:12 lu_zero Exp $
+
+*sloccount-2.26 (20 Feb 2005)
+
+ 20 Feb 2005; Luca Barbato <lu_zero@gentoo.org>
+ +files/sloccount-2.26-libexec.patch, +sloccount-2.26.ebuild:
+ New version
02 Dec 2004; Ferris McCormick <fmccor@gentoo.org> sloccount-2.22.ebuild:
Add ~sparc keyword at user request (Leif Sawyer). Program builds, runs,
diff --git a/app-text/sloccount/Manifest b/app-text/sloccount/Manifest
index a566d02a4080..9dfbd07f7609 100644
--- a/app-text/sloccount/Manifest
+++ b/app-text/sloccount/Manifest
@@ -1,4 +1,7 @@
-MD5 92fedfed41a2450c6e3d606885e0eb08 ChangeLog 955
MD5 67f5888814e9597410fb0d6079a19e75 sloccount-2.22.ebuild 1060
+MD5 f77928ae1ebeffd174f3d08ba775076e ChangeLog 1110
+MD5 d830d478027ba4af61f489d8554f20b6 sloccount-2.26.ebuild 1024
+MD5 e4438da83f662b58c33e01f759570ff7 files/sloccount-2.26-libexec.patch 2293
MD5 f0620a7ad11d6c60a8098c7d253c434f files/digest-sloccount-2.22 66
+MD5 437c0513b3ee1b6f8c4baca3f77d001c files/digest-sloccount-2.26 66
MD5 2662f30ed5969d9f7cedd6b0addf196b files/sloccount-2.22-libexec.patch 2324
diff --git a/app-text/sloccount/files/digest-sloccount-2.26 b/app-text/sloccount/files/digest-sloccount-2.26
new file mode 100644
index 000000000000..09e9fed7c329
--- /dev/null
+++ b/app-text/sloccount/files/digest-sloccount-2.26
@@ -0,0 +1 @@
+MD5 09abd6e2a016ebaf7552068a1dba1249 sloccount-2.26.tar.gz 190948
diff --git a/app-text/sloccount/files/sloccount-2.26-libexec.patch b/app-text/sloccount/files/sloccount-2.26-libexec.patch
new file mode 100644
index 000000000000..cb8250f68cf6
--- /dev/null
+++ b/app-text/sloccount/files/sloccount-2.26-libexec.patch
@@ -0,0 +1,81 @@
+Files sloccount-2.26.orig/.makefile.swp and sloccount-2.26/.makefile.swp differ
+Files sloccount-2.26.orig/.sloccount.swp and sloccount-2.26/.sloccount.swp differ
+diff -ruN sloccount-2.26.orig/makefile sloccount-2.26/makefile
+--- sloccount-2.26.orig/makefile 2005-02-20 21:26:00.000000000 +0100
++++ sloccount-2.26/makefile 2005-02-20 21:32:58.000000000 +0100
+@@ -70,6 +70,7 @@
+ ARCH=i386
+ VERSIONEDNAME=$(NAME)-$(VERSION)
+ INSTALL_DIR=$(PREFIX)/bin
++LIBEXEC_DIR=$(PREFIX)/libexec/$(NAME)
+ MAN_DIR=$(PREFIX)/share/man
+ MAN_DIR_MAN1=$(MAN_DIR)/man1
+ DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION)
+@@ -115,11 +116,12 @@
+ sed_count \
+ sh_count \
+ show_filecount \
+- sloccount \
+ sql_count \
+ tcl_count \
+ $(COMPILED_EXECUTABLES)
+
++MAIN_EXECUTABLE=sloccount
++
+ MANPAGES=sloccount.1.gz
+
+ MYDOCS=sloccount.html README TODO ChangeLog
+@@ -162,12 +164,24 @@
+ c_lines: C_LINES.C
+ $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX)
+
++install_prefix:
++ $(INSTALL_A_DIR) $(PREFIX)
+
+-install_programs: all
+- $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR)
++install_program:
++ $(INSTALL_A_DIR) $(INSTALL_DIR)
++ $(INSTALL) $(MAIN_EXECUTABLE) $(INSTALL_DIR)
++
++uninstall_program:
++ cd $(INSTALL_DIR) && rm -f $(MAIN_EXECUTABLE)
++
++install_libexec: all
++ $(INSTALL_A_DIR) $(LIBEXEC_DIR)
++ $(INSTALL) $(EXECUTABLES) $(LIBEXEC_DIR)
++
++uninstall_libexec:
++ cd $(LIBEXEC_DIR) && rm -f $(EXECUTABLES)
++ rmdir $(LIBEXEC_DIR)
+
+-uninstall_programs:
+- cd $(INSTALL_DIR) && rm -f $(EXECUTABLES)
+
+ install_man: $(MANPAGES)
+ $(INSTALL_A_DIR) $(MAN_DIR_MAN1)
+@@ -184,9 +198,9 @@
+ rm -fr $(DOC_DIR)
+
+
+-install: install_programs install_man install_docs
++install: install_prefix install_program install_libexec install_man install_docs
+
+-uninstall: uninstall_programs uninstall_docs uninstall_man
++uninstall: uninstall_program uninstall_libexec uninstall_docs uninstall_man
+
+
+ clean:
+diff -ruN sloccount-2.26.orig/sloccount sloccount-2.26/sloccount
+--- sloccount-2.26.orig/sloccount 2005-02-20 21:26:00.000000000 +0100
++++ sloccount-2.26/sloccount 2005-02-20 21:33:25.000000000 +0100
+@@ -39,6 +39,9 @@
+
+ startingdir=`pwd`
+
++libexec_dir=/usr/libexec/sloccount
++export PATH=$PATH:$libexec_dir
++
+
+ # "datadir" is some suitable safe place for the data; here's the default:
+ datadir=${HOME}/.slocdata
diff --git a/app-text/sloccount/sloccount-2.26.ebuild b/app-text/sloccount/sloccount-2.26.ebuild
new file mode 100644
index 000000000000..88aef155e2b1
--- /dev/null
+++ b/app-text/sloccount/sloccount-2.26.ebuild
@@ -0,0 +1,45 @@
+# 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.ebuild,v 1.1 2005/02/20 21:07:12 lu_zero 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=""
+
+DEPEND="sys-devel/gcc
+ dev-lang/perl
+ >=sys-apps/sed-4
+ app-shells/bash"
+
+RDEPEND="dev-lang/perl
+ >=sys-apps/sed-4
+ app-shells/bash"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-libexec.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 "make failed"
+}
+
+src_install() {
+ einstall PREFIX=${D}/usr || die
+ prepalldocs
+ dohtml *html
+}