unicorn: cleanup, it should clarify the issue https://github.com/pentoo/pentoo-overlay/issues/524

This commit is contained in:
blshkv 2019-11-03 15:43:08 +08:00
parent c139a52215
commit 61fe83b48a
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 5 additions and 99 deletions

View file

@ -1 +1 @@
DIST unicorn-1.0.1.tar.gz 3241225 SHA256 3a6a4f2b8c405ab009040ca43af8e4aa10ebe44d9c8b336aa36dc35df955017c SHA512 edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966 WHIRLPOOL 3edb3cfcabef38936d052afc5b6a224b2e3d2ffefda4b602be5f9136cde21d6707b7081b1806b42e0f02ba33987c808002034305965ab549ace2efc597e88f14
DIST unicorn-1.0.1.tar.gz 3241225 BLAKE2B 977349ee9f98d63a93d67ed9f1e8c4fd7fc6a5bf43285baf011624ddb4b801bdaf61879ddaec1310d84a23151e16af95af0eb3396e22895d4067396f1426ea1e SHA512 edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966

View file

@ -1,47 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-r3
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"
EGIT_REPO_URI="https://github.com/unicorn-engine/unicorn.git"
EGIT_COMMIT="7b47ab6b667f8959cbfe149fc67de7cfcd0bcf54"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~m68k ~arm ~arm64 ~mips ~sparc"
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"
RDEPEND="${DEPEND}
virtual/pkgconfig"
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=""
}
src_compile() {
#UNICORN_QEMU_FLAGS="--python=/path/to/python2" ./make.sh
#use amd64 && UNICORN_ARCHS="arm x86" UNICORN_STATIC="no" ./make.sh
UNICORN_ARCHS="${unicorn_targets}" UNICORN_STATIC="no" ./make.sh
}

View file

@ -1,50 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
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=""
}
src_compile() {
UNICORN_ARCHS="${unicorn_targets}" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" ./make.sh
}
src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" install
}

View file

@ -1,9 +1,12 @@
# Copyright 1999-2017 Gentoo Foundation
# 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"