Gentoo Archives: gentoo-commits

From: "Arun Raghavan (ford_prefect)" <ford_prefect@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pygtk: ChangeLog pygtk-2.16.0-r1.ebuild
Date: Wed, 09 Sep 2009 18:31:10
Message-Id: E1MlRwi-0001VF-Bl@stork.gentoo.org
1 ford_prefect 09/09/09 18:31:08
2
3 Modified: ChangeLog
4 Added: pygtk-2.16.0-r1.ebuild
5 Log:
6 Fix crash in gdk.color_from_hsv. (Bug #283093)
7 (Portage version: 2.2_rc40/cvs/Linux i686)
8
9 Revision Changes Path
10 1.223 dev-python/pygtk/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtk/ChangeLog?rev=1.223&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtk/ChangeLog?rev=1.223&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtk/ChangeLog?r1=1.222&r2=1.223
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v
19 retrieving revision 1.222
20 retrieving revision 1.223
21 diff -u -r1.222 -r1.223
22 --- ChangeLog 6 Sep 2009 20:57:05 -0000 1.222
23 +++ ChangeLog 9 Sep 2009 18:31:08 -0000 1.223
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/pygtk
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.222 2009/09/06 20:57:05 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.223 2009/09/09 18:31:08 ford_prefect Exp $
29 +
30 +*pygtk-2.16.0-r1 (09 Sep 2009)
31 +
32 + 09 Sep 2009; Arun Raghavan <ford_prefect@g.o>
33 + +pygtk-2.16.0-r1.ebuild, +files/pygtk-2.16.0-gdkcolor-fix.patch:
34 + Fix crash in gdk.color_from_hsv. (Bug #283093)
35
36 06 Sep 2009; Brent Baude <ranger@g.o> pygtk-2.14.1-r1.ebuild:
37 Marking pygtk-2.14.1-r1 ppc64 for bug 279391
38
39
40
41 1.1 dev-python/pygtk/pygtk-2.16.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtk/pygtk-2.16.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pygtk/pygtk-2.16.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pygtk-2.16.0-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.16.0-r1.ebuild,v 1.1 2009/09/09 18:31:08 ford_prefect Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit alternatives autotools eutils flag-o-matic gnome.org python virtualx
56
57 DESCRIPTION="GTK+2 bindings for Python"
58 HOMEPAGE="http://www.pygtk.org/"
59
60 LICENSE="LGPL-2.1"
61 SLOT="2"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
63 IUSE="doc examples"
64
65 RDEPEND=">=dev-libs/glib-2.8.0
66 >=x11-libs/pango-1.16.0
67 >=dev-libs/atk-1.12.0
68 >=x11-libs/gtk+-2.13.6
69 >=gnome-base/libglade-2.5.0
70 >=dev-lang/python-2.4.4-r5
71 >=dev-python/pycairo-1.0.2
72 >=dev-python/pygobject-2.15.3
73 dev-python/numpy"
74
75 DEPEND="${RDEPEND}
76 doc? (
77 dev-libs/libxslt
78 >=app-text/docbook-xsl-stylesheets-1.70.1 )
79 >=dev-util/pkgconfig-0.9"
80
81 RESTRICT_PYTHON_ABIS="3*"
82
83 src_prepare() {
84 # Fix declaration of codegen in .pc
85 epatch "${FILESDIR}/${PN}-2.13.0-fix-codegen-location.patch"
86
87 # Fix a crash in gdk.color_from_hsv
88 epatch "${FILESDIR}/${P}-gdkcolor-fix.patch"
89
90 # Disable pyc compiling
91 mv "${S}"/py-compile "${S}"/py-compile.orig
92 ln -s $(type -P true) "${S}"/py-compile
93
94 AT_M4DIR="m4" eautoreconf
95
96 python_copy_sources
97 }
98
99 src_configure() {
100 configuration() {
101 use hppa && append-flags -ffunction-sections
102 econf $(use_enable doc docs) --enable-thread
103 }
104 python_execute_function -s configuration
105 }
106
107 src_compile() {
108 python_execute_function -d -s
109 }
110
111 src_install() {
112 python_execute_function -d -s
113 dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO
114
115 if use examples; then
116 rm examples/Makefile*
117 insinto /usr/share/doc/${PF}
118 doins -r examples
119 fi
120 }
121
122 src_test() {
123 unset DBUS_SESSION_BUS_ADDRESS
124
125 testing() {
126 if has ${PYTHON_ABI} 2.4 2.5; then
127 einfo "Skipping tests with Python ${PYTHON_ABI}. dev-python/pycairo supports only Python >=2.6."
128 return 0
129 fi
130
131 cd tests
132 Xemake check-local
133 }
134 python_execute_function -s testing
135 }
136
137 pkg_postinst() {
138 python_need_rebuild
139 python_mod_optimize gtk-2.0
140
141 create_symlinks() {
142 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
143 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
144 }
145 python_execute_function create_symlinks
146 }
147
148 pkg_postrm() {
149 python_mod_cleanup gtk-2.0
150
151 create_symlinks() {
152 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
153 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
154 }
155 python_execute_function create_symlinks
156 }