Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pycairo: pycairo-1.10.0-r1.ebuild ChangeLog
Date: Sun, 08 May 2011 21:28:52
Message-Id: 20110508212841.C56DA20054@flycatcher.gentoo.org
1 arfrever 11/05/08 21:28:41
2
3 Modified: ChangeLog
4 Added: pycairo-1.10.0-r1.ebuild
5 Log:
6 1.10.0 version bump for Python 2.
7
8 (Portage version: 2.2.0_alpha31_p22/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.100 dev-python/pycairo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycairo/ChangeLog?rev=1.100&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycairo/ChangeLog?rev=1.100&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycairo/ChangeLog?r1=1.99&r2=1.100
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v
20 retrieving revision 1.99
21 retrieving revision 1.100
22 diff -u -r1.99 -r1.100
23 --- ChangeLog 24 Apr 2011 20:31:13 -0000 1.99
24 +++ ChangeLog 8 May 2011 21:28:41 -0000 1.100
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/pycairo
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.99 2011/04/24 20:31:13 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.100 2011/05/08 21:28:41 arfrever Exp $
30 +
31 +*pycairo-1.10.0-r1 (08 May 2011)
32 +
33 + 08 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +pycairo-1.10.0-r1.ebuild, +files/py2cairo-1.10.0-svg_check.patch:
35 + 1.10.0 version bump for Python 2.
36
37 *pycairo-1.10.0 (24 Apr 2011)
38
39
40
41
42 1.1 dev-python/pycairo/pycairo-1.10.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycairo/pycairo-1.10.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycairo/pycairo-1.10.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pycairo-1.10.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.10.0-r1.ebuild,v 1.1 2011/05/08 21:28:41 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2:2.6 3:3.1"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="2.4 2.5 3.0 *-jython"
57
58 inherit eutils python waf-utils
59
60 PYCAIRO_PYTHON2_VERSION="${PV}"
61 PYCAIRO_PYTHON3_VERSION="${PV}"
62
63 DESCRIPTION="Python bindings for the cairo library"
64 HOMEPAGE="http://cairographics.org/pycairo/ http://pypi.python.org/pypi/pycairo"
65 SRC_URI="http://cairographics.org/releases/py2cairo-${PYCAIRO_PYTHON2_VERSION}.tar.bz2
66 http://cairographics.org/releases/pycairo-${PYCAIRO_PYTHON3_VERSION}.tar.bz2"
67
68 # LGPL-3 for pycairo 1.10.0.
69 # || ( LGPL-2.1 MPL-1.1 ) for pycairo 1.8.10.
70 LICENSE="LGPL-3 || ( LGPL-2.1 MPL-1.1 )"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
73 IUSE="doc examples +svg test"
74
75 RDEPEND=">=x11-libs/cairo-1.10.0[svg?]"
76 DEPEND="${RDEPEND}
77 dev-util/pkgconfig
78 test? ( dev-python/pytest )"
79
80 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
81
82 src_prepare() {
83 pushd "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" > /dev/null
84 epatch "${FILESDIR}/${PN}-1.10.0-svg_check.patch"
85 popd > /dev/null
86
87 pushd "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" > /dev/null
88 epatch "${FILESDIR}/py2cairo-1.10.0-svg_check.patch"
89 popd > /dev/null
90
91 preparation() {
92 if [[ "${PYTHON_ABI}" == 3.* ]]; then
93 cp -r "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" "${WORKDIR}/${P}-${PYTHON_ABI}"
94 else
95 cp -r "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" "${WORKDIR}/${P}-${PYTHON_ABI}"
96 fi
97 }
98 python_execute_function preparation
99 }
100
101 src_configure() {
102 if ! use svg; then
103 export PYCAIRO_DISABLE_SVG="1"
104 fi
105
106 python_execute_function -s waf-utils_src_configure --nopyc --nopyo
107 }
108
109 src_compile() {
110 python_execute_function -s waf-utils_src_compile
111 }
112
113 src_test() {
114 test_installation() {
115 ./waf install --destdir="${T}/tests/${PYTHON_ABI}"
116 }
117 python_execute_function -q -s test_installation
118
119 python_execute_py.test -P '${T}/tests/${PYTHON_ABI}${EPREFIX}$(python_get_sitedir)' -s
120 }
121
122 src_install() {
123 python_execute_function -s waf-utils_src_install
124
125 dodoc AUTHORS NEWS README || die "dodoc failed"
126
127 if use doc; then
128 pushd doc/_build/html > /dev/null
129 insinto /usr/share/doc/${PF}/html
130 doins -r [a-z]* _static || die "Installation of documentation failed"
131 popd > /dev/null
132 fi
133
134 if use examples; then
135 insinto /usr/share/doc/${PF}/examples
136 doins -r examples/* || die "Installation of examples failed"
137 fi
138 }
139
140 pkg_postinst() {
141 python_mod_optimize cairo
142 }
143
144 pkg_postrm() {
145 python_mod_cleanup cairo
146 }