diff options
author | David Seifert <soap@gentoo.org> | 2022-07-27 22:09:47 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-07-27 22:09:47 +0200 |
commit | e2e3f1c2a41501a9552a3f81b4336dc370cb32cc (patch) | |
tree | f5bed8d1f408b19726b7115a5848b64b92b07739 /dev-libs/libx86/libx86-1.1-r5.ebuild | |
parent | dev-libs/libtar: update EAPI 6 -> 8 (diff) | |
download | gentoo-e2e3f1c2a41501a9552a3f81b4336dc370cb32cc.tar.gz gentoo-e2e3f1c2a41501a9552a3f81b4336dc370cb32cc.tar.bz2 gentoo-e2e3f1c2a41501a9552a3f81b4336dc370cb32cc.zip |
dev-libs/libx86: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/libx86/libx86-1.1-r5.ebuild')
-rw-r--r-- | dev-libs/libx86/libx86-1.1-r5.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-libs/libx86/libx86-1.1-r5.ebuild b/dev-libs/libx86/libx86-1.1-r5.ebuild new file mode 100644 index 000000000000..ac4aa8723d12 --- /dev/null +++ b/dev-libs/libx86/libx86-1.1-r5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A hardware-independent library for executing real-mode x86 code" +HOMEPAGE="https://www.codon.org.uk/~mjg59/libx86/" +SRC_URI="https://www.codon.org.uk/~mjg59/${PN}/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm -ppc -riscv -sparc x86" + +PATCHES=( + # fix compile failure with linux-headers-2.6.26, bug 235599 + "${FILESDIR}"/${PN}-0.99-ifmask.patch + # Patch for bugs #236888 and #456648 + "${FILESDIR}"/${P}-makefile.patch + # Wider arch compatibility, bug #579682 + "${FILESDIR}"/${P}-x86emu.patch +) + +src_configure() { + tc-export AR CC + append-cflags -fno-delete-null-pointer-checks #523276 +} + +src_compile() { + emake $(usev !x86 BACKEND=x86emu) LIBRARY=shared shared +} + +src_install() { + emake \ + LIBDIR=/usr/$(get_libdir) \ + DESTDIR="${ED}" \ + install-header install-shared +} |