mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
unicorn-bindings-1.0.3.ebuild
This commit is contained in:
parent
12a9a19860
commit
7a47136b95
3 changed files with 4 additions and 70 deletions
|
|
@ -1,2 +1 @@
|
|||
DIST unicorn-1.0.2.tar.gz 3735111 BLAKE2B 0768fbeea9e8d97eb6ba956cff804e21f7b00a41fb2bc454d713fd660985d3bf38bbc86a236d94a74acc99c7c4305029fe3311e22d0195d37e66a7a10da3c954 SHA512 e459c849407ce3e42e40035953f6236f69518d0626ba5233ca4a36e0c70f50f7bac56ecfe4432a9741ac178d982192f588c6cc9795eb2a38c95a04de741fa33c
|
||||
DIST unicorn-1.0.2_rc2.tar.gz 3746757 BLAKE2B fa5e4f998de7836c4ed2bb704f9c9a898b0baaa4e55f2734bed7797667b75050e3267bc2f85f5899265e5beecf0d400c9b5432fe973c68fe2a6974dd61db06ba SHA512 170021813c665f6489a8f158148dcc1f08bb1dbe51640b1f53c1530d44921b9761f177cd30e6fc6dac0102f60c8787cb37fb13cc0afc1085fc2d5599d1cf13c3
|
||||
DIST unicorn-1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca
|
||||
|
|
|
|||
|
|
@ -1,66 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
inherit multilib distutils-r1
|
||||
|
||||
DESCRIPTION="Unicorn bindings"
|
||||
HOMEPAGE="http://www.unicorn-engine.org"
|
||||
SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_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-${MY_PV}"/bindings
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_prepare(){
|
||||
#do not compile C extensions
|
||||
export LIBUNICORN_PATH=1
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
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_optimize
|
||||
}
|
||||
python_foreach_impl myinstall_python
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
|
@ -12,7 +12,8 @@ SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> un
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
#use unicron[python] instead
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="~dev-util/unicorn-${PV}"
|
||||
Loading…
Reference in a new issue