diff options
author | 2016-04-29 10:56:18 +0300 | |
---|---|---|
committer | 2016-04-29 10:59:08 +0300 | |
commit | c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290 (patch) | |
tree | 27876713ae77edf7a23eef1d453c5c006418774d /dev-libs/libx86/libx86-1.1-r4.ebuild | |
parent | dev-ruby/colorator: add ruby23 (diff) | |
download | gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.tar.gz gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.tar.bz2 gentoo-c96dc7cf3ab2fb58fa22c7fd9c1557dda14d5290.zip |
dev-libs/libx86: revision bump
Port to EAPI 6, bring wider arch support
Reported-by: Oleg <oleg@funtoo.org>
Gentoo-Bug: 579682
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-libs/libx86/libx86-1.1-r4.ebuild')
-rw-r--r-- | dev-libs/libx86/libx86-1.1-r4.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/libx86/libx86-1.1-r4.ebuild b/dev-libs/libx86/libx86-1.1-r4.ebuild new file mode 100644 index 000000000000..8b172d30d2ed --- /dev/null +++ b/dev-libs/libx86/libx86-1.1-r4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="A hardware-independent library for executing real-mode x86 code" +HOMEPAGE="http://www.codon.org.uk/~mjg59/libx86" +SRC_URI="http://www.codon.org.uk/~mjg59/${PN}/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +src_prepare() { + # fix compile failure with linux-headers-2.6.26, bug 235599 + eapply -p0 "${FILESDIR}/${PN}-0.99-ifmask.patch" + # Patch for bugs #236888 and #456648 + eapply -p0 "${FILESDIR}/${P}-makefile.patch" + # Wider arch compatibility, bug #579682 + eapply -p2 "${FILESDIR}/${P}-x86emu.patch" + + eapply_user +} + +src_configure() { + tc-export CC AR + append-flags -fno-delete-null-pointer-checks #523276 +} + +src_compile() { + local ARGS + use x86 || ARGS="BACKEND=x86emu" + emake ${ARGS} LIBRARY=shared shared + if use static-libs; then + emake ${ARGS} objclean + emake ${ARGS} LIBRARY=static static + fi +} + +src_install() { + local install_static; + use static-libs && install_static='install-static' + emake \ + LIBDIR="/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + install-header install-shared ${install_static} +} |