commit:     9c63b7877161a4a63408a8f4dd2a947772f2f4ce
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 13:45:27 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 13:48:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c63b787

dev-python/reportlab: Bump to 3.6.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/reportlab/Manifest                |  1 +
 dev-python/reportlab/reportlab-3.6.13.ebuild | 62 ++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest
index 2b7b4e626192..40c4b5bc14ff 100644
--- a/dev-python/reportlab/Manifest
+++ b/dev-python/reportlab/Manifest
@@ -1,2 +1,3 @@
 DIST pfbfer-20070710.zip 677333 BLAKE2B 
100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df
 SHA512 
6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2
 DIST reportlab-3.6.12.tar.gz 4519536 BLAKE2B 
106e0ede2b3c039152ae5a39e0aa5b3bf0239789ba08630f751260b75305973bff13730e3f7419340514a4f0174223dddf522cd9408b8dd04fbe39b84979b152
 SHA512 
99e6ab1cf27cc9e661b3bfd8c71290d94189db6de5e71b2429cccd48bfee5659d5fb46dfc5709e6616877b48bc17241c74282e0d2ecddda2ead16df4c1b6818f
+DIST reportlab-3.6.13.tar.gz 4035524 BLAKE2B 
638b670b76b4cfb88c0a66db484f5b4d042fd935798316d02303932503e353a6035419d7ef1c4dccd8ef94b3cc2e13a576fd3cb5461fca17122a800f1140945a
 SHA512 
059c3acf2c995ebdd3ffe005bd98640bc9c063c2fb9b3115351b9c1a4f7cfdabf4ffe61123342de2e84773005d46cf6d44410042206222df0700259e31ec7aae

diff --git a/dev-python/reportlab/reportlab-3.6.13.ebuild 
b/dev-python/reportlab/reportlab-3.6.13.ebuild
new file mode 100644
index 000000000000..e8cda2dbb945
--- /dev/null
+++ b/dev-python/reportlab/reportlab-3.6.13.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Tools for generating printable PDF documents from any data source"
+HOMEPAGE="
+       https://www.reportlab.com/
+       https://pypi.org/project/reportlab/
+"
+SRC_URI+="
+       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}"/${PN}-3.6.9-paths.patch
+       "${FILESDIR}"/${PN}-3.6.11-correct-srclen-type-in-gstate__aapixbuf.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
+}

Reply via email to