diff --git a/srcpkgs/python-reportlab/template b/srcpkgs/python-reportlab/template index 89095da6d08..6f7774c0c82 100644 --- a/srcpkgs/python-reportlab/template +++ b/srcpkgs/python-reportlab/template @@ -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}" +} diff --git a/srcpkgs/python3-reportlab b/srcpkgs/python3-reportlab new file mode 120000 index 00000000000..3bc20b391af --- /dev/null +++ b/srcpkgs/python3-reportlab @@ -0,0 +1 @@ +python-reportlab \ No newline at end of file