python-netaddr: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
28e73c0169
commit
78eb68ab7c
2 changed files with 18 additions and 11 deletions
|
@ -1,13 +1,13 @@
|
|||
# Template file for 'python-netaddr'
|
||||
pkgname=python-netaddr
|
||||
version=0.7.18
|
||||
revision=3
|
||||
revision=4
|
||||
noarch=yes
|
||||
wrksrc="netaddr-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
pycompile_module="netaddr"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
makedepends="python-devel python3-devel"
|
||||
depends="python"
|
||||
short_desc="A network address manipulation library for Python2"
|
||||
maintainer="Felix Hanley <felix@userspace.com.au>"
|
||||
|
@ -15,22 +15,28 @@ homepage="https://github.com/drkjam/netaddr/"
|
|||
license="3-clause-BSD"
|
||||
distfiles="${PYPI_SITE}/n/netaddr/netaddr-${version}.tar.gz"
|
||||
checksum=a1f5c9fcf75ac2579b9995c843dade33009543c04f218ff7c007b3c81695bd19
|
||||
alternatives="netaddr:netaddr:/usr/bin/netaddr2.7"
|
||||
alternatives="netaddr:netaddr:/usr/bin/netaddr2"
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3.4-netaddr_package() {
|
||||
python3-netaddr_package() {
|
||||
noarch=yes
|
||||
depends="python3.4"
|
||||
pycompile_version="3.4"
|
||||
depends="python3"
|
||||
pycompile_module="netaddr"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="netaddr:netaddr:/usr/bin/netaddr3.4"
|
||||
replaces="python3.4-netaddr>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="netaddr:netaddr:/usr/bin/netaddr3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/netaddr3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin/netaddr3
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
python3.4-netaddr_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-netaddr>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-netaddr
Symbolic link
1
srcpkgs/python3-netaddr
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-netaddr
|
Loading…
Reference in a new issue