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