python-jsonpointer: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
32992d01b1
commit
d2a365ad6a
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-jsonpointer'
|
# Template file for 'python-jsonpointer'
|
||||||
pkgname=python-jsonpointer
|
pkgname=python-jsonpointer
|
||||||
version=1.10
|
version=1.10
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="jsonpointer-${version}"
|
wrksrc="jsonpointer-${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="jsonpointer.py"
|
pycompile_module="jsonpointer.py"
|
||||||
short_desc="Resolve JSON Pointers according to RFC 6901 (Python2)"
|
short_desc="Resolve JSON Pointers according to RFC 6901 (Python2)"
|
||||||
|
@ -15,22 +14,28 @@ homepage="https://github.com/stefankoegl/python-json-pointer"
|
||||||
license="3-clause-BSD"
|
license="3-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz"
|
||||||
checksum=9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1
|
checksum=9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1
|
||||||
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2.7"
|
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-jsonpointer_package() {
|
python3-jsonpointer_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4"
|
depends="python3"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="jsonpointer.py"
|
pycompile_module="jsonpointer.py"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-jsonpointer>=0"
|
||||||
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/jsonpointer3.4
|
vmove usr/bin/jsonpointer3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-jsonpointer_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-jsonpointer>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-jsonpointer
Symbolic link
1
srcpkgs/python3-jsonpointer
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-jsonpointer
|
Loading…
Add table
Add a link
Reference in a new issue