Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/netboot/
Date: Wed, 09 Feb 2022 22:57:39
Message-Id: 1644447406.aa757de55fdc93048957a76c29721ded912bb334.conikost@gentoo
1 commit: aa757de55fdc93048957a76c29721ded912bb334
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 9 21:39:13 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 22:56:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa757de5
7
8 sys-boot/netboot: update EAPI 7 -> 8
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 sys-boot/netboot/netboot-0.10.2-r3.ebuild | 78 +++++++++++++++++++++++++++++++
13 1 file changed, 78 insertions(+)
14
15 diff --git a/sys-boot/netboot/netboot-0.10.2-r3.ebuild b/sys-boot/netboot/netboot-0.10.2-r3.ebuild
16 new file mode 100644
17 index 000000000000..bdaaf75e7d25
18 --- /dev/null
19 +++ b/sys-boot/netboot/netboot-0.10.2-r3.ebuild
20 @@ -0,0 +1,78 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit toolchain-funcs
27 +
28 +DESCRIPTION="Allows to remote boot a computer over an IP network"
29 +HOMEPAGE="http://netboot.sourceforge.net/"
30 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
31 +
32 +LICENSE="GPL-2+"
33 +SLOT="0"
34 +KEYWORDS="amd64 x86"
35 +IUSE="berkdb +bootrom +lzo odbc static-libs"
36 +
37 +DEPEND="
38 + berkdb? ( sys-libs/db:= )
39 + lzo? ( dev-libs/lzo:2= )
40 + odbc? ( dev-db/unixODBC:= )
41 +"
42 +
43 +RDEPEND="${DEPEND}"
44 +
45 +PATCHES=(
46 + "${FILESDIR}/${P}-ldflags.patch"
47 + "${FILESDIR}/${P}-slibtool.patch"
48 +)
49 +
50 +src_prepare() {
51 + default
52 +
53 + # Don't install support binaries into libdir
54 + sed -e "152s:nblibdir:bindir:" -e "153s:nblibdir:bindir:" -i misc/Makefile || die
55 +
56 + # Don't install perl script into libdir
57 + sed -e 's/nblibdir/nbmiscdir/g' -i mknbi-dos/utils/Makefile || die
58 +
59 + # Don't install vim syntax file, as it will be installed manually
60 + sed -e '/mgl.vim/d' -i mknbi-mgl/Makefile || die
61 +}
62 +
63 +src_configure() {
64 + local myeconfargs=(
65 + --datadir="/usr/share/netboot"
66 + $(use_with berkdb berkeley-db)
67 + $(use_enable bootrom)
68 + $(use_with lzo)
69 + $(use_with odbc)
70 + $(use_enable static-libs static)
71 + # Disable compilation of 16-bit assembler files,
72 + # since it's broken on x86 and not supported on x86_64.
73 + --with-gnu-as86="no"
74 + --with-gnu-cc86="no"
75 + --with-gnu-ld86="no"
76 + )
77 +
78 + econf "${myeconfargs[@]}"
79 +}
80 +
81 +src_compile() {
82 + # mknbi fails with parallel build
83 + emake -j1
84 +}
85 +
86 +src_install() {
87 + emake DESTDIR="${ED}" install
88 +
89 + insinto /usr/share/vim/vimfiles/syntax
90 + doins "${S}"/mknbi-mgl/misc/mgl.vim
91 +
92 + dodoc README doc/{HISTORY,PROBLEMS,README.*,Spec.doc}
93 +
94 + docinto flashcard
95 + dodoc FlashCard/README FlashCard/*.ps
96 +
97 + find "${D}" -name '*.la' -type f -delete || die
98 +}