/[gentoo-x86]/net-misc/mknbi/mknbi-1.4.4.ebuild
Gentoo

Contents of /net-misc/mknbi/mknbi-1.4.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Jan 19 23:17:24 2010 UTC (10 years, 1 month ago) by cla
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -2 lines
Make sure documentation installs inside /usr/share/doc/${PF} (bug #296620)
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/mknbi/mknbi-1.4.4.ebuild,v 1.7 2008/08/31 04:36:02 mr_bones_ Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="Utility for making tagged kernel images useful for netbooting"
8 SRC_URI="mirror://sourceforge/etherboot/${P}.tar.gz"
9 RESTRICT="mirror"
10 HOMEPAGE="http://etherboot.sourceforge.net"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE=""
16
17 RDEPEND=">=dev-lang/perl-5.6.1
18 !sys-boot/netboot"
19 DEPEND="${RDEPEND}
20 dev-lang/nasm"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 epatch \
26 "${FILESDIR}"/mknbi-1.4.3-nossp.patch \
27 "${FILESDIR}"/${P}-gcc4.patch
28
29 sed -i \
30 -e "s:\/usr\/local:\/usr:" \
31 -e "s:COPYING::" \
32 -e "s:\-mcpu:\-march:" Makefile \
33 || die "sed failed"
34 sed -r /^DOCDIR/s:packages/.*:${PF}: -i Makefile || die "sed failed"
35
36 #apply modifications to CFLAGS to fix for gcc 3.4: bug #64049
37 if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
38 then
39 sed -i \
40 -e 's:\-mcpu:\-mtune:' \
41 -e 's:CFLAGS=:CFLAGS= -minline-all-stringops:' Makefile \
42 || die "sed failed"
43 fi
44 if [ "`gcc-major-version`" = "4" ]; then
45 sed -i \
46 -e 's:\-fno-stack-protector-all::' Makefile \
47 || die "sed failed"
48 fi
49 }
50
51 src_install() {
52 export BUILD_ROOT="${D}"
53 emake DESTDIR="${D}" install || die "emake failed"
54 prepalldocs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20