diff options
author | 2020-06-23 01:39:05 +0200 | |
---|---|---|
committer | 2020-06-23 01:39:05 +0200 | |
commit | cc11d2e5ae8fc2a70a662af3535d6b0f5df704b3 (patch) | |
tree | 8f49015953fd00d27c1d5712d222d0c6f1d0c23c | |
parent | net-p2p/*: Fix some QA issues (diff) | |
download | klondike-cc11d2e5ae8fc2a70a662af3535d6b0f5df704b3.tar.gz klondike-cc11d2e5ae8fc2a70a662af3535d6b0f5df704b3.tar.bz2 klondike-cc11d2e5ae8fc2a70a662af3535d6b0f5df704b3.zip |
dev-util/unicorn: add 0.9.2_rc4
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Manifest-Sign-Key: 0x5608AEA28AAFC0EC
Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@klondike.es>
-rw-r--r-- | dev-util/unicorn/ChangeLog | 4 | ||||
-rw-r--r-- | dev-util/unicorn/Manifest | 23 | ||||
-rw-r--r-- | dev-util/unicorn/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/unicorn/unicorn-1.0.2_rc4.ebuild | 88 |
4 files changed, 131 insertions, 0 deletions
diff --git a/dev-util/unicorn/ChangeLog b/dev-util/unicorn/ChangeLog new file mode 100644 index 0000000..a4f2759 --- /dev/null +++ b/dev-util/unicorn/ChangeLog @@ -0,0 +1,4 @@ +*unicorn-1.0.2_rc4 (22 Jun 2020) + + 22 Jun 2020; <klondike@gentoo.org> +metadata.xml, +unicorn-1.0.2_rc4.ebuild: + dev-util/unicorn: diff --git a/dev-util/unicorn/Manifest b/dev-util/unicorn/Manifest new file mode 100644 index 0000000..f3a42b7 --- /dev/null +++ b/dev-util/unicorn/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST unicorn-1.0.2_rc4.tar.gz 3730676 BLAKE2B 8761de49cb8cca6fe2cd54e22bc80e91aba8fc6aca1b111b3115b9afe3b5a77f1fa8fbf0015f28b10928f5aad76e1fda72d97748eb0f573c8a6c0e6c558d1899 SHA512 a57c2559176f0694d95bca374b66d381f6a15b470294a5a4db7d7f6135ee0a3a82f57c4f4ff7afdeb07a6f66953f5c2102a5922cdbdf6785fed41d0b6830e0b6 +EBUILD unicorn-1.0.2_rc4.ebuild 2063 BLAKE2B 3902bf18a734ed38464449a12cf32cdb4af997fa5fa8c263d08486c4ff9ea677a7359a0b8c6988acada5dba1efcf6243f719addc6f6d529b9809fbba66d04015 SHA512 0edfdfd8e8c0f033f2ee8efc4caa5b8fea1affa3a6ae2055e70a1df1373c617d22cbb1f6efd6a6c29def0a1fac1754bd67bd74e0fc10e5e49a8194504125356c +MISC ChangeLog 134 BLAKE2B f18726fddc6a0ae8cee08bd847ebc4efedab39227bb48a4df5102279fa4125cc4d70d641a8345068b236659a572d6cd319bd4dcb3e782d12bdcf77415a685f3a SHA512 e8e767faf3edacf058de48dadddf2c19225a977c3a0387a2b79f50d23fec05569cd783817826b1f35ae0c675eda459fde8d78ccc759bc862afdf00e4fe7a8a69 +MISC metadata.xml 698 BLAKE2B 72d3ae67be8574ddf3adf579b2ec3572b2135cb9475a13e50bcd6f45fe49bd722cc620b1095f1378d0aed107d7967aab8ece8e9465e70ffce0ff95e17c9d5538 SHA512 64820d416311e0d6d9cc1445e996a96c8c55a24cad5c01f4e981658490726e9bb2c885447b1945e4721e4be5727fe492c09caf7fe2a30397aac21c37787bec5c +-----BEGIN PGP SIGNATURE----- + +iQIzBAEBCAAdFiEEDaSLWSPwfVgqfnPQ9L3S7+j/ePkFAl7xQJUACgkQ9L3S7+j/ +ePk6tw/+KJTsAOjuiPj3WRDa7FxUNvfGuAz3TYd6rEoktnYL9ZVj3i0ABeTceimM +WNDoupONOBON1qebdG0culoudD6IqVyzml5FM54k5l+FMpDkk1yBmuMqRfpSqrOx +94ROdYuZ6s6bHvQfWvCODM/5ehC5X2gaCgWN6SqmOo4SlhJRhUjqwuZPP4NrdouV +I8ncrXQwbyEHZFiNyk0CIzf8zfZY8KvOjd7T0lmexo3RXBUN/y0x+ISfh9vfmr74 +cV0PPFEgg9Ganljb4d26heX6ZoODAD7SMIuzNrBbPSqLQgsYt85AqlksYiQDPJKe +4W0WPmoG8yE5kbHElsq4DZjlS4DeN6YGwa1AmvaGMASwU3/0dO4aPWGlO8eyRHXh +iOEEEIzOehWce9XdD24PJ7xdPsfGtfRMOoTJcUzMfrxRP5G6IiNNF+uhjyYlcJT/ +e7WJpXkF2BXWPjQz3J4oOwktzs739Kny4MEV5cIZjt3k8aRmrIReBXjnm0RJV+03 +KKOxGiKSHpJuTYoCooa+6h1RaxTkLgjJuNtAr8NRvJuJC2XwvrqBUa//fSJ3w7oV +44J07IHZM+b634tdmKgbBfkNQr+zqs8eJBQw3ko85jGegKCwHMj+wbBFn1QWGz7l +PSlRJo3XfbTVRy2CdocNuyrRXBSHL78s/+zxlNZaP1wzVbNveY4= +=bIrb +-----END PGP SIGNATURE----- diff --git a/dev-util/unicorn/metadata.xml b/dev-util/unicorn/metadata.xml new file mode 100644 index 0000000..294dc0b --- /dev/null +++ b/dev-util/unicorn/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>klondike@gentoo.org</email> + <name>Francisco Blas Izquierdo Riera</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> diff --git a/dev-util/unicorn/unicorn-1.0.2_rc4.ebuild b/dev-util/unicorn/unicorn-1.0.2_rc4.ebuild new file mode 100644 index 0000000..4256d73 --- /dev/null +++ b/dev-util/unicorn/unicorn-1.0.2_rc4.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV=${PV/_/-} + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{6,7,8} ) +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/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~mips ~sparc ~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" + +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" + + 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_QEMU_FLAGS="--python=/usr/bin/python3" \ + UNICORN_ARCHS="${unicorn_targets}" \ + UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \ + emake + wrap_python ${FUNCNAME} +} + +src_test() { + default + + wrap_python ${FUNCNAME} +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" install + wrap_python ${FUNCNAME} +} |