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