summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-10-12 20:52:02 +0000
committerJeroen Roovers <jer@gentoo.org>2010-10-12 20:52:02 +0000
commitceb3c9272bd312ab5524449f8710feac0b1a10cb (patch)
treec9cef4011fd6627a13bc6728cab39353a7069238 /app-text
parentRevert ~alpha keyword until parsetree works properly (diff)
downloadhistorical-ceb3c9272bd312ab5524449f8710feac0b1a10cb.tar.gz
historical-ceb3c9272bd312ab5524449f8710feac0b1a10cb.tar.bz2
historical-ceb3c9272bd312ab5524449f8710feac0b1a10cb.zip
Remove silly DEPEND. Respect CC (bug #243752), CFLAGS, LDFLAGS.
Package-Manager: portage-2.2_rc92/cvs/Linux i686
Diffstat (limited to 'app-text')
-rw-r--r--app-text/sloccount/ChangeLog9
-rw-r--r--app-text/sloccount/Manifest3
-rw-r--r--app-text/sloccount/sloccount-2.26-r2.ebuild42
3 files changed, 51 insertions, 3 deletions
diff --git a/app-text/sloccount/ChangeLog b/app-text/sloccount/ChangeLog
index dab8e04ce093..fc9241dbe793 100644
--- a/app-text/sloccount/ChangeLog
+++ b/app-text/sloccount/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/sloccount
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/ChangeLog,v 1.22 2008/12/09 21:33:31 armin76 Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/ChangeLog,v 1.23 2010/10/12 20:52:02 jer Exp $
+
+*sloccount-2.26-r2 (12 Oct 2010)
+
+ 12 Oct 2010; Jeroen Roovers <jer@gentoo.org> +sloccount-2.26-r2.ebuild:
+ Remove silly DEPEND. Respect CC (bug #243752), CFLAGS, LDFLAGS.
09 Dec 2008; Raúl Porcel <armin76@gentoo.org> sloccount-2.26-r1.ebuild:
Add ~alpha wrt #250343
diff --git a/app-text/sloccount/Manifest b/app-text/sloccount/Manifest
index d7e994cdcdb8..25de8df3cd41 100644
--- a/app-text/sloccount/Manifest
+++ b/app-text/sloccount/Manifest
@@ -2,5 +2,6 @@ AUX sloccount-2.26-coreutils-tail-n-fix.patch 468 RMD160 b4deb152403fd8792900774
AUX sloccount-2.26-libexec.patch 2293 RMD160 39ba8614920f96e412cc7baa36aa3b0635e48e84 SHA1 47ffdfee1f7891adfb38ba7e006aaa05f07c28d5 SHA256 c098bc1ba364a43cfb39805f6d7c46c7f3d72f4969c0bfb2dd4d62ef750df1f7
DIST sloccount-2.26.tar.gz 190948 RMD160 a5bd1dbe8bd5e5c52ed790990c0d5d8fc49b26ff SHA1 505031c6adfb93e454aaf8b0ee7de04122079d13 SHA256 fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
EBUILD sloccount-2.26-r1.ebuild 1088 RMD160 d3e44a8acb62f23715df107159421473b5979f07 SHA1 7823bffbbd75302d729f07640e22ced2b25a3452 SHA256 afd75776079ce2b1ee2231c31b31a3377e1e5440ccc30f617d577a5c14741a70
-MISC ChangeLog 3057 RMD160 3c01ce4505f3cbaf5f1ecc631d8b8f1e327e318a SHA1 9c1bd41d9b597d32c1bfab7f9de97fd380efc727 SHA256 96d10a0758b139a48438c7da83c34167afa31a60b4332423d5b36725eb3c29a5
+EBUILD sloccount-2.26-r2.ebuild 1124 RMD160 62b04ace73e570bac1b3a9b5d4b7310ee523c19c SHA1 1c7a666ee7dda6a2984011668494d10aee227eb7 SHA256 dc715b3eeb605758542bca8b47ffb7214d256b5a0ba5b599f3ad55b463fb4d47
+MISC ChangeLog 3228 RMD160 8a2d461ecada124896eac4108354ea22637ee484 SHA1 3126e2c1beef96d05497545d7d337ea31dd6d3f1 SHA256 e61da30bf004bacae8b6d1ae1bfb6c9859d75f73957ca5484b4aba1cbb121543
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
diff --git a/app-text/sloccount/sloccount-2.26-r2.ebuild b/app-text/sloccount/sloccount-2.26-r2.ebuild
new file mode 100644
index 000000000000..29ca02dd5fca
--- /dev/null
+++ b/app-text/sloccount/sloccount-2.26-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.26-r2.ebuild,v 1.1 2010/10/12 20:52:02 jer Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+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-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+RDEPEND="dev-lang/perl
+ >=sys-apps/sed-4
+ app-shells/bash"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libexec.patch
+ epatch "${FILESDIR}"/${P}-coreutils-tail-n-fix.patch
+
+ sed -i \
+ -e 's|^CC=gcc|CFLAGS+=|g' \
+ -e 's|$(CC)|& $(CFLAGS) $(LDFLAGS)|g' \
+ -e '/^DOC_DIR/ { s/-$(RPM_VERSION)//g }' \
+ -e '/^MYDOCS/ { s/[^ =]\+\.html//g }' \
+ makefile || die "sed makefile failed"
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) || die "emake failed"
+}
+
+src_install() {
+ einstall PREFIX="${D}/usr" DOC_DIR="${D}/usr/share/doc/${PF}/" || die
+ prepalldocs
+ dohtml *html
+}