From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libx86/libx86-1.1-r2.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-libs/libx86/libx86-1.1-r2.ebuild (limited to 'dev-libs/libx86/libx86-1.1-r2.ebuild') diff --git a/dev-libs/libx86/libx86-1.1-r2.ebuild b/dev-libs/libx86/libx86-1.1-r2.ebuild new file mode 100644 index 000000000000..72c2285dadff --- /dev/null +++ b/dev-libs/libx86/libx86-1.1-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +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="" + +src_prepare() { + # fix compile failure with linux-headers-2.6.26, bug 235599 + epatch "${FILESDIR}"/${PN}-0.99-ifmask.patch + sed -i 's:\($(CC) $(CFLAGS)\)\( -o libx86.so.1\):\1 $(LDFLAGS)\2:' \ + Makefile || die #236888 + tc-export CC AR +} + +src_compile() { + local ARGS + use amd64 && ARGS="BACKEND=x86emu" + emake ${ARGS} +} + +src_install() { + emake \ + LIBDIR="/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + install +} -- cgit v1.2.3