diff options
author | 2022-06-06 21:26:36 +0300 | |
---|---|---|
committer | 2022-06-06 21:44:27 +0300 | |
commit | 0ff664285c26af139342122153f614a6c4f6e4aa (patch) | |
tree | af91f41f9aacf441486ea4e6bc14611193d3c513 /dev-python/reportlab/reportlab-3.6.10.ebuild | |
parent | dev-python/pymdown-extensions: add 9.5 (diff) | |
download | gentoo-0ff664285c26af139342122153f614a6c4f6e4aa.tar.gz gentoo-0ff664285c26af139342122153f614a6c4f6e4aa.tar.bz2 gentoo-0ff664285c26af139342122153f614a6c4f6e4aa.zip |
dev-python/reportlab: add 3.6.10
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/reportlab/reportlab-3.6.10.ebuild')
-rw-r--r-- | dev-python/reportlab/reportlab-3.6.10.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/reportlab/reportlab-3.6.10.ebuild b/dev-python/reportlab/reportlab-3.6.10.ebuild new file mode 100644 index 000000000000..9f0f5242e1ee --- /dev/null +++ b/dev-python/reportlab/reportlab-3.6.10.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Tools for generating printable PDF documents from any data source" +HOMEPAGE=" + https://www.reportlab.com/ + https://pypi.org/project/reportlab/ +" +SRC_URI=" + mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz + https://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +DEPEND=" + media-libs/freetype + media-libs/libart_lgpl + sys-libs/zlib:= +" +RDEPEND=" + ${DEPEND} + dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}] +" +BDEPEND=" + app-arch/unzip +" + +PATCHES=( + "${FILESDIR}"/reportlab-3.6.9-paths.patch +) + +distutils_enable_sphinx docs/source + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +src_configure() { + cat > local-setup.cfg <<-EOF || die + [OPTIONS] + no-download-t1-files = 1 + use-system-libart = 1 + EOF +} + +python_test() { + pushd tests >/dev/null || die + "${EPYTHON}" runAll.py -v || die "Testing failed with ${EPYTHON}" + popd >/dev/null || die +} |