Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pygtk: metadata.xml ChangeLog pygtk-2.24.0.ebuild
Date: Sat, 02 Apr 2011 17:47:29
Message-Id: 20110402174717.5258E20054@flycatcher.gentoo.org
1 pacho 11/04/02 17:47:17
2
3 Modified: metadata.xml ChangeLog
4 Added: pygtk-2.24.0.ebuild
5 Log:
6 Version bump, glade support is now optional.
7
8 (Portage version: 2.1.9.45/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 dev-python/pygtk/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/metadata.xml?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/metadata.xml?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/metadata.xml?r1=1.4&r2=1.5
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygtk/metadata.xml,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- metadata.xml 19 Nov 2005 11:02:14 -0000 1.4
24 +++ metadata.xml 2 Apr 2011 17:47:17 -0000 1.5
25 @@ -3,6 +3,10 @@
26 <pkgmetadata>
27 <herd>gnome</herd>
28 <herd>python</herd>
29 +<use>
30 + <flag name='glade'>Enable <pkg>gnome-base/libglade</pkg> bindings
31 + compilation</flag>
32 +</use>
33 <longdescription>
34 PyGTK provides a convenient wrapper for the GTK+ library for use in
35 Python programs, taking care of many of the boring details such as
36
37
38
39 1.255 dev-python/pygtk/ChangeLog
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/ChangeLog?rev=1.255&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/ChangeLog?rev=1.255&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/ChangeLog?r1=1.254&r2=1.255
44
45 Index: ChangeLog
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v
48 retrieving revision 1.254
49 retrieving revision 1.255
50 diff -u -r1.254 -r1.255
51 --- ChangeLog 28 Mar 2011 22:16:32 -0000 1.254
52 +++ ChangeLog 2 Apr 2011 17:47:17 -0000 1.255
53 @@ -1,6 +1,12 @@
54 # ChangeLog for dev-python/pygtk
55 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
56 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.254 2011/03/28 22:16:32 eva Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.255 2011/04/02 17:47:17 pacho Exp $
58 +
59 +*pygtk-2.24.0 (02 Apr 2011)
60 +
61 + 02 Apr 2011; Pacho Ramos <pacho@g.o> +pygtk-2.24.0.ebuild,
62 + metadata.xml:
63 + Version bump, glade support is now optional.
64
65 *pygtk-2.23.2 (28 Mar 2011)
66
67
68
69
70 1.1 dev-python/pygtk/pygtk-2.24.0.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/pygtk-2.24.0.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/pygtk-2.24.0.ebuild?rev=1.1&content-type=text/plain
74
75 Index: pygtk-2.24.0.ebuild
76 ===================================================================
77 # Copyright 1999-2011 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.24.0.ebuild,v 1.1 2011/04/02 17:47:17 pacho Exp $
80
81 EAPI="3"
82 GCONF_DEBUG="no"
83 PYTHON_DEPEND="2:2.6"
84 SUPPORT_PYTHON_ABIS="1"
85 # dev-python/pycairo does not support Python 2.4 / 2.5.
86 RESTRICT_PYTHON_ABIS="2.4 2.5 3.* *-jython"
87 PYTHON_EXPORT_PHASE_FUNCTIONS="1"
88
89 inherit alternatives autotools eutils flag-o-matic gnome.org python virtualx
90
91 DESCRIPTION="GTK+2 bindings for Python"
92 HOMEPAGE="http://www.pygtk.org/"
93
94 LICENSE="LGPL-2.1"
95 SLOT="2"
96 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"
97 IUSE="doc examples +glade test"
98
99 RDEPEND=">=dev-libs/glib-2.8:2
100 >=x11-libs/pango-1.16
101 >=dev-libs/atk-1.12
102 >=x11-libs/gtk+-2.24:2
103 >=dev-python/pycairo-1.0.2
104 >=dev-python/pygobject-2.21.3:2
105 dev-python/numpy
106 glade? ( >=gnome-base/libglade-2.5:2.0 )
107 test? ( >=gnome-base/libglade-2.5:2.0 )
108 "
109 DEPEND="${RDEPEND}
110 doc? (
111 dev-libs/libxslt
112 >=app-text/docbook-xsl-stylesheets-1.70.1 )
113 >=dev-util/pkgconfig-0.9"
114
115 src_prepare() {
116 # Fix declaration of codegen in .pc
117 epatch "${FILESDIR}/${PN}-2.13.0-fix-codegen-location.patch"
118
119 # Disable pyc compiling
120 mv "${S}"/py-compile "${S}"/py-compile.orig
121 ln -s $(type -P true) "${S}"/py-compile
122
123 AT_M4DIR="m4" eautoreconf
124
125 python_copy_sources
126 }
127
128 src_configure() {
129 use hppa && append-flags -ffunction-sections
130
131 local myconf
132
133 if use test; then
134 ! use glade && einfo "Enabling glade support as it's needed for running tests."
135 myconf="--with-glade"
136 fi
137
138 python_src_configure \
139 $(use_enable doc docs) \
140 $(use_with glade) \
141 --enable-thread \
142 ${myconf}
143 }
144
145 src_test() {
146 unset DBUS_SESSION_BUS_ADDRESS
147
148 testing() {
149 cd tests
150 export XDG_CONFIG_HOME="${T}/$(PYTHON --ABI)"
151 Xemake check-local
152 }
153 python_execute_function -s testing
154 }
155
156 src_install() {
157 python_src_install
158 python_clean_installation_image
159 dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO || die
160
161 if use examples; then
162 rm examples/Makefile*
163 insinto /usr/share/doc/${PF}
164 doins -r examples || die
165 fi
166 }
167
168 pkg_postinst() {
169 python_mod_optimize gtk-2.0
170
171 create_symlinks() {
172 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
173 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
174 }
175 python_execute_function create_symlinks
176 }
177
178 pkg_postrm() {
179 python_mod_cleanup gtk-2.0
180
181 create_symlinks() {
182 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
183 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
184 }
185 python_execute_function create_symlinks
186 }