/[gentoo-x86]/dev-util/cutils/cutils-1.6-r2.ebuild
Gentoo

Contents of /dev-util/cutils/cutils-1.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Mar 18 17:50:43 2012 UTC (2 years, 9 months ago) by armin76
Branch: MAIN
Changes since 1.8: +3 -3 lines
Drop sparc keywords

(Portage version: 2.1.10.49/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/cutils/cutils-1.6-r2.ebuild,v 1.8 2009/09/23 17:42:34 patrick Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="C language utilities"
8 HOMEPAGE="http://www.sigala.it/sandro/software.php#cutils"
9 SRC_URI="http://www.sigala.it/sandro/files/${P}.tar.gz"
10
11 LICENSE="BSD-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ppc x86"
14 IUSE=""
15
16 RDEPEND=""
17 DEPEND="${RDEPEND}
18 >=sys-apps/sed-4"
19
20 src_unpack() {
21 unpack ${A}
22 epatch "${FILESDIR}"/${P}-r1-gentoo.diff
23 cd "${S}"/src/cdecl
24 mv cdecl.1 cutils-cdecl.1
25 for file in "${S}"/doc/*; do
26 sed -e 's/cdecl/cutils-cdecl/g' -i "${file}"
27 done
28 sed -e 's/Xr cdecl/Xr cutils-cdecl/' -i "${S}"/src/cundecl/cundecl.1
29 }
30
31 src_compile() {
32 ./configure \
33 --host=${CHOST} \
34 --prefix=${DESTTREE} \
35 --infodir=${DESTTREE}/share/info \
36 --mandir=${DESTTREE}/share/man || die
37
38 emake CC="$(tc-getCC)" -j1 || die
39 }
40
41 src_install () {
42 make DESTDIR="${D}" install || die
43
44 dodoc COPYRIGHT CREDITS HISTORY INSTALL NEWS README
45 }
46
47 pkg_postinst () {
48 elog "cdecl was installed as cutils-cdecl because of a naming conflict with dev-util/cdecl"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20