python-idna: split python3-idna to a separate package
idna v3 doesn't support python2 anymore, so let's move with the python3 variant and leave the python2 variant on v2
This commit is contained in:
parent
a49bf41689
commit
7dfb0b66da
3 changed files with 21 additions and 12 deletions
|
@ -3,8 +3,8 @@ pkgname=python-idna
|
|||
version=2.10
|
||||
revision=1
|
||||
wrksrc="idna-${version}"
|
||||
build_style=python-module
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
build_style=python2-module
|
||||
hostmakedepends="python-setuptools"
|
||||
depends="python"
|
||||
short_desc="Internationalized Domain Names in Applications (IDNA) for Python2"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
|
@ -17,12 +17,3 @@ checksum=b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6
|
|||
post_install() {
|
||||
vlicense LICENSE.rst
|
||||
}
|
||||
|
||||
python3-idna_package() {
|
||||
depends="python3"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE.rst
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
python-idna
|
19
srcpkgs/python3-idna/template
Normal file
19
srcpkgs/python3-idna/template
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Template file for 'python3-idna'
|
||||
pkgname=python3-idna
|
||||
version=3.2
|
||||
revision=1
|
||||
wrksrc="idna-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3"
|
||||
short_desc="Internationalized Domain Names in Applications (IDNA) for Python3"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/kjd/idna"
|
||||
changelog="https://raw.githubusercontent.com/kjd/idna/master/HISTORY.rst"
|
||||
distfiles="${PYPI_SITE}/i/idna/idna-${version}.tar.gz"
|
||||
checksum=467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE.md
|
||||
}
|
Loading…
Reference in a new issue