commit:     5e12b272391a90e927671bdb6e2f279b04ae75b4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 04:55:53 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 29 05:42:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e12b272

dev-libs/libx86emu: add 3.7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libx86emu/Manifest             |  1 +
 dev-libs/libx86emu/libx86emu-3.7.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/dev-libs/libx86emu/Manifest b/dev-libs/libx86emu/Manifest
index f62861582911..413b4275406f 100644
--- a/dev-libs/libx86emu/Manifest
+++ b/dev-libs/libx86emu/Manifest
@@ -1 +1,2 @@
 DIST libx86emu-3.5.tar.gz 144969 BLAKE2B 
3bba65ca6b42e92ad578a1bdacc94b5aad1f38f51d1e1fde1db65590db9611823a9e750675feb9c20fc7706e19181fe334e127a9c861159cea03aa5ea33d90a7
 SHA512 
079a8b5a7166802cd9bf781436dccc36a064c7e05c199bb41cc4d225e43afad4cc99654b3cb58389f7f806ffa625b5d793468064fdd9fa758ae0415496b18a9e
+DIST libx86emu-3.7.tar.gz 145108 BLAKE2B 
59121cc387948fbce59cd53b3b87db542600ed5795e00abfa65dbd9e236083c8128fc29a63453dd4327b1e07dc7eb72bfc80b73bdc4ea25e41bb7ac122ca6e5b
 SHA512 
e93db0f32d9e83f7f5f87753f1afb70add90bc033bc71e92fbe551608153a8ae7f1fe5c2900523445cb473ea7c1e26a8296f11a8cf248a816f3c5bf450a7b99c

diff --git a/dev-libs/libx86emu/libx86emu-3.7.ebuild 
b/dev-libs/libx86emu/libx86emu-3.7.ebuild
new file mode 100644
index 000000000000..3c8c5340d315
--- /dev/null
+++ b/dev-libs/libx86emu/libx86emu-3.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2025 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/$(ver_cut 1-2)"
+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 -j1 test CC=$(tc-getCC) CFLAGS="${CFLAGS} -fPIC -Wall" 
LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
+       dodoc README.md
+}

Reply via email to