From 9a3aebfc7148df94068db0bd626167c6b98da5ef Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 3 Feb 2022 00:10:47 +0100 Subject: [PATCH] unicorn-python: remove package * python2 bindings, unused --- srcpkgs/removed-packages/template | 2 ++ srcpkgs/unicorn-python | 1 - srcpkgs/unicorn/template | 22 +++------------------- 3 files changed, 5 insertions(+), 20 deletions(-) delete mode 120000 srcpkgs/unicorn-python diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index c1b4fa114a..5dbd28a0d0 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -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 diff --git a/srcpkgs/unicorn-python b/srcpkgs/unicorn-python deleted file mode 120000 index 20c8576391..0000000000 --- a/srcpkgs/unicorn-python +++ /dev/null @@ -1 +0,0 @@ -unicorn \ No newline at end of file diff --git a/srcpkgs/unicorn/template b/srcpkgs/unicorn/template index 2389b1ca98..c0e7bf419b 100644 --- a/srcpkgs/unicorn/template +++ b/srcpkgs/unicorn/template @@ -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 " 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} }