Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/reportlab/
Date: Sun, 27 Jun 2021 14:20:47
Message-Id: 1624803535.e0497f7fd7a6466a9bd4295b57ec24072d902c13.mgorny@gentoo
1 commit: e0497f7fd7a6466a9bd4295b57ec24072d902c13
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 14:09:41 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 14:18:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0497f7f
7
8 dev-python/reportlab: Bump to 3.5.68
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/reportlab/Manifest | 1 +
13 dev-python/reportlab/reportlab-3.5.68.ebuild | 66 ++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest
17 index aba84b2ac9c..edb07e6b911 100644
18 --- a/dev-python/reportlab/Manifest
19 +++ b/dev-python/reportlab/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pfbfer-20070710.zip 677333 BLAKE2B 100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df SHA512 6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2
22 DIST reportlab-3.5.67.tar.gz 2911726 BLAKE2B 8dbd3bb54c2c651616c3b6be905ac7b43b3a8f30f630d2f9b91882416cb4513751affa507870fdd801b5aa53480498ecc9a5fe3902ab38d72288b6f48ce892e9 SHA512 5a0ec58f0ee925079f3756bac309bd5aaf159118a4ed7ec6467721ead23e5db37839014bb49f1804a0dee4532ce21f9c78adec99ec61a4aeffd957184d489a6c
23 +DIST reportlab-3.5.68.tar.gz 4512985 BLAKE2B b38fea7704fcf08ff25d314286830473b90e75a80bcc65fc7b2cfc4c270347aa7c68f31716e635048428c24bb0ca0afc3d0e22bebedb1d1bc50901c13d278fc4 SHA512 4d41f9d9708d2bd172928985e1e2d22ffcc61d2d6fb21bdf1f3275f9ff576f06e712cd9c9d1707ff364608ad8bed6c30754893a7b142dc3accd6eef8aa19c975
24
25 diff --git a/dev-python/reportlab/reportlab-3.5.68.ebuild b/dev-python/reportlab/reportlab-3.5.68.ebuild
26 new file mode 100644
27 index 00000000000..e525a1a47f9
28 --- /dev/null
29 +++ b/dev-python/reportlab/reportlab-3.5.68.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Tools for generating printable PDF documents from any data source"
40 +HOMEPAGE="
41 + https://www.reportlab.com/
42 + https://pypi.org/project/reportlab/"
43 +SRC_URI="
44 + mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz
45 + https://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +
51 +DEPEND="
52 + media-libs/freetype
53 + media-libs/libart_lgpl
54 + sys-libs/zlib:="
55 +RDEPEND="
56 + ${DEPEND}
57 + dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}]"
58 +BDEPEND="
59 + app-arch/unzip"
60 +
61 +distutils_enable_sphinx docs/source
62 +distutils_enable_tests unittest
63 +
64 +PATCHES=(
65 + # bug 738312, remove -L/usr/lib from link line
66 + "${FILESDIR}"/${PN}-3.5.48-usr-lib-LLD.patch
67 +)
68 +
69 +src_unpack() {
70 + unpack ${P}.tar.gz
71 + cd ${P}/src/reportlab/fonts || die
72 + unpack pfbfer-20070710.zip
73 +}
74 +
75 +python_prepare_all() {
76 + # tests requiring Internet access
77 + sed -i -e 's:test0:_&:' \
78 + tests/test_platypus_general.py \
79 + tests/test_platypus_images.py || die
80 + sed -i -e 's:test9:_&:' tests/test_lib_utils.py || die
81 +
82 + distutils-r1_python_prepare_all
83 +}
84 +
85 +src_configure() {
86 + mydistutilsargs=(
87 + --no-download-t1-files
88 + --use-system-libart
89 + )
90 +}
91 +
92 +python_test() {
93 + pushd tests >/dev/null || die
94 + "${EPYTHON}" runAll.py -v || die "Testing failed with ${EPYTHON}"
95 + popd >/dev/null || die
96 +}