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