python-xdg: 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 11:33:13 +02:00
parent 601e279555
commit 9a723587aa
2 changed files with 14 additions and 9 deletions

View File

@ -1,15 +1,13 @@
# Template file for 'python-xdg' # Template file for 'python-xdg'
pkgname=python-xdg pkgname=python-xdg
version=0.25 version=0.25
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="pyxdg-${version}" wrksrc="pyxdg-${version}"
build_style="python-module" build_style="python-module"
python_versions="2.7 3.4" hostmakedepends="python-devel python3-devel"
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends}" makedepends="${hostmakedepends}"
depends="python" depends="python"
replaces="pyxdg>=0"
pycompile_module="xdg" pycompile_module="xdg"
short_desc="Python2 library to access freedesktop.org standards" short_desc="Python2 library to access freedesktop.org standards"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -18,13 +16,19 @@ homepage="http://freedesktop.org/Software/pyxdg"
distfiles="http://www.freedesktop.org/~takluyver/pyxdg-${version}.tar.gz" distfiles="http://www.freedesktop.org/~takluyver/pyxdg-${version}.tar.gz"
checksum=81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d checksum=81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d
python3.4-xdg_package() { python3-xdg_package() {
noarch=yes noarch=yes
depends="python3.4" depends="python3"
pycompile_version="3.4"
pycompile_module="xdg" pycompile_module="xdg"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-xdg>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
} }
} }
python3.4-xdg_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-xdg>=${version}_${revision}"
}

1
srcpkgs/python3-xdg Symbolic link
View File

@ -0,0 +1 @@
python-xdg