diff options
Diffstat (limited to 'dev-libs/libx86emu')
-rw-r--r-- | dev-libs/libx86emu/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/libx86emu/libx86emu-1.1.ebuild | 38 | ||||
-rw-r--r-- | dev-libs/libx86emu/metadata.xml | 5 |
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/libx86emu/Manifest b/dev-libs/libx86emu/Manifest new file mode 100644 index 000000000000..006724f9468c --- /dev/null +++ b/dev-libs/libx86emu/Manifest @@ -0,0 +1,3 @@ +DIST libx86emu-1.1-9.8.src.rpm 59517 BLAKE2B 6ae5b7792b9b67b93d12e9908e9941417e4149ed6289e0d02b23710ae4295d74aae806d85b0a0aa719eee6d63725b161dd8870d92b5352383a0beee5ce7827c9 SHA512 cb44306bb76feb47d46f1f3dd92cc6bf694dcc2c42d191fd9ff9f0b68744aeb25e99b29336e5ffe67e9a3d02c51d56690429b892d7fd26438dcc1d6603e18bcb +EBUILD libx86emu-1.1.ebuild 886 BLAKE2B 56f0048eda88ca0438ecce4de862c92ed0443385eb9918edcd522e4b538b52e66aee51ec4a4c995476d1cac0f3cf4d0c2319788d87a57e6a0612c0e22d6fadac SHA512 d8923437491b4e5711029cf7b6dcfa732cfe280894337c05116400ba0b14a3cb8077858c49035487389ddac9d37c33430339dee8d4d7af070379ad6d96fae739 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/dev-libs/libx86emu/libx86emu-1.1.ebuild b/dev-libs/libx86emu/libx86emu-1.1.ebuild new file mode 100644 index 000000000000..b8392b9291f2 --- /dev/null +++ b/dev-libs/libx86emu/libx86emu-1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit multilib rpm toolchain-funcs + +DESCRIPTION="A library for emulating x86" +HOMEPAGE="https://www.opensuse.org/" +SRC_URI="https://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-9.8.src.rpm" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + sed -i \ + -e 's:$(CC) -shared:& $(LDFLAGS):' \ + Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -fPIC -Wall" +} + +src_test() { + ln -sf libx86emu.so.1.1 libx86emu.so || die + ln -sf libx86emu.so.1.1 libx86emu.so.1 || die + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,-rpath,${S} -fPIC -Wall -I../include/ -L../" test +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + dodoc Changelog README +} diff --git a/dev-libs/libx86emu/metadata.xml b/dev-libs/libx86emu/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-libs/libx86emu/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |