1 |
commit: c27fb314ef00847a3e7e3d8213cf78e682c5fb1d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 5 07:21:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 5 08:27:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c27fb314 |
7 |
|
8 |
dev-python/cairocffi: Bump to 1.3.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cairocffi/Manifest | 1 + |
13 |
dev-python/cairocffi/cairocffi-1.3.0.ebuild | 40 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 41 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cairocffi/Manifest b/dev-python/cairocffi/Manifest |
17 |
index 507cb439c5a..107da076235 100644 |
18 |
--- a/dev-python/cairocffi/Manifest |
19 |
+++ b/dev-python/cairocffi/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cairocffi-1.2.0.tar.gz 70393 BLAKE2B b5cc69ec2805524e8f66a6234c4e19502181fad18c754379d91b05c2d2a88c82742f2b2057afcaac93f4d23ee64b41b2e84f029b6cb4ce2e7b3fa81ae0e8a485 SHA512 0f5b58ae85b2cc880bfb8ede6cbfe4905737211dab5b080815eb59f7cdd9c580367b9e00e7216d68ea9cbb84bda3f21ddcbccb2e744b86d6da8b991cffb96caf |
22 |
+DIST cairocffi-1.3.0.tar.gz 88784 BLAKE2B 022634825febd3d70a0115f0632e9b146719a2ab802583e0f57ebbd36c65c9e73f4547dbc5ea3651b8b38a043d519f000e908c34b77f3bf49e2ed5ded1a0ca02 SHA512 be459a5f4c1986cf339b7b15fdb7d3ac52476c8c31ff663b4708917ce8abd6fc66860d1966744b69aebf7aebca4415b32166df79505ad42f315ffd76d7163d7e |
23 |
|
24 |
diff --git a/dev-python/cairocffi/cairocffi-1.3.0.ebuild b/dev-python/cairocffi/cairocffi-1.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7465ac24632 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cairocffi/cairocffi-1.3.0.ebuild |
29 |
@@ -0,0 +1,40 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 virtualx |
37 |
+ |
38 |
+DESCRIPTION="CFFI-based drop-in replacement for Pycairo" |
39 |
+HOMEPAGE="https://github.com/Kozea/cairocffi" |
40 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ $(python_gen_cond_dep ' |
48 |
+ >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}] |
49 |
+ ' 'python*') |
50 |
+ >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}] |
51 |
+ x11-libs/cairo:0=[X,xcb(+)] |
52 |
+ x11-libs/gdk-pixbuf[jpeg]" |
53 |
+BDEPEND=" |
54 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}"/${PN}-0.8.0-tests.patch |
60 |
+) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed -i -e '/pytest-/d' -e '/addopts/d' setup.cfg || die |
64 |
+ distutils-r1_src_prepare |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ virtx pytest -vv --pyargs cairocffi |
69 |
+} |