Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pygobject: ChangeLog pygobject-2.26.0.ebuild
Date: Sat, 06 Nov 2010 00:07:20
Message-Id: 20101106000716.DB89420051@flycatcher.gentoo.org
1 eva 10/11/06 00:07:16
2
3 Modified: ChangeLog
4 Added: pygobject-2.26.0.ebuild
5 Log:
6 Version bump. Disable some non-working tests, but still has more enabled than 2.21.5. It is supposed to build against python 3 but failed to link, keep it restricted for now.
7
8 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.103 dev-python/pygobject/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 5 Nov 2010 22:06:04 -0000 1.102
24 +++ ChangeLog 6 Nov 2010 00:07:16 -0000 1.103
25 @@ -1,6 +1,16 @@
26 # ChangeLog for dev-python/pygobject
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.102 2010/11/05 22:06:04 eva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.103 2010/11/06 00:07:16 eva Exp $
30 +
31 +*pygobject-2.26.0 (06 Nov 2010)
32 +
33 + 06 Nov 2010; Gilles Dartiguelongue <eva@g.o>
34 + +pygobject-2.26.0.ebuild,
35 + +files/pygobject-2.26.0-disable-non-working-tests.patch,
36 + +files/pygobject-2.26.0-make_check.patch:
37 + Version bump. Disable some non-working tests, but still has more enabled
38 + than 2.21.5. It is supposed to build against python 3 but failed to link,
39 + keep it restricted for now.
40
41 *pygobject-2.21.5 (05 Nov 2010)
42
43
44
45
46 1.1 dev-python/pygobject/pygobject-2.26.0.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.26.0.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.26.0.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pygobject-2.26.0.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.26.0.ebuild,v 1.1 2010/11/06 00:07:16 eva Exp $
56
57 EAPI="2"
58 GCONF_DEBUG="no"
59 SUPPORT_PYTHON_ABIS="1"
60 PYTHON_DEPEND="2:2.5"
61 RESTRICT_PYTHON_ABIS="2.4 3.*"
62
63 inherit alternatives autotools gnome2 python virtualx
64
65 DESCRIPTION="GLib's GObject library bindings for Python"
66 HOMEPAGE="http://www.pygtk.org/"
67
68 LICENSE="LGPL-2.1"
69 SLOT="2"
70 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"
71 IUSE="doc cairo examples +introspection libffi test"
72
73 RDEPEND=">=dev-libs/glib-2.22.4:2
74 !<dev-python/pygtk-2.13
75 introspection? (
76 >=dev-libs/gobject-introspection-0.9.5
77 cairo? ( >=dev-python/pycairo-1.0.2 ) )
78 libffi? ( virtual/libffi )"
79 DEPEND="${RDEPEND}
80 doc? (
81 dev-libs/libxslt
82 >=app-text/docbook-xsl-stylesheets-1.70.1 )
83 test? (
84 media-fonts/font-cursor-misc
85 media-fonts/font-misc-misc )
86 >=dev-util/pkgconfig-0.12"
87
88 pkg_setup() {
89 DOCS="AUTHORS ChangeLog* NEWS README"
90 G2CONF="${G2CONF}
91 --disable-dependency-tracking
92 $(use_enable doc docs)
93 $(use_enable cairo)
94 $(use_enable introspection)
95 $(use_with libffi ffi)"
96 }
97
98 src_prepare() {
99 gnome2_src_prepare
100
101 # Fix FHS compliance, see upstream bug #535524
102 epatch "${FILESDIR}/${PN}-2.15.4-fix-codegen-location.patch"
103
104 # Do not build tests if unneeded, bug #226345
105 epatch "${FILESDIR}/${PN}-2.26.0-make_check.patch"
106
107 # Support installation for multiple Python versions
108 epatch "${FILESDIR}/${PN}-2.18.0-support_multiple_python_versions.patch"
109
110 # Disable non-working tests
111 epatch "${FILESDIR}/${PN}-2.26.0-disable-non-working-tests.patch"
112
113 # disable pyc compiling
114 mv py-compile py-compile.orig
115 ln -s $(type -P true) py-compile
116
117 eautoreconf
118
119 python_copy_sources
120 }
121
122 src_configure() {
123 python_execute_function -s gnome2_src_configure
124 }
125
126 src_compile() {
127 python_execute_function -d -s
128 }
129
130 src_test() {
131 unset DBUS_SESSION_BUS_ADDRESS
132
133 testing() {
134 if has ${PYTHON_ABI} 2.4 2.5; then
135 einfo "Skipping tests with Python ${PYTHON_ABI}. dev-python/pycairo supports only Python >=2.6."
136 return 0
137 fi
138
139 XDG_CACHE_HOME="${T}/$(PYTHON --ABI)"
140 Xemake check PYTHON=$(PYTHON -a)
141 }
142 python_execute_function -s testing
143 }
144
145 src_install() {
146 [[ -z ${ED} ]] && local ED="${D}"
147 installation() {
148 gnome2_src_install
149 mv "${ED}$(python_get_sitedir)/pygtk.py" "${ED}$(python_get_sitedir)/pygtk.py-2.0"
150 mv "${ED}$(python_get_sitedir)/pygtk.pth" "${ED}$(python_get_sitedir)/pygtk.pth-2.0"
151 }
152 python_execute_function -s installation
153
154 python_clean_installation_image
155
156 if use examples; then
157 insinto /usr/share/doc/${P}
158 doins -r examples || die "doins failed"
159 fi
160 }
161
162 pkg_postinst() {
163 create_symlinks() {
164 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
165 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
166 }
167 python_execute_function create_symlinks
168
169 python_mod_optimize gtk-2.0 pygtk.py
170 }
171
172 pkg_postrm() {
173 python_mod_cleanup gtk-2.0 pygtk.py
174
175 create_symlinks() {
176 alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
177 alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
178 }
179 python_execute_function create_symlinks
180 }