Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycairo/
Date: Fri, 09 Feb 2018 07:04:10
Message-Id: 1518159836.049372f6a734ff1d63c46fc76fb599e48e6a46ed.radhermit@gentoo
1 commit: 049372f6a734ff1d63c46fc76fb599e48e6a46ed
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 07:03:03 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 07:03:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=049372f6
7
8 dev-python/pycairo: version bump to 1.16.1
9
10 dev-python/pycairo/Manifest | 1 +
11 dev-python/pycairo/pycairo-1.16.1.ebuild | 65 ++++++++++++++++++++++++++++++++
12 2 files changed, 66 insertions(+)
13
14 diff --git a/dev-python/pycairo/Manifest b/dev-python/pycairo/Manifest
15 index 5c65a10ad54..490509e3891 100644
16 --- a/dev-python/pycairo/Manifest
17 +++ b/dev-python/pycairo/Manifest
18 @@ -1,2 +1,3 @@
19 DIST pycairo-1.15.3.tar.gz 177056 BLAKE2B cba4a212c3537d5718a73742468444b01372902d86f88558cf63ab2ec1999dac036b349d84dff0bdcae5126998c5e921f05bab54b708a29ca2381b8d1371ac44 SHA512 1fc75d193eacb976f2e5a594aa07409a0f80ccb21921065c1794961143785eed48be1966d2d2d3e2d0428f9b4e956994dd851d21f3c3cb91fbc27b007a901ce8
20 DIST pycairo-1.15.4.tar.gz 178436 BLAKE2B 23c5064f537b8d8be12bb64df375c1d5be8962f80adf2437115dde59c18c3755a693b0cb8b3bee248ce8c906f23acfa264f2da6e02770bc59d823beba1bc9e7b SHA512 7e785d23393a8d0c5aca9a4440eb64b0eca9a60c1a18b0dc8452edd6de9422c743d082530387bcbedd34d52377d0892ad395998e9467ba08e22c318684cbee34
21 +DIST pycairo-1.16.1.tar.gz 180516 BLAKE2B 0a144eb6f17bc6621b16e00ddd40784e16e5950667d57927ee238e76d4966e828d8da3d6983e09655d3eb2d3526dcb8a44da6c48e14268cd78e1d463e59b8779 SHA512 757870dd28d037d0af96308e2d1eb5d55ca2025aabda66031dc77790692e420b07802ccdbeefee430825553ed993830bc6f74de83b717e6fa876108f7b54e144
22
23 diff --git a/dev-python/pycairo/pycairo-1.16.1.ebuild b/dev-python/pycairo/pycairo-1.16.1.ebuild
24 new file mode 100644
25 index 00000000000..ec09aca8d65
26 --- /dev/null
27 +++ b/dev-python/pycairo/pycairo-1.16.1.ebuild
28 @@ -0,0 +1,65 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="6"
33 +
34 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
35 +PYTHON_REQ_USE="threads(+)"
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Python bindings for the cairo library"
40 +HOMEPAGE="https://www.cairographics.org/pycairo/ https://github.com/pygobject/pycairo"
41 +SRC_URI="https://github.com/pygobject/${PN}/releases/download/v${PV}/${P}.tar.gz"
42 +
43 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
46 +IUSE="doc examples test xcb"
47 +
48 +# Note: xpyb is used as the C header, not Python modules
49 +RDEPEND="
50 + >=x11-libs/cairo-1.13.1[svg,xcb?]
51 +"
52 +DEPEND="${RDEPEND}
53 + xcb? ( $(python_gen_cond_dep '>=x11-libs/xpyb-1.3' 'python2*') )
54 + doc? ( dev-python/sphinx )
55 + test? (
56 + dev-python/pytest[${PYTHON_USEDEP}]
57 + dev-python/hypothesis[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +python_prepare_all() {
62 + # Fix pkgconfig path
63 + sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
64 + distutils-r1_python_prepare_all
65 +}
66 +
67 +python_compile() {
68 + local enable_xpyb
69 + python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
70 +
71 + esetup.py build ${enable_xpyb}
72 +}
73 +
74 +python_compile_all() {
75 + use doc && emake -C docs
76 +}
77 +
78 +python_test() {
79 + local enable_xpyb
80 + python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
81 +
82 + esetup.py test ${enable_xpyb}
83 +}
84 +
85 +python_install_all() {
86 + use doc && local HTML_DOCS=( docs/_build/. )
87 +
88 + if use examples; then
89 + dodoc -r examples
90 + fi
91 +
92 + distutils-r1_python_install_all
93 +}