Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pygobject: pygobject-2.28.6-r54.ebuild ChangeLog
Date: Wed, 02 Oct 2013 17:15:52
Message-Id: 20131002171546.AE4222004E@flycatcher.gentoo.org
1 tetromino 13/10/02 17:15:46
2
3 Modified: ChangeLog
4 Added: pygobject-2.28.6-r54.ebuild
5 Log:
6 Fix class interface setup to be compatible with glib-2.36. Remove old alternatives symlink removal hack since it fails badly with binpkgs (bug #459180, thanks to Fabio Erculiani).
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
9
10 Revision Changes Path
11 1.223 dev-python/pygobject/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.223&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?rev=1.223&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/ChangeLog?r1=1.222&r2=1.223
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v
20 retrieving revision 1.222
21 retrieving revision 1.223
22 diff -u -r1.222 -r1.223
23 --- ChangeLog 17 Sep 2013 19:42:55 -0000 1.222
24 +++ ChangeLog 2 Oct 2013 17:15:46 -0000 1.223
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-python/pygobject
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.222 2013/09/17 19:42:55 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/ChangeLog,v 1.223 2013/10/02 17:15:46 tetromino Exp $
30 +
31 +*pygobject-2.28.6-r54 (02 Oct 2013)
32 +
33 + 02 Oct 2013; Alexandre Rostovtsev <tetromino@g.o>
34 + +pygobject-2.28.6-r54.ebuild,
35 + +files/pygobject-2.28.6-glib-2.36-class_init.patch:
36 + Fix class interface setup to be compatible with glib-2.36. Remove old
37 + alternatives symlink removal hack since it fails badly with binpkgs (bug
38 + #459180, thanks to Fabio Erculiani).
39
40 17 Sep 2013; Michał Górny <mgorny@g.o> pygobject-2.28.6-r53.ebuild:
41 Force python-exec:0 since the ebuild does hackery on top of script wrapping.
42
43
44
45 1.1 dev-python/pygobject/pygobject-2.28.6-r54.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.28.6-r54.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/pygobject-2.28.6-r54.ebuild?rev=1.1&content-type=text/plain
49
50 Index: pygobject-2.28.6-r54.ebuild
51 ===================================================================
52 # Copyright 1999-2013 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.28.6-r54.ebuild,v 1.1 2013/10/02 17:15:46 tetromino Exp $
55
56 EAPI="5"
57 GCONF_DEBUG="no"
58 GNOME2_LA_PUNT="yes"
59 PYTHON_COMPAT=( python{2_6,2_7} )
60
61 inherit autotools eutils gnome2 python-r1 virtualx
62
63 DESCRIPTION="GLib's GObject library bindings for Python"
64 HOMEPAGE="http://www.pygtk.org/"
65
66 LICENSE="LGPL-2.1+"
67 SLOT="2"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
69 IUSE="examples libffi test"
70 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
71
72 COMMON_DEPEND=">=dev-libs/glib-2.24.0:2
73 libffi? ( virtual/libffi:= )
74 ${PYTHON_DEPS}
75 "
76 DEPEND="${COMMON_DEPEND}
77 dev-python/python-exec:0
78 dev-util/gtk-doc-am
79 virtual/pkgconfig
80 test? (
81 media-fonts/font-cursor-misc
82 media-fonts/font-misc-misc )
83 "
84 RDEPEND="${COMMON_DEPEND}
85 !<dev-python/pygtk-2.23"
86
87 # disable python-exec:2 support, bug #484406
88 _PYTHON_WANT_PYTHON_EXEC2=0
89
90 src_prepare() {
91 # Fix FHS compliance, see upstream bug #535524
92 epatch "${FILESDIR}/${PN}-2.28.3-fix-codegen-location.patch"
93
94 # Do not build tests if unneeded, bug #226345
95 epatch "${FILESDIR}/${PN}-2.28.3-make_check.patch"
96
97 # Support installation for multiple Python versions, upstream bug #648292
98 epatch "${FILESDIR}/${PN}-2.28.3-support_multiple_python_versions.patch"
99
100 # Disable tests that fail
101 epatch "${FILESDIR}/${P}-disable-failing-tests.patch"
102
103 # Disable introspection tests when we build with --disable-introspection
104 epatch "${FILESDIR}/${P}-tests-no-introspection.patch"
105
106 # Fix warning spam
107 epatch "${FILESDIR}/${P}-set_qdata.patch"
108 epatch "${FILESDIR}/${P}-gio-types-2.32.patch"
109
110 # Fix glib-2.36 compatibility, bug #486602
111 epatch "${FILESDIR}/${P}-glib-2.36-class_init.patch"
112
113 sed -i \
114 -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
115 -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
116 configure.ac || die
117
118 eautoreconf
119 gnome2_src_prepare
120
121 python_copy_sources
122
123 prepare_shebangs() {
124 # Make a backup with unconverted shebangs to keep python_doscript happy
125 cp codegen/codegen.py pygobject-codegen-2.0
126 sed -e "s%#! \?/usr/bin/env python%#!${PYTHON}%" \
127 -i codegen/*.py || die "shebang convertion failed"
128 }
129 python_foreach_impl run_in_build_dir prepare_shebangs
130 }
131
132 src_configure() {
133 DOCS="AUTHORS ChangeLog* NEWS README"
134 # --disable-introspection and --disable-cairo because we use pygobject:3
135 # for introspection support
136 G2CONF="${G2CONF}
137 --disable-introspection
138 --disable-cairo
139 $(use_with libffi ffi)"
140
141 python_foreach_impl run_in_build_dir gnome2_src_configure
142 }
143
144 src_compile() {
145 python_foreach_impl run_in_build_dir gnome2_src_compile
146 }
147
148 # FIXME: With python multiple ABI support, tests return 1 even when they pass
149 src_test() {
150 unset DBUS_SESSION_BUS_ADDRESS
151 export GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
152
153 testing() {
154 export XDG_CACHE_HOME="${T}/${EPYTHON}"
155 run_in_build_dir Xemake -j1 check
156 unset XDG_CACHE_HOME
157 }
158 python_foreach_impl testing
159 unset GIO_USE_VFS
160 }
161
162 src_install() {
163 installing() {
164 local f prefixed_sitedir
165
166 gnome2_src_install
167
168 python_doscript pygobject-codegen-2.0
169
170 # Don't keep multiple copies of pygobject-codegen-2.0 script
171 prefixed_sitedir=$(python_get_sitedir)
172 dosym "${prefixed_sitedir#${EPREFIX}}/gtk-2.0/codegen/codegen.py" /usr/bin/pygobject-codegen-2.0-${EPYTHON}
173 }
174 python_foreach_impl run_in_build_dir installing
175
176 if use examples; then
177 insinto /usr/share/doc/${PF}
178 doins -r examples
179 fi
180 }
181
182 run_in_build_dir() {
183 pushd "${BUILD_DIR}" > /dev/null || die
184 "$@"
185 popd > /dev/null
186 }