From 42f090b0f23df6983a7c20e33b6f558eec3c03f8 Mon Sep 17 00:00:00 2001 From: Hayley Hughes Date: Thu, 2 Dec 2021 13:21:33 +1100 Subject: [PATCH] app-emulation/unicorn: new package Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hayley Hughes --- app-emulation/unicorn/Manifest | 1 + app-emulation/unicorn/metadata.xml | 16 ++++++ app-emulation/unicorn/unicorn-1.0.3.ebuild | 57 ++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 app-emulation/unicorn/Manifest create mode 100644 app-emulation/unicorn/metadata.xml create mode 100644 app-emulation/unicorn/unicorn-1.0.3.ebuild diff --git a/app-emulation/unicorn/Manifest b/app-emulation/unicorn/Manifest new file mode 100644 index 0000000000..a32d340b39 --- /dev/null +++ b/app-emulation/unicorn/Manifest @@ -0,0 +1 @@ +DIST 1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca diff --git a/app-emulation/unicorn/metadata.xml b/app-emulation/unicorn/metadata.xml new file mode 100644 index 0000000000..c9de728ed8 --- /dev/null +++ b/app-emulation/unicorn/metadata.xml @@ -0,0 +1,16 @@ + + + + + hayley@foxes.systems + Hayley Hughes + + + 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. + + + Enable python bindings + + diff --git a/app-emulation/unicorn/unicorn-1.0.3.ebuild b/app-emulation/unicorn/unicorn-1.0.3.ebuild new file mode 100644 index 0000000000..7c576f6268 --- /dev/null +++ b/app-emulation/unicorn/unicorn-1.0.3.ebuild @@ -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} +}