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/weasyprint/
Date: Sat, 08 Jan 2022 16:57:23
Message-Id: 1641661027.5e30f2dc6df1d092a998ab9cc95e045de501a105.arthurzam@gentoo
1 commit: 5e30f2dc6df1d092a998ab9cc95e045de501a105
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 8 16:39:26 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 8 16:57:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e30f2dc
7
8 dev-python/weasyprint: add 54.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/weasyprint/Manifest | 1 +
13 dev-python/weasyprint/weasyprint-54.0.ebuild | 44 ++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-python/weasyprint/Manifest b/dev-python/weasyprint/Manifest
17 index 54ea11ed58b7..b94c8f29ae6c 100644
18 --- a/dev-python/weasyprint/Manifest
19 +++ b/dev-python/weasyprint/Manifest
20 @@ -1,2 +1,3 @@
21 DIST weasyprint-53.3.tar.gz 387448 BLAKE2B bc575a150ce3af4b33dc36b1d4148d5059c8a61c2576b9305735ae192314d7df61bd9c92defaa65159933be489c262e8ac343090a840d1cf49ed5af1e5e669ad SHA512 28efd97c06572de3e82763400efee3d2415da03feafcb38158c35465823d6ee8df9be4e11b813beeb2e851a6affae668ee9eea8859ec5de6c4da9347d9f4216a
22 DIST weasyprint-53.4.tar.gz 388163 BLAKE2B c4a15be4f11f7d6be1bc96da39defb3420f0e96181998f0f20a1da94ea2c942fd1b23f0c4257da122647a88c6950c519b01910476711d4b482a8a9ae0354d95c SHA512 7fcdedbecfa13434217b08491db62b9afd3e716d4ac6378490a04120c407ab1b20883227c32a77c9bd8c8dd7324fb505920264db3c9105d712fa4d7dcf3a1578
23 +DIST weasyprint-54.0.tar.gz 402453 BLAKE2B 57c086a0ddf71e5eecf3860f5efcac327c927689e726694d59122a1ad6e7065c828497eacc04866bd4896a12016a75fc227e5f278f7ee987c8c489db3f7474c4 SHA512 3f6595fa856a5ef97e6c0009de34c3c614b829618fc9a28d5728047bbb6edf4972576a5577ef57d588a645d09a76e87ceb8928cc5536fb3900e6525559bf643b
24
25 diff --git a/dev-python/weasyprint/weasyprint-54.0.ebuild b/dev-python/weasyprint/weasyprint-54.0.ebuild
26 new file mode 100644
27 index 000000000000..93af36f9311c
28 --- /dev/null
29 +++ b/dev-python/weasyprint/weasyprint-54.0.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Visual rendering engine for HTML and CSS that can export to PDF"
42 +HOMEPAGE="https://weasyprint.org https://github.com/Kozea/WeasyPrint"
43 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + >=dev-python/cffi-0.6:=[${PYTHON_USEDEP}]
51 + >=dev-python/cssselect2-0.1[${PYTHON_USEDEP}]
52 + >=dev-python/fonttools-4.0.0[${PYTHON_USEDEP}]
53 + >=dev-python/html5lib-1.0.1[${PYTHON_USEDEP}]
54 + >=dev-python/pillow-4.0.0[jpeg,jpeg2k,${PYTHON_USEDEP}]
55 + >=dev-python/pydyf-0.0.3[${PYTHON_USEDEP}]
56 + >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}]
57 + >=dev-python/tinycss2-1.0.0[${PYTHON_USEDEP}]
58 + x11-libs/pango
59 +"
60 +
61 +BDEPEND="
62 + test? (
63 + app-text/ghostscript-gpl
64 + media-fonts/ahem
65 + media-fonts/dejavu
66 + )
67 +"
68 +
69 +distutils_enable_tests pytest
70 +
71 +src_prepare() {
72 + sed -i -e '/addopts/d' pyproject.toml || die
73 + distutils-r1_src_prepare
74 +}