python-path: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 09:18:02 +02:00
parent 1ca8f0e3ad
commit 32992d01b1
2 changed files with 14 additions and 8 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-path' # Template file for 'python-path'
pkgname=python-path pkgname=python-path
version=8.2.1 version=8.2.1
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="path.py-${version}" wrksrc="path.py-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python" depends="python"
pycompile_module="path.py" pycompile_module="path.py"
short_desc="Python2 module wrapper for os.path" short_desc="Python2 module wrapper for os.path"
@ -22,13 +21,19 @@ pre_build() {
-i setup.py -i setup.py
} }
python3-path_package() {
noarch=yes
depends="python3"
pycompile_module="path.py"
replaces="python3.4-path>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-path_package() { python3.4-path_package() {
noarch=yes noarch=yes
depends="python3.4" build_style=meta
pycompile_version="3.4" short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
pycompile_module="path.py" depends="python3-path>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
} }

1
srcpkgs/python3-path Symbolic link
View file

@ -0,0 +1 @@
python-path