Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gtk-vnc: gtk-vnc-0.5.3.ebuild ChangeLog gtk-vnc-0.5.1.ebuild
Date: Sat, 28 Sep 2013 20:21:35
Message-Id: 20130928202127.0156F2004C@flycatcher.gentoo.org
1 pacho 13/09/28 20:21:26
2
3 Modified: ChangeLog
4 Added: gtk-vnc-0.5.3.ebuild
5 Removed: gtk-vnc-0.5.1.ebuild
6 Log:
7 Version bump, drop old
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
10
11 Revision Changes Path
12 1.117 net-libs/gtk-vnc/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?rev=1.117&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?rev=1.117&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/ChangeLog?r1=1.116&r2=1.117
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v
21 retrieving revision 1.116
22 retrieving revision 1.117
23 diff -u -r1.116 -r1.117
24 --- ChangeLog 6 Sep 2013 18:35:23 -0000 1.116
25 +++ ChangeLog 28 Sep 2013 20:21:26 -0000 1.117
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-libs/gtk-vnc
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v 1.116 2013/09/06 18:35:23 ago Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/ChangeLog,v 1.117 2013/09/28 20:21:26 pacho Exp $
31 +
32 +*gtk-vnc-0.5.3 (28 Sep 2013)
33 +
34 + 28 Sep 2013; Pacho Ramos <pacho@g.o> +gtk-vnc-0.5.3.ebuild,
35 + -gtk-vnc-0.5.1.ebuild:
36 + Version bump, drop old
37
38 06 Sep 2013; Agostino Sarubbo <ago@g.o> gtk-vnc-0.5.2.ebuild:
39 Stable for sparc, wrt bug #480150
40
41
42
43 1.1 net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gtk-vnc-0.5.3.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-libs/gtk-vnc/gtk-vnc-0.5.3.ebuild,v 1.1 2013/09/28 20:21:26 pacho Exp $
53
54 EAPI="5"
55 PYTHON_COMPAT=( python2_{6,7} )
56 VALA_MIN_API_VERSION="0.16"
57 VALA_USE_DEPEND="vapigen"
58
59 inherit eutils gnome.org python-r1 vala
60
61 DESCRIPTION="VNC viewer widget for GTK"
62 HOMEPAGE="https://live.gnome.org/gtk-vnc"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 IUSE="examples +gtk3 +introspection pulseaudio python sasl vala"
68 REQUIRED_USE="
69 python? ( ${PYTHON_REQUIRED_USE} )
70 vala? ( gtk3 introspection )
71 "
72
73 # libview is used in examples/gvncviewer -- no need
74 # glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129)
75 COMMON_DEPEND="
76 >=dev-libs/glib-2.30.1:2
77 >=dev-libs/libgcrypt-1.4.2
78 dev-libs/libgpg-error
79 >=net-libs/gnutls-1.4
80 >=x11-libs/cairo-1.2
81 >=x11-libs/gtk+-2.18:2
82 x11-libs/libX11
83 gtk3? ( >=x11-libs/gtk+-2.91.3:3 )
84 introspection? ( >=dev-libs/gobject-introspection-0.9.4 )
85 pulseaudio? ( media-sound/pulseaudio )
86 python? (
87 ${PYTHON_DEPS}
88 >=dev-python/pygtk-2:2[${PYTHON_USEDEP}] )
89 sasl? ( dev-libs/cyrus-sasl )
90 "
91 RDEPEND="${COMMON_DEPEND}"
92
93 DEPEND="${COMMON_DEPEND}
94 >=dev-lang/perl-5
95 >=dev-util/intltool-0.40
96 sys-devel/gettext
97 virtual/pkgconfig
98 vala? (
99 $(vala_depend)
100 >=dev-libs/gobject-introspection-0.9.4 )
101 "
102 # eautoreconf requires gnome-common
103
104 GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2"
105 GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3"
106
107 src_prepare() {
108 mkdir -p "${GTK2_BUILDDIR}" || die
109 mkdir -p "${GTK3_BUILDDIR}" || die
110 prepare_python() {
111 mkdir -p "${BUILD_DIR}" || die
112 }
113 if use python; then
114 python_foreach_impl prepare_python
115 fi
116
117 # Remove a few files that were autogenerated during distcheck.
118 # Having these around in srcdir breaks out of tree build since they're
119 # expected to be in builddir, which is correct for trunk builds since
120 # they're generated files, not source files. Funny false dichotomy.
121 rm -vf "${S}"/src/{vncconnectionenums.[ch],vncdisplayenums.[ch]}
122
123 # Fix incorrect codegendir check: h2def.py is in pygobject, not pygtk, upstream bug#????
124 sed -e 's/codegendir pygtk-2.0/codegendir pygobject-2.0/g' \
125 -i src/Makefile.* || die
126
127 # libtool seems unable to find this via VPATH so help it
128 sed -r "s:(gtkvnc_la_LIBADD =) libgtk-vnc-.*\.la:\1 ${GTK2_BUILDDIR}/src/libgtk-vnc-1.0.la:" \
129 -i src/Makefile.{am,in} || die
130
131 vala_src_prepare
132 }
133
134 src_configure() {
135 local myconf
136 myconf="
137 $(use_with examples) \
138 $(use_enable introspection) \
139 $(use_with pulseaudio) \
140 $(use_with sasl) \
141 --with-coroutine=gthread \
142 --without-libview \
143 --disable-static \
144 --disable-vala"
145
146 cd "${GTK2_BUILDDIR}" || die
147 einfo "Running configure in ${GTK2_BUILDDIR}"
148 ECONF_SOURCE="${S}" econf ${myconf} \
149 --with-python=no \
150 --with-gtk=2.0
151
152 configure_python() {
153 ECONF_SOURCE="${S}" econf ${myconf} \
154 $(use_with python) \
155 --with-gtk=2.0
156 }
157 if use python; then
158 python_foreach_impl run_in_build_dir configure_python
159 fi
160
161 if use gtk3; then
162 cd "${GTK3_BUILDDIR}" || die
163 einfo "Running configure in ${GTK3_BUILDDIR}"
164 # Python support is via gobject-introspection
165 # Ex: from gi.repository import GtkVnc
166 ECONF_SOURCE="${S}" econf ${myconf} \
167 $(use_enable vala) \
168 --with-python=no \
169 --with-gtk=3.0
170 fi
171 }
172
173 src_compile() {
174 cd "${GTK2_BUILDDIR}" || die
175 einfo "Running make in ${GTK2_BUILDDIR}"
176 emake
177
178 compile_python() {
179 cd "${BUILD_DIR}"/src || die
180 # CPPFLAGS set to help find includes for gvnc.override
181 emake gtkvnc.la \
182 VPATH="${S}/src:${GTK2_BUILDDIR}/src:${BUILD_DIR}/src" \
183 CPPFLAGS="${CPPFLAGS} -I${GTK2_BUILDDIR}/src"
184 }
185 if use python; then
186 python_foreach_impl run_in_build_dir compile_python
187 fi
188
189 if use gtk3; then
190 cd "${GTK3_BUILDDIR}" || die
191 einfo "Running make in ${GTK3_BUILDDIR}"
192 emake
193 fi
194 }
195
196 src_test() {
197 cd "${GTK2_BUILDDIR}" || die
198 einfo "Running make check in ${GTK2_BUILDDIR}"
199 default
200
201 if use gtk3; then
202 cd "${GTK3_BUILDDIR}" || die
203 einfo "Running make check in ${GTK3_BUILDDIR}"
204 default
205 fi
206 }
207
208 src_install() {
209 # Parallel installation fails sometimes, bug #328273, upstream bug #651923
210 # Upstream is still unable to reproduce, try again to use parallel with this new version
211 dodoc AUTHORS ChangeLog NEWS README
212
213 cd "${GTK2_BUILDDIR}" || die
214 einfo "Running make install in ${GTK2_BUILDDIR}"
215 # MAKEOPTS="${MAKEOPTS} -j1" default
216 default
217
218 install_python() {
219 cd "${BUILD_DIR}"/src || die
220 emake install-pyexecLTLIBRARIES DESTDIR="${D}" \
221 VPATH="${S}/src:${GTK2_BUILDDIR}/src:${BUILD_DIR}/src" \
222 CPPFLAGS="${CPPFLAGS} -I${GTK2_BUILDDIR}/src"
223 }
224 if use python; then
225 python_foreach_impl run_in_build_dir install_python
226 fi
227
228 if use gtk3; then
229 cd "${GTK3_BUILDDIR}" || die
230 einfo "Running make install in ${GTK3_BUILDDIR}"
231 #MAKEOPTS="${MAKEOPTS} -j1" default
232 default
233 fi
234
235 prune_libtool_files
236 }