unicorn: rebuild for Python 3.5
Rename python*-unicorn to unicorn-python*. Convert python3.4-unicorn pkg into dummy pkg.
This commit is contained in:
parent
38358c6539
commit
ae8f05462f
|
@ -0,0 +1 @@
|
|||
unicorn
|
|
@ -1,9 +1,9 @@
|
|||
# Template file for 'unicorn'
|
||||
pkgname=unicorn
|
||||
version=0.9
|
||||
revision=2
|
||||
revision=3
|
||||
only_for_archs="x86_64 x86_64-musl i686 i686-musl"
|
||||
hostmakedepends="pkg-config python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="pkg-config python-devel python3-devel"
|
||||
makedepends="glib-devel"
|
||||
short_desc="Lightweight multi-platform, multi-architecture CPU emulator framework"
|
||||
maintainer="Michael Gehring <mg@ebfe.org>"
|
||||
|
@ -24,15 +24,15 @@ do_build() {
|
|||
make
|
||||
make -C bindings
|
||||
cd bindings/python
|
||||
for pyver in 2.7 3.4; do
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
python${pyver} setup.py build --build-base=build-${pyver}
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${PKGDESTDIR} install
|
||||
make DESTDIR=${DESTDIR} install
|
||||
cd bindings/python
|
||||
for pyver in 2.7 3.4; do
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
python${pyver} setup.py build --build-base=build-${pyver} \
|
||||
install --prefix=/usr --root=${DESTDIR}
|
||||
done
|
||||
|
@ -48,24 +48,26 @@ unicorn-devel_package() {
|
|||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
||||
|
||||
python-unicorn_package() {
|
||||
unicorn-python_package() {
|
||||
replaces="python-unicorn>=0"
|
||||
depends="${sourcepkg}-devel>=${version}_${revision}"
|
||||
short_desc+=" - Python2 bindings"
|
||||
pycompile_version="2.7"
|
||||
pycompile_module="unicorn"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python2.7
|
||||
vmove ${py2_sitelib}
|
||||
}
|
||||
}
|
||||
|
||||
python3.4-unicorn_package() {
|
||||
unicorn-python3_package() {
|
||||
replaces="python3.4-unicorn>=0"
|
||||
depends="${sourcepkg}-devel>=${version}_${revision}"
|
||||
short_desc+=" - Python3.4 bindings"
|
||||
pycompile_version="3.4"
|
||||
short_desc+=" - Python3 bindings"
|
||||
pycompile_module="unicorn"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
vmove ${py3_sitelib}
|
||||
}
|
||||
}
|
||||
|
||||
python3.4-unicorn_package() {
|
||||
build_style=meta
|
||||
short_desc+=" - Python3.4 bindings (transitional dummy package)"
|
||||
depends="unicorn-python3>=${version}_${revision}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue