python-reportlab: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
75c35334d2
commit
b271f5fd58
2 changed files with 14 additions and 10 deletions
|
@ -1,12 +1,11 @@
|
|||
# Template file for 'python-reportlab'
|
||||
pkgname=python-reportlab
|
||||
version=3.3.0
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="reportlab-$version"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
makedepends="python-devel python3.4-devel freetype-devel libart-devel"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
makedepends="python-devel python3-devel freetype-devel libart-devel"
|
||||
depends="python-Pillow"
|
||||
pycompile_module="reportlab"
|
||||
short_desc="Python2 library for generating PDFs and graphics"
|
||||
|
@ -18,19 +17,23 @@ checksum=f48900b9321bcb2871a46543993bd995148d769a11a9e24495f25b4ec0bbe267
|
|||
|
||||
pre_build() {
|
||||
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() {
|
||||
vlicense LICENSE.txt LICENSE
|
||||
}
|
||||
|
||||
python3.4-reportlab_package() {
|
||||
depends="python3.4-Pillow"
|
||||
pycompile_version="3.4"
|
||||
python3-reportlab_package() {
|
||||
depends="python3-Pillow"
|
||||
pycompile_module="reportlab"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
replaces="python3.4-reportlab>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/lib/python3*
|
||||
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
1
srcpkgs/python3-reportlab
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-reportlab
|
Loading…
Reference in a new issue