mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
python-pycountry: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
1d1d66e3c7
commit
0c178c1c35
2 changed files with 14 additions and 8 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-pycountry'
|
# Template file for 'python-pycountry'
|
||||||
pkgname=python-pycountry
|
pkgname=python-pycountry
|
||||||
version=1.20
|
version=1.20
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pycountry-${version}"
|
wrksrc="pycountry-${version}"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
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-lxml"
|
depends="python-lxml"
|
||||||
pycompile_module="pycountry"
|
pycompile_module="pycountry"
|
||||||
short_desc="ISO databases accessible from Python2"
|
short_desc="ISO databases accessible from Python2"
|
||||||
|
@ -16,13 +15,19 @@ homepage="http://pypi.python.org/pypi/pycountry"
|
||||||
distfiles="${PYPI_SITE}/p/pycountry/pycountry-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pycountry/pycountry-${version}.tar.gz"
|
||||||
checksum=0588efa3171e1d5e4cc96fce569ac865964285fdc8dbdc0860844f74598d1f98
|
checksum=0588efa3171e1d5e4cc96fce569ac865964285fdc8dbdc0860844f74598d1f98
|
||||||
|
|
||||||
python3.4-pycountry_package() {
|
python3-pycountry_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_version="3.4"
|
depends="python3-lxml"
|
||||||
depends="python3.4-lxml"
|
|
||||||
pycompile_module="pycountry"
|
pycompile_module="pycountry"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-pycountry>=0"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-pycountry_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-pycountry>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-pycountry
Symbolic link
1
srcpkgs/python3-pycountry
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pycountry
|
Loading…
Add table
Reference in a new issue