summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/sloccount/Changelog8
-rw-r--r--app-text/sloccount/Manifest5
-rw-r--r--app-text/sloccount/files/digest-sloccount-2.221
-rw-r--r--app-text/sloccount/files/sloccount-2.22-libexec.patch83
-rw-r--r--app-text/sloccount/sloccount-2.22.ebuild39
5 files changed, 133 insertions, 3 deletions
diff --git a/app-text/sloccount/Changelog b/app-text/sloccount/Changelog
new file mode 100644
index 000000000000..c52da590e0d8
--- /dev/null
+++ b/app-text/sloccount/Changelog
@@ -0,0 +1,8 @@
+# ChangeLog for app-text/sloccount
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/Changelog,v 1.1 2003/06/04 13:59:17 lu_zero Exp $
+
+*sloccount-2.22 (04 Jun 2003)
+
+ 04 Jun 2003 Luca Barbato <lu_zero@gentoo.org> :
+ Initial import. Ebuild submitted by Zach Bagnall <yem@y3m.net>.
diff --git a/app-text/sloccount/Manifest b/app-text/sloccount/Manifest
index 03a192037f6d..7632f0d4c083 100644
--- a/app-text/sloccount/Manifest
+++ b/app-text/sloccount/Manifest
@@ -1,5 +1,4 @@
-MD5 36e1d7d5322195812d2ee4bc3227376e sloccount-2.22.ebuild 806
-MD5 fb1546e177e68cdab93b1e66f826fbf0 Changelog 467
-MD5 4b2878d050f25d2aedd1c34899791394 .sloccount-2.22.ebuild.swp 12288
+MD5 d62b109c32a0e87be78584aab9d3124c sloccount-2.22.ebuild 910
+MD5 03adddeb4bb98afcbcfddfce60ee14f2 Changelog 367
MD5 2662f30ed5969d9f7cedd6b0addf196b files/sloccount-2.22-libexec.patch 2324
MD5 f0620a7ad11d6c60a8098c7d253c434f files/digest-sloccount-2.22 66
diff --git a/app-text/sloccount/files/digest-sloccount-2.22 b/app-text/sloccount/files/digest-sloccount-2.22
new file mode 100644
index 000000000000..1162ce25c3f3
--- /dev/null
+++ b/app-text/sloccount/files/digest-sloccount-2.22
@@ -0,0 +1 @@
+MD5 0ff88727cd76d83e7ca2071763cf1ad6 sloccount-2.22.tar.gz 186990
diff --git a/app-text/sloccount/files/sloccount-2.22-libexec.patch b/app-text/sloccount/files/sloccount-2.22-libexec.patch
new file mode 100644
index 000000000000..96e79f7a1c8f
--- /dev/null
+++ b/app-text/sloccount/files/sloccount-2.22-libexec.patch
@@ -0,0 +1,83 @@
+Common subdirectories: sloccount-2.22/debian and sloccount-2.22-gentoo/debian
+diff -u sloccount-2.22/makefile sloccount-2.22-gentoo/makefile
+--- sloccount-2.22/makefile 2003-03-09 04:27:50.000000000 +1300
++++ sloccount-2.22-gentoo/makefile 2003-03-27 21:20:37.000000000 +1200
+@@ -52,6 +52,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)
+@@ -97,11 +98,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
+@@ -144,14 +146,26 @@
+ c_lines: C_LINES.C
+ $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX)
+
++install_prefix:
++ mkdir -p $(PREFIX)
+
+-install_programs: all
+- $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR)
+-
+-uninstall_programs:
+- cd $(INSTALL_DIR) && rm -f $(EXECUTABLES)
++install_program:
++ mkdir -p $(INSTALL_DIR)
++ $(INSTALL) $(MAIN_EXECUTABLE) $(INSTALL_DIR)
++
++uninstall_program:
++ cd $(INSTALL_DIR) && rm -f $(MAIN_EXECUTABLE)
++
++install_libexec: all
++ mkdir -p $(LIBEXEC_DIR)
++ $(INSTALL) $(EXECUTABLES) $(LIBEXEC_DIR)
++
++uninstall_libexec:
++ cd $(LIBEXEC_DIR) && rm -f $(EXECUTABLES)
++ rmdir $(LIBEXEC_DIR)
+
+ install_man:
++ mkdir -p $(LIBEXEC_DIR)
+ $(INSTALL_A_DIR) $(MAN_DIR_MAN1)
+ $(INSTALL) $(MANPAGES) $(MAN_DIR_MAN1)
+
+@@ -166,9 +180,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 -u sloccount-2.22/sloccount sloccount-2.22-gentoo/sloccount
+--- sloccount-2.22/sloccount 2002-12-05 02:57:46.000000000 +1300
++++ sloccount-2.22-gentoo/sloccount 2003-03-27 21:20:34.000000000 +1200
+@@ -18,6 +18,8 @@
+
+ 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
+Common subdirectories: sloccount-2.22/testcode and sloccount-2.22-gentoo/testcode
diff --git a/app-text/sloccount/sloccount-2.22.ebuild b/app-text/sloccount/sloccount-2.22.ebuild
new file mode 100644
index 000000000000..8cfb27d75466
--- /dev/null
+++ b/app-text/sloccount/sloccount-2.22.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.22.ebuild,v 1.1 2003/06/04 13:59:17 lu_zero Exp $
+
+DESCRIPTION="A set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs."
+
+HOMEPAGE="http://www.dwheeler.com/sloccount/"
+
+SRC_URI="http://www.dwheeler.com/sloccount/${P}.tar.gz"
+
+LICENSE="GPL-1"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND="dev-lang/perl
+ app-shells/bash"
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S};
+
+ # Patch to move most of the executables out of /usr/bin
+ # and into /usr/libexec/sloccount to avoid conflicts.
+ epatch ${FILESDIR}/${P}-libexec.patch
+}
+
+src_compile() {
+ make -f makefile PREFIX=/usr
+}
+
+src_install() {
+ make -f makefile install PREFIX=${D}/usr
+}