Files
gentoo/dev-libs/libx86emu/libx86emu-3.7.ebuild
Pacho Ramos 7604d998b5 dev-libs/libx86emu: Skip tests
Until upstream fixes them (also the other distributions are skipping them due
to the same issues).

Bug: https://bugs.gentoo.org/922764
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2026-06-17 19:40:01 +02:00

37 lines
836 B
Bash

# Copyright 1999-2026 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"
# Tests broken: https://github.com/wfeldt/libx86emu/issues/50
RESTRICT="test"
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
}