mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
unicorn: repoman fixes
This commit is contained in:
parent
20e3593a9d
commit
fc542a8648
5 changed files with 8 additions and 121 deletions
|
|
@ -1,2 +1 @@
|
|||
DIST unicorn-1.0.1.tar.gz 3241225 BLAKE2B 977349ee9f98d63a93d67ed9f1e8c4fd7fc6a5bf43285baf011624ddb4b801bdaf61879ddaec1310d84a23151e16af95af0eb3396e22895d4067396f1426ea1e SHA512 edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966
|
||||
DIST unicorn-1.0.2_rc2.tar.gz 3746757 BLAKE2B fa5e4f998de7836c4ed2bb704f9c9a898b0baaa4e55f2734bed7797667b75050e3267bc2f85f5899265e5beecf0d400c9b5432fe973c68fe2a6974dd61db06ba SHA512 170021813c665f6489a8f158148dcc1f08bb1dbe51640b1f53c1530d44921b9761f177cd30e6fc6dac0102f60c8787cb37fb13cc0afc1085fc2d5599d1cf13c3
|
||||
|
|
|
|||
8
dev-libs/unicorn-bindings/metadata.xml
Normal file
8
dev-libs/unicorn-bindings/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
|
||||
inherit multilib distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Unicorn bindings"
|
||||
HOMEPAGE="http://www.unicorn-engine.org"
|
||||
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${PV}.tar.gz -> unicorn-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="~dev-util/unicorn-${PV}"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
|
||||
"
|
||||
# go? ( dev-lang/go )
|
||||
# ruby? ( dev-lang/ruby:* )
|
||||
|
||||
S="${WORKDIR}/unicorn-${PV}"/bindings
|
||||
|
||||
src_prepare(){
|
||||
epatch "${FILESDIR}"/prebuilt.patch
|
||||
|
||||
# use go || sed -i -e '/go gen_const/d' Makefile
|
||||
# use java || sed -i -e '/java gen_const/d' Makefile
|
||||
# use python || sed -i -e '/python gen_const/d' Makefile
|
||||
# use ruby || sed -i -e '/ruby gen_const/d' Makefile
|
||||
|
||||
sed -i -e '/const_generator.py dotnet/d' Makefile
|
||||
#fix python2 install
|
||||
sed -i "s|python setup.py install|python2 setup.py install|" python/Makefile || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile(){
|
||||
einfo "Nothing to compile"
|
||||
# emake -C python DESTDIR="${D}" check
|
||||
}
|
||||
|
||||
src_install(){
|
||||
if use python; then
|
||||
myinstall_python() {
|
||||
if python_is_python3; then
|
||||
emake -C python DESTDIR="${D}" install3
|
||||
else
|
||||
emake -C python DESTDIR="${D}" install
|
||||
fi
|
||||
}
|
||||
python_foreach_impl myinstall_python
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
DIST unicorn-1.0.1.tar.gz 3241225 BLAKE2B 977349ee9f98d63a93d67ed9f1e8c4fd7fc6a5bf43285baf011624ddb4b801bdaf61879ddaec1310d84a23151e16af95af0eb3396e22895d4067396f1426ea1e SHA512 edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966
|
||||
DIST unicorn-1.0.2_rc2.tar.gz 3746757 BLAKE2B fa5e4f998de7836c4ed2bb704f9c9a898b0baaa4e55f2734bed7797667b75050e3267bc2f85f5899265e5beecf0d400c9b5432fe973c68fe2a6974dd61db06ba SHA512 170021813c665f6489a8f158148dcc1f08bb1dbe51640b1f53c1530d44921b9761f177cd30e6fc6dac0102f60c8787cb37fb13cc0afc1085fc2d5599d1cf13c3
|
||||
DIST unicorn-1.0.2_rc3.tar.gz 3747400 BLAKE2B 863dbead1cb08467298082fe8845741485ed6c1549ef846d30cde6b225fcd1cd955c5b2773ff78df8271304595f9559118ce41b3f993bd9cd1e5e47abaeb8a51 SHA512 6d27fa74504fe2c3d9292b4f67634042ac87015c203dfa0085d17d0efb82c12d0084bb5bd3f96200fb0c861820d499f09fa2e9e2a27addb68e1ba3bf2c7fea37
|
||||
|
|
|
|||
|
|
@ -1,60 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
#ERROR: Cannot use 'python', Python 2.4 or later is required.
|
||||
# Note that Python 3 or later is not yet supported.
|
||||
|
||||
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 ~x86 ~m68k ~arm ~arm64 ~mips ~sparc"
|
||||
IUSE="python static-libs"
|
||||
|
||||
IUSE_UNICORN_TARGETS="x86 m68k arm aarch64 mips sparc"
|
||||
use_unicorn_targets=$(printf ' unicorn_targets_%s' ${IUSE_UNICORN_TARGETS})
|
||||
IUSE+=" ${use_unicorn_targets}"
|
||||
|
||||
DEPEND="dev-libs/glib:2
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/pkgconfig"
|
||||
PDEPEND="dev-libs/unicorn-bindings[python?]"
|
||||
|
||||
REQUIRED_USE="|| ( ${use_unicorn_targets} )"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS
|
||||
UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" \
|
||||
UNICORN_ARCHS="${unicorn_targets}" \
|
||||
UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
emake
|
||||
# echo $PWD
|
||||
# UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" UNICORN_ARCHS="${unicorn_targets}" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" ./make.sh --python=/usr/bin/python2
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" install
|
||||
}
|
||||
Loading…
Reference in a new issue