mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
app-emulation/unicorn: new package
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hayley Hughes <hayley@foxes.systems>
This commit is contained in:
1
app-emulation/unicorn/Manifest
Normal file
1
app-emulation/unicorn/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST 1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca
|
||||
16
app-emulation/unicorn/metadata.xml
Normal file
16
app-emulation/unicorn/metadata.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>hayley@foxes.systems</email>
|
||||
<name>Hayley Hughes</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Unicorn is a lightweight multi-platform, multi-architecture CPU emulator
|
||||
framework. Unicorn is based on QEMU, but it goes much further with a lot
|
||||
more to offer.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="python">Enable python bindings</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
57
app-emulation/unicorn/unicorn-1.0.3.ebuild
Normal file
57
app-emulation/unicorn/unicorn-1.0.3.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake distutils-r1
|
||||
|
||||
DESCRIPTION="Unicorn CPU emulator framework"
|
||||
HOMEPAGE="http://www.unicorn-engine.org/"
|
||||
SRC_URI="https://github.com/unicorn-engine/${PN}/archive/${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="test python"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
wrap_python() {
|
||||
local phase=$1
|
||||
shift
|
||||
|
||||
if use python; then
|
||||
pushd bindings/python >/dev/null || die
|
||||
echo distutils-r1_${phase} "$@"
|
||||
pwd
|
||||
distutils-r1_${phase} "$@"
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cmake_src_configure
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Reference in New Issue
Block a user