1 |
maksbotan 11/12/24 11:35:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pygobject-2.28.6-r51.ebuild |
5 |
Log: |
6 |
Fix bug 392449 with doc installation |
7 |
|
8 |
(Portage version: 2.1.10.41/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.131 dev-python/pygobject/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.131&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.131&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?r1=1.130&r2=1.131 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v |
20 |
retrieving revision 1.130 |
21 |
retrieving revision 1.131 |
22 |
diff -u -r1.130 -r1.131 |
23 |
--- ChangeLog 20 Dec 2011 21:29:40 -0000 1.130 |
24 |
+++ ChangeLog 24 Dec 2011 11:35:43 -0000 1.131 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-python/pygobject |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.130 2011/12/20 21:29:40 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.131 2011/12/24 11:35:43 maksbotan Exp $ |
30 |
+ |
31 |
+*pygobject-2.28.6-r51 (24 Dec 2011) |
32 |
+ |
33 |
+ 24 Dec 2011; Maxim Koltsov <maksbotan@g.o> |
34 |
+ +pygobject-2.28.6-r51.ebuild: |
35 |
+ Fix bug 392449 with doc installation |
36 |
|
37 |
20 Dec 2011; Jeroen Roovers <jer@g.o> pygobject-2.28.6-r50.ebuild, |
38 |
pygobject-3.0.2.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/pygobject/pygobject-2.28.6-r51.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.28.6-r51.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.28.6-r51.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pygobject-2.28.6-r51.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/pygobject/pygobject-2.28.6-r51.ebuild,v 1.1 2011/12/24 11:35:43 maksbotan Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
GCONF_DEBUG="no" |
55 |
GNOME_TARBALL_SUFFIX="xz" |
56 |
GNOME2_LA_PUNT="yes" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
# pygobject is partially incompatible with Python 3. |
59 |
# PYTHON_DEPEND="2:2.6 3:3.1" |
60 |
# RESTRICT_PYTHON_ABIS="2.4 2.5 3.0 *-jython" |
61 |
PYTHON_DEPEND="2:2.6" |
62 |
RESTRICT_PYTHON_ABIS="2.4 2.5 3.* *-jython" |
63 |
|
64 |
# XXX: Is the alternatives stuff needed anymore? |
65 |
inherit alternatives autotools gnome2 python virtualx |
66 |
|
67 |
DESCRIPTION="GLib's GObject library bindings for Python" |
68 |
HOMEPAGE="http://www.pygtk.org/" |
69 |
|
70 |
LICENSE="LGPL-2.1" |
71 |
SLOT="2" |
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 +introspection libffi test" |
74 |
# FIXME: tests require introspection support, but we can't enable introspection, |
75 |
# or we get file collisions with slot 3 :/ |
76 |
RESTRICT="test" |
77 |
|
78 |
COMMON_DEPEND=">=dev-libs/glib-2.24.0:2 |
79 |
libffi? ( virtual/libffi )" |
80 |
DEPEND="${COMMON_DEPEND} |
81 |
doc? ( |
82 |
dev-libs/libxslt |
83 |
>=app-text/docbook-xsl-stylesheets-1.70.1 ) |
84 |
test? ( |
85 |
media-fonts/font-cursor-misc |
86 |
media-fonts/font-misc-misc ) |
87 |
>=dev-util/pkgconfig-0.12" |
88 |
RDEPEND="${COMMON_DEPEND} |
89 |
!<dev-python/pygtk-2.13" |
90 |
# Use slot 3 for introspection support per upstream recommendation |
91 |
# (see https://bugzilla.gnome.org/show_bug.cgi?id=642048#c9); |
92 |
# keep introspection USE flag in slot 2 for backward compatibility for now. |
93 |
PDEPEND="introspection? ( dev-python/pygobject:3 )" |
94 |
|
95 |
pkg_setup() { |
96 |
DOCS="AUTHORS ChangeLog* NEWS README" |
97 |
# --disable-introspection and --disable-cairo because we use pygobject:3 |
98 |
# for introspection support |
99 |
G2CONF="${G2CONF} |
100 |
--disable-dependency-tracking |
101 |
--disable-introspection |
102 |
--disable-cairo |
103 |
$(use_enable doc docs) |
104 |
$(use_with libffi ffi)" |
105 |
} |
106 |
|
107 |
src_prepare() { |
108 |
# Fix FHS compliance, see upstream bug #535524 |
109 |
epatch "${FILESDIR}/${PN}-2.28.3-fix-codegen-location.patch" |
110 |
|
111 |
# Do not build tests if unneeded, bug #226345 |
112 |
epatch "${FILESDIR}/${PN}-2.28.3-make_check.patch" |
113 |
|
114 |
# Support installation for multiple Python versions, upstream bug #648292 |
115 |
epatch "${FILESDIR}/${PN}-2.28.3-support_multiple_python_versions.patch" |
116 |
|
117 |
# Disable tests that fail |
118 |
epatch "${FILESDIR}/${PN}-2.28.3-disable-failing-tests.patch" |
119 |
|
120 |
# disable pyc compiling |
121 |
ln -sfn $(type -P true) py-compile |
122 |
|
123 |
eautoreconf |
124 |
gnome2_src_prepare |
125 |
|
126 |
python_copy_sources |
127 |
} |
128 |
|
129 |
src_configure() { |
130 |
python_execute_function -s gnome2_src_configure |
131 |
} |
132 |
|
133 |
src_compile() { |
134 |
python_execute_function -d -s |
135 |
} |
136 |
|
137 |
# FIXME: With python multiple ABI support, tests return 1 even when they pass |
138 |
src_test() { |
139 |
unset DBUS_SESSION_BUS_ADDRESS |
140 |
|
141 |
testing() { |
142 |
XDG_CACHE_HOME="${T}/$(PYTHON --ABI)" |
143 |
Xemake check PYTHON=$(PYTHON -a) |
144 |
} |
145 |
python_execute_function -s testing |
146 |
} |
147 |
|
148 |
src_install() { |
149 |
[[ -z ${ED} ]] && local ED="${D}" |
150 |
installation() { |
151 |
gnome2_src_install |
152 |
mv "${ED}$(python_get_sitedir)/pygtk.py" "${ED}$(python_get_sitedir)/pygtk.py-2.0" |
153 |
mv "${ED}$(python_get_sitedir)/pygtk.pth" "${ED}$(python_get_sitedir)/pygtk.pth-2.0" |
154 |
} |
155 |
python_execute_function -s installation |
156 |
|
157 |
python_clean_installation_image |
158 |
|
159 |
sed "s:/usr/bin/python:/usr/bin/python2:" \ |
160 |
-i "${ED}"/usr/bin/pygobject-codegen-2.0 \ |
161 |
|| die "Fix usage of python interpreter" |
162 |
|
163 |
if use examples; then |
164 |
insinto /usr/share/doc/${PF} |
165 |
doins -r examples || die "doins failed" |
166 |
fi |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
create_symlinks() { |
171 |
alternatives_auto_makesym "$(python_get_sitedir)/pygtk.py" pygtk.py-[0-9].[0-9] |
172 |
alternatives_auto_makesym "$(python_get_sitedir)/pygtk.pth" pygtk.pth-[0-9].[0-9] |
173 |
} |
174 |
python_execute_function create_symlinks |
175 |
|
176 |
python_mod_optimize glib gobject gtk-2.0 pygtk.py |
177 |
} |
178 |
|
179 |
pkg_postrm() { |
180 |
python_mod_cleanup glib gobject gtk-2.0 pygtk.py |
181 |
|
182 |
create_symlinks() { |
183 |
alternatives_auto_makesym "$(python_get_sitedir)/pygtk.py" pygtk.py-[0-9].[0-9] |
184 |
alternatives_auto_makesym "$(python_get_sitedir)/pygtk.pth" pygtk.pth-[0-9].[0-9] |
185 |
} |
186 |
python_execute_function create_symlinks |
187 |
} |