/[gentoo-x86]/sys-apps/cinit/cinit-0.2.1.ebuild
Gentoo

Contents of /sys-apps/cinit/cinit-0.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Oct 15 16:37:07 2012 UTC (23 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +11 -14 lines
EAPI4, respect CFLAGS, wrt to bug #431586

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/cinit/cinit-0.2.1.ebuild,v 1.3 2009/01/10 17:41:42 angelos Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="a fast, small and simple init with support for profiles"
10 HOMEPAGE="http://linux.schottelius.org/cinit/"
11 SRC_URI="http://linux.schottelius.org/${PN}/archives/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
16 IUSE="doc"
17
18 src_prepare() {
19 sed -i "/contrib+tools/d" Makefile || die
20 sed -i "/^STRIP/s/strip.*/true/" Makefile.include || die
21 }
22
23 src_compile() {
24 emake \
25 CC="$(tc-getCC)" \
26 LD="$(tc-getCC)" \
27 CFLAGS="${CFLAGS} -I." \
28 LDFLAGS="${LDFLAGS}" \
29 STRIP=/bin/true \
30 all
31 }
32
33 src_install() {
34 emake LD=$(tc-getCC) DESTDIR="${D}" install
35 rm -f "${D}"/sbin/{init,shutdown,reboot}
36 dodoc Changelog CHANGES CREDITS README TODO
37 use doc && dodoc -r doc
38 }

  ViewVC Help
Powered by ViewVC 1.1.20