mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
unicorn-bindings: in gentoo
This commit is contained in:
parent
a67188437a
commit
b38de8188c
4 changed files with 0 additions and 86 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST unicorn-1.0.3.tar.gz 3759365 BLAKE2B 130d494d03aa9aa1b27e6806856eb36c1871af6e8b89aef9136baa6ca8b726ba2eab778488185e96c47bf3771dd8bce19bf4fd5090888d28433a6129c827d88c SHA512 10f1b5194358c65bc94723eaafd7b4167fee18f96a4810f46f8c78ed1ef5584546e66e8c910fa4eeadd791fcd73edea68f898e337081409fd188b4090b78a7ca
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
--- unicorn-1.0.1/bindings/python/setup.py.orig 2017-04-20 14:14:24.000000000 +0800
|
||||
+++ unicorn-1.0.1/bindings/python/setup.py 2017-09-13 20:35:15.191606737 +0800
|
||||
@@ -146,6 +146,9 @@
|
||||
if 'upload' in sys.argv:
|
||||
sys.exit(1)
|
||||
|
||||
+ #we provide prebuild librarys
|
||||
+ return
|
||||
+
|
||||
# check if a prebuilt library exists
|
||||
# if so, use it instead of building
|
||||
if os.path.exists(os.path.join(ROOT_DIR, 'prebuilt', LIBRARY_FILE)) \
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
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"
|
||||
#use unicron[python] instead
|
||||
#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