diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-25 11:25:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-25 11:25:16 +0100 |
commit | 70a8e0f526762c28622fae5f944f8f59f9abf728 (patch) | |
tree | a58f1b704c29cff0ad8201d20ebbf7a11018f88f /dev-libs/libx86emu/libx86emu-3.5.ebuild | |
parent | 4eda0fe5576868e6c7f97b51aa1c279ff8cd320c (diff) |
gentoo auto-resync : 25:09:2023 - 11:25:16
Diffstat (limited to 'dev-libs/libx86emu/libx86emu-3.5.ebuild')
-rw-r--r-- | dev-libs/libx86emu/libx86emu-3.5.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-libs/libx86emu/libx86emu-3.5.ebuild b/dev-libs/libx86emu/libx86emu-3.5.ebuild new file mode 100644 index 000000000000..f4c40aa7a9ab --- /dev/null +++ b/dev-libs/libx86emu/libx86emu-3.5.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A library for emulating x86" +HOMEPAGE="https://github.com/wfeldt/libx86emu" +SRC_URI="https://github.com/wfeldt/libx86emu/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +src_prepare() { + default + echo "${PV}" > VERSION || die + rm -fr git2log || die +} + +src_compile() { + emake shared CC=$(tc-getCC) CFLAGS="${CFLAGS} -fPIC -Wall" LDFLAGS="${LDFLAGS}" +} + +src_test() { + emake test CC=$(tc-getCC) CFLAGS="${CFLAGS} -fPIC -Wall" LDFLAGS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + dodoc README.md +} |