python-snakeoil: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkgs into dummy pkgs.
This commit is contained in:
Alessio Sergi 2016-10-17 10:05:40 +02:00
parent d6ee8c6bef
commit a93766fa75
3 changed files with 24 additions and 14 deletions

View File

@ -1,13 +1,12 @@
# Template file for 'python-snakeoil'
pkgname=python-snakeoil
version=0.7.0
revision=2
revision=3
wrksrc="snakeoil-${version}"
build_style=python-module
pycompile_module="snakeoil"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 optimized versions of common python functionality"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="BSD, GPL-2"
@ -26,21 +25,30 @@ python-snakeoil-devel_package() {
vmove usr/include/python2.7
}
}
python3.4-snakeoil_package() {
pycompile_version="3.4"
short_desc="${short_desc/Python2/Python3.4}"
python3-snakeoil_package() {
replaces="python3.4-snakeoil>=0"
pycompile_module="snakeoil"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/lib/python3*
vlicense BSD
}
}
python3.4-snakeoil-devel_package() {
depends="python3.4-snakeoil>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3.4} - development files"
python3-snakeoil-devel_package() {
replaces="python3.4-snakeoil-devel>=0"
depends="python3-snakeoil>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3} - development files"
pkg_install() {
vmove usr/include/python3.4m
vmove usr/include/python3*
}
}
python3.4-snakeoil_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-snakeoil>=${version}_${revision}"
}
python3.4-snakeoil-devel_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} - development files (transitional dummy package)"
depends="python3-snakeoil-devel>=${version}_${revision}"
}

1
srcpkgs/python3-snakeoil Symbolic link
View File

@ -0,0 +1 @@
python-snakeoil

View File

@ -0,0 +1 @@
python-snakeoil