Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gtk-vnc/
Date: Sun, 09 Dec 2018 16:05:04
Message-Id: 1544371479.c3127bed42e6d50557e9459ea025657062d85cae.eva@gentoo
1 commit: c3127bed42e6d50557e9459ea025657062d85cae
2 Author: Reto Gantenbein <reto.gantenbein <AT> linuxmonk <DOT> ch>
3 AuthorDate: Sun Aug 5 22:29:20 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 9 16:04:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3127bed
7
8 net-libs/gtk-vnc: Properly generate vala files when USE='vala'
9
10 Vala bindings are required for newer Gnome packages releases using vala
11 and built with meson as C source files are not pre-generated anymore.
12
13 Closes: https://bugs.gentoo.org/654588
14 Closes: https://github.com/gentoo/gentoo/pull/9457
15
16 Tested-by: Reto Gantenbein <reto.gantenbein <AT> linuxmonk.ch>
17 Closes: https://github.com/gentoo/gentoo/pull/9457
18 Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>
19
20 net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild | 70 ++++++++++++++++++++++++++++++++
21 1 file changed, 70 insertions(+)
22
23 diff --git a/net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild b/net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild
24 new file mode 100644
25 index 00000000000..16545aa4b3e
26 --- /dev/null
27 +++ b/net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild
28 @@ -0,0 +1,70 @@
29 +# Copyright 1999-2018 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +PYTHON_COMPAT=( python3_{4,5,6,7} )
34 +GNOME2_LA_PUNT="yes"
35 +VALA_MIN_API_VERSION="0.16"
36 +VALA_USE_DEPEND="vapigen"
37 +
38 +inherit vala gnome2 python-any-r1
39 +
40 +DESCRIPTION="VNC viewer widget for GTK"
41 +HOMEPAGE="https://wiki.gnome.org/Projects/gtk-vnc"
42 +
43 +LICENSE="LGPL-2.1+"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
46 +IUSE="examples +introspection pulseaudio sasl vala"
47 +REQUIRED_USE="
48 + vala? ( introspection )
49 +"
50 +
51 +# libview is used in examples/gvncviewer -- no need
52 +# glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129)
53 +RDEPEND="
54 + >=dev-libs/glib-2.30.1:2
55 + >=dev-libs/libgcrypt-1.4.2:0=
56 + dev-libs/libgpg-error
57 + >=net-libs/gnutls-3.0:0=
58 + >=x11-libs/cairo-1.2
59 + x11-libs/libX11
60 + >=x11-libs/gtk+-3.0.0:3[introspection?]
61 + introspection? ( >=dev-libs/gobject-introspection-0.9.4:= )
62 + pulseaudio? ( media-sound/pulseaudio )
63 + sasl? ( dev-libs/cyrus-sasl )
64 +"
65 +# Keymap databases code is generated with python3; configure picks up $PYTHON exported from python-any-r1_pkg_setup
66 +DEPEND="${RDEPEND}
67 + ${PYTHON_DEPS}
68 + >=dev-lang/perl-5
69 + dev-util/glib-utils
70 + >=dev-util/intltool-0.40
71 + sys-devel/gettext
72 + virtual/pkgconfig
73 + vala? (
74 + $(vala_depend)
75 + >=dev-libs/gobject-introspection-0.9.4 )
76 +"
77 +# eautoreconf requires gnome-common
78 +
79 +src_prepare() {
80 + vala_src_prepare
81 + gnome2_src_prepare
82 +}
83 +
84 +src_configure() {
85 + local myconf=(
86 + $(use_with examples)
87 + $(use_enable introspection)
88 + $(use_with pulseaudio)
89 + $(use_with sasl)
90 + $(use_enable vala)
91 + --with-coroutine=gthread
92 + --without-libview
93 + --disable-static
94 + --with-gtk=3.0
95 + )
96 +
97 + gnome2_src_configure ${myconf[@]}
98 +}