1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} ) # Tests crash with pypy
8 inherit distutils-r1 flag-o-matic
10 DESCRIPTION="Tools for generating printable PDF documents from any data source"
11 HOMEPAGE="http://www.reportlab.com/"
12 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz
13 http://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip"
17 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
21 dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}]
22 media-libs/libart_lgpl
26 dev-python/setuptools[${PYTHON_USEDEP}]
31 "${FILESDIR}/${PN}-3.5.13-disable-network-tests.patch"
32 "${FILESDIR}/${PN}-3.5.13-pillow-VERSION.patch"
37 cd ${P}/src/reportlab/fonts || die
38 unpack pfbfer-20070710.zip
41 python_compile_all() {
42 use doc && emake -C docs html
46 if ! python_is_python3; then
47 local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
49 distutils-r1_python_compile
53 pushd tests > /dev/null || die
54 "${PYTHON}" runAll.py || die "Testing failed with ${EPYTHON}"
55 popd > /dev/null || die
58 python_install_all() {
59 use doc && local HTML_DOCS=( docs/build/html/. )
60 if use examples ; then
62 dosod -r demos/. tools/pythonpoint/demos
65 distutils-r1_python_install_all