mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 19:20:56 +02:00
unicorn-bindings-1.0.2.ebuild
This commit is contained in:
parent
b2b851e2c3
commit
4f41e5e056
2 changed files with 65 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
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
|
||||
|
|
|
|||
64
dev-libs/unicorn-bindings/unicorn-bindings-1.0.2.ebuild
Normal file
64
dev-libs/unicorn-bindings/unicorn-bindings-1.0.2.ebuild
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
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-${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
|
||||
}
|
||||
Loading…
Reference in a new issue