From 2719f73b6813d11d13a9650cdd2ab8ec6e69385d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 9 Jul 2022 15:43:36 +0100 Subject: gentoo resync : 09.07.2022 --- dev-util/unicorn/unicorn-9999.ebuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'dev-util/unicorn/unicorn-9999.ebuild') diff --git a/dev-util/unicorn/unicorn-9999.ebuild b/dev-util/unicorn/unicorn-9999.ebuild index 01c1ff6ba6bf..34777b117a28 100644 --- a/dev-util/unicorn/unicorn-9999.ebuild +++ b/dev-util/unicorn/unicorn-9999.ebuild @@ -7,7 +7,7 @@ MY_PV=${PV/_/-} DISTUTILS_USE_PEP517=setuptools DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit cmake distutils-r1 DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator framework" @@ -17,7 +17,7 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn" else - SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> ${P}.gh.tar.gz" KEYWORDS="~amd64 ~x86" fi @@ -34,12 +34,12 @@ RDEPEND="python? ( ${PYTHON_DEPS} )" BDEPEND="virtual/pkgconfig python? ( ${DISTUTILS_DEPS} )" -UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x" +UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc s390x tricore" wrap_python() { if use python; then # src_prepare - # do not compile C extensions + # Do not compile C extensions export LIBUNICORN_PATH=1 pushd bindings/python >/dev/null || die @@ -58,7 +58,6 @@ src_prepare() { src_configure(){ local mycmakeargs=( - -DBUILD_SHARED_LIBS=$(usex !static-libs) -DUNICORN_ARCH="${UNICORN_TARGETS// /;}" ) @@ -76,5 +75,9 @@ src_compile() { src_install() { cmake_src_install + if ! use static-libs; then + find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die + fi + wrap_python ${FUNCNAME} } -- cgit v1.2.3