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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Aug 6 00:46:37 2012 UTC (2 years ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -2 lines
added prefix build fix

(Portage version: 2.2.0_alpha120/cvs/Linux i686)

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-r4.ebuild,v 1.5 2012/03/18 17:50:44 armin76 Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="C language utilities"
10 HOMEPAGE="http://www.sigala.it/sandro/software.php#cutils"
11 SRC_URI="http://www.sigala.it/sandro/files/${P}.tar.gz"
12
13 LICENSE="BSD-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
16 IUSE=""
17
18 RDEPEND=""
19 DEPEND="sys-devel/flex"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${PN}-infopage.patch
23
24 epatch "${FILESDIR}"/${P}-case-insensitive.patch
25
26 mv "${S}"/src/cdecl/cdecl.1 \
27 "${S}"/src/cdecl/cutils-cdecl.1 || die
28 # Force rebuild of cutils.info
29 rm -f "${S}"/doc/cutils.info || die
30
31 sed -e "s/cdecl/cutils-cdecl/g" \
32 -i "${S}"/doc/cutils.texi || die
33 sed -e "/PROG/s/cdecl/cutils-cdecl/" \
34 -i "${S}"/src/cdecl/Makefile.in || die
35 sed -e "/Xr/s/cdecl/cutils-cdecl/" \
36 -i "${S}"/src/cundecl/cundecl.1 || die
37 sed -i "/Nm/s/cdecl/cutils-cdecl/" \
38 "${S}"/src/cdecl/cutils-cdecl.1 || die
39 }
40
41 src_compile() {
42 emake CC="$(tc-getCC)" -j1
43 }
44
45 src_install () {
46 emake DESTDIR="${D}" install
47 dodoc CREDITS HISTORY NEWS README
48 }
49
50 pkg_postinst () {
51 elog "cdecl was installed as cutils-cdecl because of a naming conflict"
52 elog "with dev-util/cdecl."
53 }

  ViewVC Help
Powered by ViewVC 1.1.20