unicorn-python: remove package

* python2 bindings, unused
This commit is contained in:
Michal Vasilek 2022-02-03 00:10:47 +01:00 committed by Echo
parent 997d81aeb1
commit 9a3aebfc71
3 changed files with 5 additions and 20 deletions

View file

@ -281,6 +281,7 @@ replaces="
python-pytest-relaxed<=1.1.2_2
python-requests<=2.26.0_2
python-sqlite<=2.8.3_1
python-unicorn>=0
python-urllib3<=1.26.6_2
python-xlib<0.29_1
python3-Django<=3.0.7_2
@ -342,6 +343,7 @@ replaces="
traverso<=0.49.6_2
ttyload-git<=20141117_4
tuxc<=1.1_3
unicorn-python<=1.0.2_2
urlmatch-git<=20141116_2
uwsgi-python<=2.0.18_3
v8<=3.24.35.33_4

View file

@ -1 +0,0 @@
unicorn

View file

@ -2,7 +2,7 @@
pkgname=unicorn
version=1.0.2
revision=2
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
hostmakedepends="python3-devel python3-setuptools"
short_desc="Lightweight multi-platform, multi-architecture CPU emulator framework"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-2.0-only"
@ -19,18 +19,13 @@ do_build() {
make $makejobs
make $makejobs -C bindings
cd bindings/python
for pyver in $py2_ver $py3_ver; do
python${pyver} setup.py build --build-base=build-${pyver}
done
python3 setup.py build
}
do_install() {
make DESTDIR=${DESTDIR} install
cd bindings/python
for pyver in $py2_ver $py3_ver; do
python${pyver} setup.py build --build-base=build-${pyver} \
install --prefix=/usr --root=${DESTDIR}
done
python3 setup.py build install --prefix=/usr --root=${DESTDIR}
}
unicorn-devel_package() {
@ -44,20 +39,9 @@ unicorn-devel_package() {
}
}
unicorn-python_package() {
replaces="python-unicorn>=0"
depends="${sourcepkg}-devel>=${version}_${revision} python-setuptools"
short_desc+=" - Python2 bindings"
pycompile_module="unicorn"
pkg_install() {
vmove ${py2_sitelib}
}
}
unicorn-python3_package() {
depends="${sourcepkg}-devel>=${version}_${revision} python3-setuptools"
short_desc+=" - Python3 bindings"
pycompile_module="unicorn"
pkg_install() {
vmove ${py3_sitelib}
}