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