diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
commit | 2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch) | |
tree | 8c816148bcbd22757d892089c989ae614eae4f5a /dev-util/unicorn/unicorn-9999.ebuild | |
parent | 0f558761aa2dee1017b4751e4017205e015a9560 (diff) |
gentoo resync : 09.07.2022
Diffstat (limited to 'dev-util/unicorn/unicorn-9999.ebuild')
-rw-r--r-- | dev-util/unicorn/unicorn-9999.ebuild | 13 |
1 files changed, 8 insertions, 5 deletions
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} } |