diff options
author | Agostino Sarubbo <ago@gentoo.org> | 2012-10-15 16:37:07 +0000 |
---|---|---|
committer | Agostino Sarubbo <ago@gentoo.org> | 2012-10-15 16:37:07 +0000 |
commit | 59922456fe7f174a72074986d081366cc5cf9771 (patch) | |
tree | e291859454431c64afbb88b8e445f94af43995af /sys-apps/cinit | |
parent | EAPI4, respect CFLAGS, wrt to bug #432722 (diff) | |
download | gentoo-2-59922456fe7f174a72074986d081366cc5cf9771.tar.gz gentoo-2-59922456fe7f174a72074986d081366cc5cf9771.tar.bz2 gentoo-2-59922456fe7f174a72074986d081366cc5cf9771.zip |
EAPI4, respect CFLAGS, wrt to bug #431586
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/cinit')
-rw-r--r-- | sys-apps/cinit/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/cinit/cinit-0.2.1.ebuild | 25 |
2 files changed, 16 insertions, 16 deletions
diff --git a/sys-apps/cinit/ChangeLog b/sys-apps/cinit/ChangeLog index a9b19a927930..31af89aa79bf 100644 --- a/sys-apps/cinit/ChangeLog +++ b/sys-apps/cinit/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/cinit -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cinit/ChangeLog,v 1.12 2009/01/10 17:41:42 angelos Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cinit/ChangeLog,v 1.13 2012/10/15 16:37:07 ago Exp $ + + 15 Oct 2012; Agostino Sarubbo <ago@gentoo.org> cinit-0.2.1.ebuild: + EAPI4, respect CFLAGS, wrt to bug #431586 10 Jan 2009; Christoph Mende <angelos@gentoo.org> cinit-0.2.1.ebuild: QA: Prevent stripping (bug 252056), respect CC diff --git a/sys-apps/cinit/cinit-0.2.1.ebuild b/sys-apps/cinit/cinit-0.2.1.ebuild index 2823de4262e7..11e688a3fdff 100644 --- a/sys-apps/cinit/cinit-0.2.1.ebuild +++ b/sys-apps/cinit/cinit-0.2.1.ebuild @@ -1,6 +1,8 @@ -# 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/sys-apps/cinit/cinit-0.2.1.ebuild,v 1.3 2009/01/10 17:41:42 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cinit/cinit-0.2.1.ebuild,v 1.4 2012/10/15 16:37:07 ago Exp $ + +EAPI=4 inherit toolchain-funcs @@ -13,29 +15,24 @@ SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~x86" IUSE="doc" -src_unpack() { - unpack ${A} - cd "${S}" - - sed -i "/contrib+tools/d" Makefile - sed -i "/^STRIP/s/strip.*/true/" Makefile.include +src_prepare() { + sed -i "/contrib+tools/d" Makefile || die + sed -i "/^STRIP/s/strip.*/true/" Makefile.include || die } src_compile() { emake \ CC="$(tc-getCC)" \ LD="$(tc-getCC)" \ - OPTIMIZE="${CFLAGS}" \ + CFLAGS="${CFLAGS} -I." \ LDFLAGS="${LDFLAGS}" \ STRIP=/bin/true \ - all || die "make failed" + all } src_install() { - emake DESTDIR="${D}" install || die "install failed" + emake LD=$(tc-getCC) DESTDIR="${D}" install rm -f "${D}"/sbin/{init,shutdown,reboot} dodoc Changelog CHANGES CREDITS README TODO - if use doc ; then - dodoc -r doc - fi + use doc && dodoc -r doc } |