Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gtk-vnc: ChangeLog gtk-vnc-0.5.0-r1.ebuild gtk-vnc-0.5.0.ebuild
Date: Fri, 06 Apr 2012 08:11:30
Message-Id: 20120406081120.D038D2004B@flycatcher.gentoo.org
1 tetromino 12/04/06 08:11:20
2
3 Modified: ChangeLog gtk-vnc-0.5.0.ebuild
4 Added: gtk-vnc-0.5.0-r1.ebuild
5 Log:
6 Revbump for optional pulseaudio since gtk-vnc may used in profiles where pulseaudio is not enabled by default.
7
8 (Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.85 net-libs/gtk-vnc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?rev=1.85&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?rev=1.85&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?r1=1.84&r2=1.85
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v
20 retrieving revision 1.84
21 retrieving revision 1.85
22 diff -u -r1.84 -r1.85
23 --- ChangeLog 6 Apr 2012 08:00:09 -0000 1.84
24 +++ ChangeLog 6 Apr 2012 08:11:20 -0000 1.85
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-libs/gtk-vnc
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v 1.84 2012/04/06 08:00:09 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v 1.85 2012/04/06 08:11:20 tetromino Exp $
30 +
31 +*gtk-vnc-0.5.0-r1 (06 Apr 2012)
32 +
33 + 06 Apr 2012; Alexandre Rostovtsev <tetromino@g.o>
34 + gtk-vnc-0.5.0.ebuild, +gtk-vnc-0.5.0-r1.ebuild:
35 + Revbump for optional pulseaudio since gtk-vnc may used in profiles where
36 + pulseaudio is not enabled by default.
37
38 06 Apr 2012; Alexandre Rostovtsev <tetromino@g.o>
39 gtk-vnc-0.5.0.ebuild, +files/gtk-vnc-0.5.0-pulseaudio-automagic.patch:
40
41
42
43 1.5 net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild?rev=1.5&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild?rev=1.5&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild?r1=1.4&r2=1.5
48
49 Index: gtk-vnc-0.5.0.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild,v
52 retrieving revision 1.4
53 retrieving revision 1.5
54 diff -u -r1.4 -r1.5
55 --- gtk-vnc-0.5.0.ebuild 6 Apr 2012 08:00:09 -0000 1.4
56 +++ gtk-vnc-0.5.0.ebuild 6 Apr 2012 08:11:20 -0000 1.5
57 @@ -1,12 +1,12 @@
58 # Copyright 1999-2012 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild,v 1.4 2012/04/06 08:00:09 tetromino Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0.ebuild,v 1.5 2012/04/06 08:11:20 tetromino Exp $
62
63 EAPI="4"
64
65 PYTHON_DEPEND="python? 2"
66
67 -inherit autotools base eutils gnome.org python
68 +inherit base eutils gnome.org python
69
70 DESCRIPTION="VNC viewer widget for GTK"
71 HOMEPAGE="http://live.gnome.org/gtk-vnc"
72 @@ -14,7 +14,7 @@
73 LICENSE="GPL-2"
74 SLOT="0"
75 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
76 -IUSE="examples gtk3 +introspection pulseaudio python sasl vala"
77 +IUSE="examples gtk3 +introspection python sasl vala"
78
79 # libview is used in examples/gvncviewer -- no need
80 # glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129)
81 @@ -23,13 +23,13 @@
82 COMMON_DEPEND=">=dev-libs/glib-2.30.1:2
83 >=dev-libs/libgcrypt-1.4.2
84 dev-libs/libgpg-error
85 + media-sound/pulseaudio
86 >=net-libs/gnutls-1.4
87 >=x11-libs/cairo-1.2
88 >=x11-libs/gtk+-2.18:2
89 x11-libs/libX11
90 gtk3? ( >=x11-libs/gtk+-2.91.3:3 )
91 introspection? ( >=dev-libs/gobject-introspection-0.9.4 )
92 - pulseaudio? ( media-sound/pulseaudio )
93 python? ( >=dev-python/pygtk-2:2 )
94 sasl? ( dev-libs/cyrus-sasl )"
95 RDEPEND="${COMMON_DEPEND}"
96 @@ -38,14 +38,10 @@
97 dev-util/pkgconfig
98 sys-devel/gettext
99 >=dev-util/intltool-0.40
100 -
101 - gnome-base/gnome-common
102 -
103 vala? (
104 dev-lang/vala:0.14[vapigen]
105 >=dev-libs/gobject-introspection-0.9.4 )
106 "
107 -# eautoreconf requires gnome-common
108
109 GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2"
110 GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3"
111 @@ -63,10 +59,6 @@
112 # https://bugzilla.gnome.org/show_bug.cgi?id=667943
113 epatch "${FILESDIR}/${PN}-0.5.0-pod.patch"
114
115 - # bug #399111, https://bugzilla.gnome.org/show_bug.cgi?id=673570
116 - # requires eautoreconf
117 - epatch "${FILESDIR}/${PN}-0.5.0-pulseaudio-automagic.patch"
118 -
119 python_convert_shebangs -r 2 .
120 mkdir "${GTK2_BUILDDIR}" || die
121 mkdir "${GTK3_BUILDDIR}" || die
122 @@ -81,8 +73,6 @@
123 sed -e 's/codegendir pygtk-2.0/codegendir pygobject-2.0/g' \
124 -i src/Makefile.* || die
125
126 - eautoreconf
127 -
128 # Work around https://bugzilla.gnome.org/show_bug.cgi?id=667941
129 [[ -e GNUmakefile ]] || touch GNUmakefile
130 }
131 @@ -92,7 +82,6 @@
132 myconf="
133 $(use_with examples) \
134 $(use_enable introspection) \
135 - $(use_with pulseaudio) \
136 $(use_with sasl) \
137 --with-coroutine=gthread \
138 --without-libview \
139
140
141
142 1.1 net-libs/gtk-vnc/gtk-vnc-0.5.0-r1.ebuild
143
144 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0-r1.ebuild?rev=1.1&view=markup
145 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0-r1.ebuild?rev=1.1&content-type=text/plain
146
147 Index: gtk-vnc-0.5.0-r1.ebuild
148 ===================================================================
149 # Copyright 1999-2012 Gentoo Foundation
150 # Distributed under the terms of the GNU General Public License v2
151 # $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.0-r1.ebuild,v 1.1 2012/04/06 08:11:20 tetromino Exp $
152
153 EAPI="4"
154
155 PYTHON_DEPEND="python? 2"
156
157 inherit autotools base eutils gnome.org python
158
159 DESCRIPTION="VNC viewer widget for GTK"
160 HOMEPAGE="http://live.gnome.org/gtk-vnc"
161
162 LICENSE="GPL-2"
163 SLOT="0"
164 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
165 IUSE="examples gtk3 +introspection pulseaudio python sasl vala"
166
167 # libview is used in examples/gvncviewer -- no need
168 # glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129)
169 # TODO: review nsplugin when it will be considered less experimental
170 # XXX: automagic pulseaudio. Is it worth patching?
171 COMMON_DEPEND=">=dev-libs/glib-2.30.1:2
172 >=dev-libs/libgcrypt-1.4.2
173 dev-libs/libgpg-error
174 >=net-libs/gnutls-1.4
175 >=x11-libs/cairo-1.2
176 >=x11-libs/gtk+-2.18:2
177 x11-libs/libX11
178 gtk3? ( >=x11-libs/gtk+-2.91.3:3 )
179 introspection? ( >=dev-libs/gobject-introspection-0.9.4 )
180 pulseaudio? ( media-sound/pulseaudio )
181 python? ( >=dev-python/pygtk-2:2 )
182 sasl? ( dev-libs/cyrus-sasl )"
183 RDEPEND="${COMMON_DEPEND}"
184 DEPEND="${COMMON_DEPEND}
185 >=dev-lang/perl-5
186 dev-util/pkgconfig
187 sys-devel/gettext
188 >=dev-util/intltool-0.40
189
190 gnome-base/gnome-common
191
192 vala? (
193 dev-lang/vala:0.14[vapigen]
194 >=dev-libs/gobject-introspection-0.9.4 )
195 "
196 # eautoreconf requires gnome-common
197
198 GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2"
199 GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3"
200
201 pkg_setup() {
202 python_set_active_version 2
203 python_pkg_setup
204
205 if use vala && ! use gtk3; then
206 ewarn "You must set USE=gtk3 to enable vala bindings support."
207 fi
208 }
209
210 src_prepare() {
211 # https://bugzilla.gnome.org/show_bug.cgi?id=667943
212 epatch "${FILESDIR}/${PN}-0.5.0-pod.patch"
213
214 # bug #399111, https://bugzilla.gnome.org/show_bug.cgi?id=673570
215 # requires eautoreconf
216 epatch "${FILESDIR}/${PN}-0.5.0-pulseaudio-automagic.patch"
217
218 python_convert_shebangs -r 2 .
219 mkdir "${GTK2_BUILDDIR}" || die
220 mkdir "${GTK3_BUILDDIR}" || die
221
222 # Remove a few files that were autogenerated during distcheck.
223 # Having these around in srcdir breaks out of tree build since they're
224 # expected to be in builddir, which is correct for trunk builds since
225 # they're generated files, not source files. Funny false dichotomy.
226 rm -vf "${S}"/src/{vncconnectionenums.[ch],vncdisplayenums.[ch]}
227
228 # Fix incorrect codegendir check: h2def.py is in pygobject, not pygtk
229 sed -e 's/codegendir pygtk-2.0/codegendir pygobject-2.0/g' \
230 -i src/Makefile.* || die
231
232 eautoreconf
233
234 # Work around https://bugzilla.gnome.org/show_bug.cgi?id=667941
235 [[ -e GNUmakefile ]] || touch GNUmakefile
236 }
237
238 src_configure() {
239 local myconf
240 myconf="
241 $(use_with examples) \
242 $(use_enable introspection) \
243 $(use_with pulseaudio) \
244 $(use_with sasl) \
245 --with-coroutine=gthread \
246 --without-libview \
247 --disable-static \
248 --disable-vala"
249
250 cd ${GTK2_BUILDDIR}
251 einfo "Running configure in ${GTK2_BUILDDIR}"
252 ECONF_SOURCE="${S}" econf ${myconf} \
253 $(use_with python) \
254 --with-gtk=2.0
255
256 if use gtk3; then
257 if use vala; then
258 myconf="${myconf} \
259 --enable-introspection \
260 --enable-vala \
261 VAPIGEN=$(type -p vapigen-0.14)"
262 fi
263
264 cd ${GTK3_BUILDDIR}
265 einfo "Running configure in ${GTK3_BUILDDIR}"
266 # Python support is via gobject-introspection
267 # Ex: from gi.repository import GtkVnc
268 ECONF_SOURCE="${S}" econf ${myconf} \
269 --with-python=no \
270 --with-gtk=3.0
271 fi
272 }
273
274 src_compile() {
275 cd ${GTK2_BUILDDIR}
276 einfo "Running make in ${GTK2_BUILDDIR}"
277 # Work around https://bugzilla.gnome.org/show_bug.cgi?id=667941
278 rm GNUmakefile
279 emake
280
281 if use gtk3; then
282 cd ${GTK3_BUILDDIR}
283 einfo "Running make in ${GTK3_BUILDDIR}"
284 # Work around https://bugzilla.gnome.org/show_bug.cgi?id=667941
285 rm GNUmakefile
286 emake
287 fi
288 }
289
290 src_test() {
291 cd ${GTK2_BUILDDIR}
292 einfo "Running make check in ${GTK2_BUILDDIR}"
293 emake check
294
295 if use gtk3; then
296 cd ${GTK3_BUILDDIR}
297 einfo "Running make check in ${GTK3_BUILDDIR}"
298 emake check
299 fi
300 }
301
302 src_install() {
303 dodoc AUTHORS ChangeLog NEWS README
304
305 cd ${GTK2_BUILDDIR}
306 einfo "Running make install in ${GTK2_BUILDDIR}"
307 # bug #328273
308 MAKEOPTS="${MAKEOPTS} -j1" base_src_install
309
310 if use gtk3; then
311 cd ${GTK3_BUILDDIR}
312 einfo "Running make install in ${GTK3_BUILDDIR}"
313 # bug #328273
314 MAKEOPTS="${MAKEOPTS} -j1" base_src_install
315 fi
316
317 python_clean_installation_image
318
319 # Remove .la files
320 find "${ED}" -name '*.la' -exec rm -f '{}' + || die
321 }