blob: 9f28bcacbb5f3fccaaa00c55e9556e36826632ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2009 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.4 2009/08/31 16:42:31 vostorga Exp $
inherit eutils toolchain-funcs
DESCRIPTION="A code counter for C and C++"
HOMEPAGE="http://cccc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "/^CFLAGS/s|=|+=|" pccts/antlr/makefile
sed -i -e "/^CFLAGS/s|=|+=|" pccts/dlg/makefile
sed -i -e "/^CFLAGS/s|=|+=|" \
-e "/^LDFLAGS/s|=|+=|" cccc/posixgcc.mak
}
src_compile() {
emake CCC=$(tc-getCXX) LD=$(tc-getCXX) pccts || die "pccts failed"
emake CCC=$(tc-getCXX) LD=$(tc-getCXX) cccc || die "cccc failed"
}
src_install() {
dodoc readme.txt changes.txt
cd install
dodir /usr
emake -f install.mak INSTDIR="${D}"/usr/bin || die "install failed"
}
|