python-chardet: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
0994d42931
commit
f11d42a0f0
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-chardet'
|
# Template file for 'python-chardet'
|
||||||
pkgname=python-chardet
|
pkgname=python-chardet
|
||||||
version=2.3.0
|
version=2.3.0
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="chardet-${version}"
|
wrksrc="chardet-${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-setuptools"
|
depends="python-setuptools"
|
||||||
pycompile_module="chardet"
|
pycompile_module="chardet"
|
||||||
short_desc="Universal encoding detector for Python 2 and 3 (Python2)"
|
short_desc="Universal encoding detector for Python 2 and 3 (Python2)"
|
||||||
|
@ -15,17 +14,23 @@ homepage="https://github.com/chardet/chardet"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz"
|
||||||
checksum=e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa
|
checksum=e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa
|
||||||
alternatives="chardet:chardetect:/usr/bin/chardetect2.7"
|
alternatives="chardet:chardetect:/usr/bin/chardetect2"
|
||||||
|
|
||||||
python3.4-chardet_package() {
|
python3-chardet_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-setuptools"
|
depends="python3-setuptools"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="chardet"
|
pycompile_module="chardet"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-chardet>=0"
|
||||||
alternatives="chardet:chardetect:/usr/bin/chardetect3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="chardet:chardetect:/usr/bin/chardetect3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/chardetect3.4
|
vmove usr/bin/chardetect3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-chardet_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-chardet>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-chardet
Symbolic link
1
srcpkgs/python3-chardet
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-chardet
|
Loading…
Add table
Add a link
Reference in a new issue