blob: dc1065b999ca4444e58ec49625fa3ef83675d322 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/netboot/netboot-0.10.1.ebuild,v 1.3 2007/07/15 02:25:03 mr_bones_ Exp $
inherit eutils toolchain-funcs
DESCRIPTION="netbooting utility"
HOMEPAGE="http://netboot.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-libs/lzo-2
>=sys-libs/db-4"
RDEPEND="${DEPEND}
!net-misc/mknbi"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-nossp.patch
epatch "${FILESDIR}"/${P}-destdir.patch
sed -i -e "s/-s$//" "${S}"/make.config.in
find "${S}" -name \*.lo -exec rm {} \;
}
src_compile() {
econf --enable-bootrom --with-gnu-cc86="$(tc-getCC)" \
--with-gnu-as86="$(tc-getAS)" --with-gnu-ld86="$(tc-getLD)"|| die 'cannot configure'
# --enable-config-file
sed -i -e "s/-llzo/-llzo2/" "${S}"/make.config
emake || die 'cannot make'
}
src_install() {
emake DESTDIR=${D} install || die
dodoc README doc/*
docinto FlashCard
dodoc FlashCard/README FlashCard/*.ps
mv "${D}"/usr/share/misc "${D}"/usr/share/${PN}
rm -rf "${D}"/usr/lib/netboot/utils
dodoc "${S}"/mknbi-dos/utils/mntnbi.pl
insinto /usr/share/vim/vimfiles/syntax
doins "${S}"/mknbi-mgl/misc/mgl.vim
}
|