Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/reportlab/
Date: Mon, 06 Jun 2022 18:44:42
Message-Id: 1654541067.0ff664285c26af139342122153f614a6c4f6e4aa.arthurzam@gentoo
1 commit: 0ff664285c26af139342122153f614a6c4f6e4aa
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 6 18:26:36 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 18:44:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff66428
7
8 dev-python/reportlab: add 3.6.10
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/reportlab/Manifest | 1 +
13 dev-python/reportlab/reportlab-3.6.10.ebuild | 62 ++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest
17 index 735871baad7b..4110f67cf890 100644
18 --- a/dev-python/reportlab/Manifest
19 +++ b/dev-python/reportlab/Manifest
20 @@ -1,4 +1,5 @@
21 DIST pfbfer-20070710.zip 677333 BLAKE2B 100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df SHA512 6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2
22 +DIST reportlab-3.6.10.tar.gz 4518482 BLAKE2B be43079f4695bf20804864e5e0a4957093e657516dd6da45ca6b51a5da4522bed80ee0050fdd213c1fa6556c6c3e3c0173829fdc336c0d63b92ef3560c351675 SHA512 b079db8a51c917de1ab6f27d4ba733568e425fb73041331a9da842cdc00f583fb4196e5fa2a5cbdd3fb7f3681bba850950d5b391a38cbbf25ae904b88d0c278c
23 DIST reportlab-3.6.6.tar.gz 4509457 BLAKE2B d2cb5c764aa86000dd97798b5aea25fdc07e4230015dda6c11099e379884ca74532327dfe723069d5e56569dd7e120d94918f64a5f705bfef212b484f812aa7b SHA512 6f05e5f7c6b6c0b6f8d65fe11e2900ecd427f6c293672b12a4cc094476da1cdebc0df59198660614251d388241d7c886c345f958d337d351ea048b3b25a71ba5
24 DIST reportlab-3.6.7.tar.gz 4504447 BLAKE2B 3e691294d20f94850840ddc70565d2235bdcb37d47b5e869e34e5fea93dc9ba017d09f088e18b6479266354076b89461849dd1eb7d1d4e8b12a9c4a95706bf66 SHA512 51f98900ccf7ef34fefc237bf1c787931a525cd82284685bda26f411760b97d1b85fce5bffa59b133705f6c1769a8d3616ef85ea368ed59dfc72f24d5faf6e88
25 DIST reportlab-3.6.8.tar.gz 4503191 BLAKE2B 3d61ac2554309a8dfff2107ba6157152b558355fc6ebd7d2337b0f3152ceb9644ae2dc20b6e0f2ed312a579fc5f172e05eeda69e3b6acbbf921b62f27ce50f77 SHA512 7eb2381a8020f751f03008bb8dc1eb07f954a97c0c3d38646602a22ed7f69dd73e11bbd1251a471da141c98492be7f3867cf120e489c58911ae6e9f29c926507
26
27 diff --git a/dev-python/reportlab/reportlab-3.6.10.ebuild b/dev-python/reportlab/reportlab-3.6.10.ebuild
28 new file mode 100644
29 index 000000000000..9f0f5242e1ee
30 --- /dev/null
31 +++ b/dev-python/reportlab/reportlab-3.6.10.ebuild
32 @@ -0,0 +1,62 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=setuptools
39 +PYTHON_COMPAT=( python3_{8..11} )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Tools for generating printable PDF documents from any data source"
44 +HOMEPAGE="
45 + https://www.reportlab.com/
46 + https://pypi.org/project/reportlab/
47 +"
48 +SRC_URI="
49 + mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz
50 + https://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip
51 +"
52 +
53 +LICENSE="BSD"
54 +SLOT="0"
55 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
56 +
57 +DEPEND="
58 + media-libs/freetype
59 + media-libs/libart_lgpl
60 + sys-libs/zlib:=
61 +"
62 +RDEPEND="
63 + ${DEPEND}
64 + dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}]
65 +"
66 +BDEPEND="
67 + app-arch/unzip
68 +"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/reportlab-3.6.9-paths.patch
72 +)
73 +
74 +distutils_enable_sphinx docs/source
75 +
76 +src_unpack() {
77 + unpack ${P}.tar.gz
78 + cd ${P}/src/reportlab/fonts || die
79 + unpack pfbfer-20070710.zip
80 +}
81 +
82 +src_configure() {
83 + cat > local-setup.cfg <<-EOF || die
84 + [OPTIONS]
85 + no-download-t1-files = 1
86 + use-system-libart = 1
87 + EOF
88 +}
89 +
90 +python_test() {
91 + pushd tests >/dev/null || die
92 + "${EPYTHON}" runAll.py -v || die "Testing failed with ${EPYTHON}"
93 + popd >/dev/null || die
94 +}