python-reportlab: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 09:47:16 +02:00
parent 75c35334d2
commit b271f5fd58
2 changed files with 14 additions and 10 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-reportlab' # Template file for 'python-reportlab'
pkgname=python-reportlab pkgname=python-reportlab
version=3.3.0 version=3.3.0
revision=1 revision=2
wrksrc="reportlab-$version" wrksrc="reportlab-$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" makedepends="python-devel python3-devel freetype-devel libart-devel"
makedepends="python-devel python3.4-devel freetype-devel libart-devel"
depends="python-Pillow" depends="python-Pillow"
pycompile_module="reportlab" pycompile_module="reportlab"
short_desc="Python2 library for generating PDFs and graphics" short_desc="Python2 library for generating PDFs and graphics"
@ -18,19 +17,23 @@ checksum=f48900b9321bcb2871a46543993bd995148d769a11a9e24495f25b4ec0bbe267
pre_build() { pre_build() {
sed -i "s|'pip>=1.4.1', 'setuptools>=2.2'||" setup.py sed -i "s|'pip>=1.4.1', 'setuptools>=2.2'||" setup.py
find src/reportlab -type f -name '*.py' -exec sed -i '/^#!/d' {} +
} }
post_install() { post_install() {
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }
python3.4-reportlab_package() { python3-reportlab_package() {
depends="python3.4-Pillow" depends="python3-Pillow"
pycompile_version="3.4"
pycompile_module="reportlab" pycompile_module="reportlab"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-reportlab>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }
} }
python3.4-reportlab_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-reportlab=${version}_${revision}"
}

1
srcpkgs/python3-reportlab Symbolic link
View File

@ -0,0 +1 @@
python-reportlab