summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-08-06 00:37:28 +0000
committerChristoph Junghans <ottxor@gentoo.org>2012-08-06 00:37:28 +0000
commit145a406c3bdea03fcf50ef97320062dad8c26d27 (patch)
tree7a12c12a951c64830e04a3213d54912343a1c9bb /dev-util/cccc
parentadd prefix changes (diff)
downloadgentoo-2-145a406c3bdea03fcf50ef97320062dad8c26d27.tar.gz
gentoo-2-145a406c3bdea03fcf50ef97320062dad8c26d27.tar.bz2
gentoo-2-145a406c3bdea03fcf50ef97320062dad8c26d27.zip
EAPI bumped to 4 and added prefix tweaks
(Portage version: 2.2.0_alpha120/cvs/Linux i686)
Diffstat (limited to 'dev-util/cccc')
-rw-r--r--dev-util/cccc/ChangeLog8
-rw-r--r--dev-util/cccc/cccc-3.1.4.ebuild28
2 files changed, 20 insertions, 16 deletions
diff --git a/dev-util/cccc/ChangeLog b/dev-util/cccc/ChangeLog
index 0f236fe3e585..db39717f1b08 100644
--- a/dev-util/cccc/ChangeLog
+++ b/dev-util/cccc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-util/cccc
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/cccc/ChangeLog,v 1.14 2009/11/18 16:25:04 vostorga Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cccc/ChangeLog,v 1.15 2012/08/06 00:37:28 ottxor Exp $
+
+ 06 Aug 2012; Christoph Junghans <ottxor@gentoo.org> cccc-3.1.4.ebuild:
+ EAPI bumped to 4 and added prefix tweaks
18 Nov 2009; Víctor Ostorga <vostorga@gentoo.org> cccc-3.1.4.ebuild:
Adding web documentation, bug #293608
@@ -49,4 +52,3 @@
14 Feb 2003 Luca Barbato <lu_zero@gentoo.org>
First commit
-
diff --git a/dev-util/cccc/cccc-3.1.4.ebuild b/dev-util/cccc/cccc-3.1.4.ebuild
index ee3e3ccd3d75..67be40e1e34a 100644
--- a/dev-util/cccc/cccc-3.1.4.ebuild
+++ b/dev-util/cccc/cccc-3.1.4.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/cccc/cccc-3.1.4.ebuild,v 1.5 2009/11/18 16:25:04 vostorga Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cccc/cccc-3.1.4.ebuild,v 1.6 2012/08/06 00:37:28 ottxor Exp $
-inherit eutils toolchain-funcs
+EAPI=4
+
+inherit toolchain-funcs
DESCRIPTION="A code counter for C and C++"
HOMEPAGE="http://cccc.sourceforge.net/"
@@ -10,30 +12,30 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86"
+KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=""
RDEPEND=""
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
sed -i -e "/^CFLAGS/s|=|+=|" pccts/antlr/makefile
sed -i -e "/^CFLAGS/s|=|+=|" pccts/dlg/makefile
sed -i -e "/^CFLAGS/s|=|+=|" \
+ -e "/^LD_OFLAG/s|-o|-o |" \
-e "/^LDFLAGS/s|=|+=|" cccc/posixgcc.mak
+ #LD_OFLAG: ld on Darwin needs a space after -o
}
src_compile() {
- emake CCC=$(tc-getCXX) LD=$(tc-getCXX) pccts || die "pccts failed"
- emake CCC=$(tc-getCXX) LD=$(tc-getCXX) cccc || die "cccc failed"
+ emake CCC=$(tc-getCXX) LD=$(tc-getCXX) pccts
+ emake CCC=$(tc-getCXX) LD=$(tc-getCXX) cccc
}
src_install() {
- dodoc readme.txt changes.txt || die "dodoc failed"
- dohtml cccc/*.html || die "dohtml failed"
- cd install
+ dodoc readme.txt changes.txt
+ dohtml cccc/*.html
+ cd install || die
dodir /usr
- emake -f install.mak INSTDIR="${D}"/usr/bin || die "install failed"
+ emake -f install.mak INSTDIR="${ED}"/usr/bin
}