/[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 - (hide 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 cla 1.8 # Copyright 1999-2010 Gentoo Foundation
2 vanquirius 1.1 # Distributed under the terms of the GNU General Public License v2
3 cla 1.8 # $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 vanquirius 1.1
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 peper 1.6 RESTRICT="mirror"
10 vanquirius 1.1 HOMEPAGE="http://etherboot.sourceforge.net"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14 opfer 1.5 KEYWORDS="x86"
15 vanquirius 1.1 IUSE=""
16    
17 mr_bones_ 1.7 RDEPEND=">=dev-lang/perl-5.6.1
18 masterdriverz 1.2 !sys-boot/netboot"
19 mr_bones_ 1.7 DEPEND="${RDEPEND}
20     dev-lang/nasm"
21 vanquirius 1.1
22     src_unpack() {
23     unpack ${A}
24     cd "${S}"
25 mr_bones_ 1.7 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 cla 1.8 sed -r /^DOCDIR/s:packages/.*:${PF}: -i Makefile || die "sed failed"
35 vanquirius 1.1
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 mr_bones_ 1.7 sed -i \
40     -e 's:\-mcpu:\-mtune:' \
41     -e 's:CFLAGS=:CFLAGS= -minline-all-stringops:' Makefile \
42     || die "sed failed"
43 masterdriverz 1.3 fi
44     if [ "`gcc-major-version`" = "4" ]; then
45 mr_bones_ 1.7 sed -i \
46     -e 's:\-fno-stack-protector-all::' Makefile \
47     || die "sed failed"
48 vanquirius 1.1 fi
49     }
50    
51     src_install() {
52     export BUILD_ROOT="${D}"
53 mr_bones_ 1.7 emake DESTDIR="${D}" install || die "emake failed"
54     prepalldocs
55 vanquirius 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20