blob: bc54afe9dffbaaf3624499798615048c24ad443a (
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
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cutils/cutils-1.6-r2.ebuild,v 1.9 2012/03/18 17:50:43 armin76 Exp $
inherit eutils toolchain-funcs
DESCRIPTION="C language utilities"
HOMEPAGE="http://www.sigala.it/sandro/software.php#cutils"
SRC_URI="http://www.sigala.it/sandro/files/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-r1-gentoo.diff
cd "${S}"/src/cdecl
mv cdecl.1 cutils-cdecl.1
for file in "${S}"/doc/*; do
sed -e 's/cdecl/cutils-cdecl/g' -i "${file}"
done
sed -e 's/Xr cdecl/Xr cutils-cdecl/' -i "${S}"/src/cundecl/cundecl.1
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=${DESTTREE} \
--infodir=${DESTTREE}/share/info \
--mandir=${DESTTREE}/share/man || die
emake CC="$(tc-getCC)" -j1 || die
}
src_install () {
make DESTDIR="${D}" install || die
dodoc COPYRIGHT CREDITS HISTORY INSTALL NEWS README
}
pkg_postinst () {
elog "cdecl was installed as cutils-cdecl because of a naming conflict with dev-util/cdecl"
}
|