mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
unicorn: moved to Gentoo
This commit is contained in:
parent
00490619df
commit
42f6046ced
4 changed files with 0 additions and 208 deletions
|
|
@ -1,3 +0,0 @@
|
|||
DIST unicorn-1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca
|
||||
DIST unicorn-2.0.0_rc4.tar.gz 3804902 BLAKE2B 98350911f80d4906e591f99ea9c04c39b951cf58fd55ab57a5c25b75d1a6a5bc45fd6606d0f95078dfba5253ec6577eea404c6daab28ae04db67386f711fd458 SHA512 f0b3fe6791d7060a20ae77adc8dde652b73f881b9be972e41d89ffb72a726d1d4b98c67a1d26fc130d1be37cd56ca35f74bf3ccf928258206ce69b487b0a65a4
|
||||
DIST unicorn-2.0.0_rc5.tar.gz 3808762 BLAKE2B 02a77c46e075f67df04a9fe0b5474df9f6a6c154778de3223c6ed3c475bd4658abd7b57d351a63cfa7ef5ecbadbee12a6151957b7b47b4f6741b5e4581d13c4b SHA512 3b5118e378872a50d3aa0dca01cda69b0e7b3875da7b03c1708963848c71818dd1e120df8796acace661c6b4d63813b9acc8106ce3a94c0d40c3b50677fbaacd
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="unicorn_targets_x86">Use the x86 architecture</flag>
|
||||
<flag name="unicorn_targets_m68k">Use the m68k architecture</flag>
|
||||
<flag name="unicorn_targets_arm">Use the arm architecture</flag>
|
||||
<flag name="unicorn_targets_aarch64">Use the aarch64 architecture</flag>
|
||||
<flag name="unicorn_targets_mips">Use the mips architecture</flag>
|
||||
<flag name="unicorn_targets_sparc">Use the sparc architecture</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
inherit multilib distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator framework"
|
||||
HOMEPAGE="http://www.unicorn-engine.org"
|
||||
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
IUSE_UNICORN_TARGETS="x86 m68k arm aarch64 mips sparc"
|
||||
use_unicorn_targets=$(printf ' unicorn_targets_%s' ${IUSE_UNICORN_TARGETS})
|
||||
IUSE="python ${use_unicorn_targets} static-libs debug"
|
||||
|
||||
REQUIRED_USE="|| ( ${use_unicorn_targets} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="dev-libs/glib:2
|
||||
virtual/pkgconfig
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
#src_prepare
|
||||
#do not compile C extensions
|
||||
export LIBUNICORN_PATH=1
|
||||
|
||||
pushd bindings/python >/dev/null || die
|
||||
distutils-r1_${1} "$@"
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#build from sources
|
||||
rm -r bindings/python/prebuilt || die "failed to remove prebuild"
|
||||
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
local target
|
||||
unicorn_softmmu_targets=""
|
||||
|
||||
for target in ${IUSE_UNICORN_TARGETS} ; do
|
||||
if use "unicorn_targets_${target}"; then
|
||||
unicorn_targets+="${target} "
|
||||
fi
|
||||
done
|
||||
|
||||
#the following variable is getting recreated using UNICORN_ARCHS below
|
||||
UNICORN_TARGETS=""
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS
|
||||
UNICORN_ARCHS="${unicorn_targets}" \
|
||||
UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
UNICORN_DEBUG="$(use debug && echo yes || echo no)" \
|
||||
emake V=s
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
UNICORN_ARCHS="${unicorn_targets}" \
|
||||
DESTDIR="${D}" \
|
||||
LIBDIR="/usr/$(get_libdir)" \
|
||||
UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
install
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
inherit cmake multilib distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator framework"
|
||||
HOMEPAGE="http://www.unicorn-engine.org"
|
||||
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
IUSE_UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc"
|
||||
|
||||
use_unicorn_targets=$(printf ' unicorn_targets_%s' ${IUSE_UNICORN_TARGETS})
|
||||
IUSE="python ${use_unicorn_targets} static-libs"
|
||||
|
||||
REQUIRED_USE="|| ( ${use_unicorn_targets} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="dev-libs/glib:2
|
||||
virtual/pkgconfig
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
#src_prepare
|
||||
#do not compile C extensions
|
||||
export LIBUNICORN_PATH=1
|
||||
|
||||
pushd bindings/python >/dev/null || die
|
||||
distutils-r1_${1} "$@"
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#build from sources
|
||||
rm -r bindings/python/prebuilt || die "failed to remove prebuild"
|
||||
cmake_src_prepare
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
local target
|
||||
for target in ${IUSE_UNICORN_TARGETS} ; do
|
||||
if use "unicorn_targets_${target}"; then
|
||||
unicorn_targets+="${target} "
|
||||
fi
|
||||
done
|
||||
|
||||
#the following variable is getting recreated using UNICORN_ARCHS below
|
||||
# UNICORN_TARGETS=""
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DUNICORN_BUILD_SHARED="$(usex static-libs OFF ON)"
|
||||
-DUNICORN_ARCH="${unicorn_targets}"
|
||||
)
|
||||
cmake_src_configure
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS
|
||||
# UNICORN_ARCHS="${unicorn_targets}" \
|
||||
# UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
# UNICORN_DEBUG="$(use debug && echo yes || echo no)" \
|
||||
# emake V=s
|
||||
|
||||
cmake_src_compile
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
#src_test() {
|
||||
# default
|
||||
# wrap_python ${FUNCNAME}
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
# emake \
|
||||
# UNICORN_ARCHS="${unicorn_targets}" \
|
||||
# DESTDIR="${D}" \
|
||||
# LIBDIR="/usr/$(get_libdir)" \
|
||||
# UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
# install
|
||||
|
||||
cmake_src_install
|
||||
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Loading…
Reference in a new issue