diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-08-28 23:12:53 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-08-28 23:12:53 +0200 |
commit | 56375472233643a9deeaf2412d0ed5b8f486e59e (patch) | |
tree | 50ace818c2b029a1724d8b732f1cc5e250a44b9f /sys-boot | |
parent | app-forensics/foremost: Fix build with GCC-10/-fno-common (diff) | |
download | gentoo-56375472233643a9deeaf2412d0ed5b8f486e59e.tar.gz gentoo-56375472233643a9deeaf2412d0ed5b8f486e59e.tar.bz2 gentoo-56375472233643a9deeaf2412d0ed5b8f486e59e.zip |
sys-boot/netboot: fix compilation on x86
Closes: https://bugs.gentoo.org/686302
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/netboot/netboot-0.10.2-r2.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/sys-boot/netboot/netboot-0.10.2-r2.ebuild b/sys-boot/netboot/netboot-0.10.2-r2.ebuild new file mode 100644 index 000000000000..4e04e05496ca --- /dev/null +++ b/sys-boot/netboot/netboot-0.10.2-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Allows to remote boot a computer over an IP network" +HOMEPAGE="http://netboot.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="berkdb +bootrom +lzo odbc static-libs" + +DEPEND=" + berkdb? ( sys-libs/db:= ) + lzo? ( dev-libs/lzo:2= ) + odbc? ( dev-db/unixODBC:= ) +" + +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-ldflags.patch" ) + +src_prepare() { + default + + # Don't install support binaries into libdir + sed -e "152s:nblibdir:bindir:" -e "153s:nblibdir:bindir:" -i misc/Makefile || die + + # Don't install perl script into libdir + sed -e 's/nblibdir/nbmiscdir/g' -i mknbi-dos/utils/Makefile || die + + # Don't install vim syntax file, as it will be installed manually + sed -e '/mgl.vim/d' -i mknbi-mgl/Makefile || die +} + +src_configure() { + local myeconfargs=( + --datadir="/usr/share/netboot" + $(use_with berkdb berkeley-db) + $(use_enable bootrom) + $(use_with lzo) + $(use_with odbc) + $(use_enable static-libs static) + # Disable compilation of 16-bit assembler files, + # since it's broken on x86 and not supported on x86_64. + --with-gnu-as86="no" + --with-gnu-cc86="no" + --with-gnu-ld86="no" + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + # mknbi fails with parallel build + emake -j1 +} + +src_install() { + emake DESTDIR="${ED}" install + + insinto /usr/share/vim/vimfiles/syntax + doins "${S}"/mknbi-mgl/misc/mgl.vim + + dodoc README doc/{HISTORY,PROBLEMS,README.*,Spec.doc} + + docinto flashcard + dodoc FlashCard/README FlashCard/*.ps + + find "${D}" -name '*.la' -type f -delete || die +} |