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