python-html2text: rebuild for Python 3.5
Switch to python3-* pkgs. Use alternatives. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
81c02def64
commit
b5b60e98d7
2 changed files with 17 additions and 13 deletions
|
@ -1,13 +1,12 @@
|
|||
# Template file for 'python-html2text'
|
||||
pkgname=python-html2text
|
||||
version=2016.9.19
|
||||
revision=2
|
||||
revision=3
|
||||
noarch=yes
|
||||
wrksrc="${pkgname#*-}-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
pycompile_module="html2text"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
short_desc="HTML to Markdown-formatted text converter (Python2)"
|
||||
depends="python"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
|
@ -15,19 +14,23 @@ license="GPL-3"
|
|||
homepage="https://github.com/Alir3z4/html2text/"
|
||||
distfiles="${PYPI_SITE}/h/html2text/html2text-${version}.tar.gz"
|
||||
checksum=554ef5fd6c6cf6e3e4f725a62a3e9ec86a0e4d33cd0928136d1c79dbeb7b2d55
|
||||
alternatives="html2text:html2text:/usr/bin/html2text2"
|
||||
|
||||
post_install() {
|
||||
ln -s html2text2.7 ${DESTDIR}/usr/bin/html2text
|
||||
}
|
||||
|
||||
python3.4-html2text_package() {
|
||||
python3-html2text_package() {
|
||||
noarch=yes
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="html2text"
|
||||
depends="python3"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pycompile_module="html2text"
|
||||
replaces="python3.4-html2text>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="html2text:html2text:/usr/bin/html2text3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/html2text3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin/html2text3
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
||||
python3.4-html2text_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-html2text>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-html2text
Symbolic link
1
srcpkgs/python3-html2text
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-html2text
|
Loading…
Reference in a new issue