summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>2018-08-06 00:29:20 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2018-12-09 17:04:39 +0100
commitc3127bed42e6d50557e9459ea025657062d85cae (patch)
tree0456e1ea71a53f158c7abf88e337864737370d95 /net-libs
parentdev-util/android-studio: bump 3.2.1 (diff)
downloadgentoo-c3127bed42e6d50557e9459ea025657062d85cae.tar.gz
gentoo-c3127bed42e6d50557e9459ea025657062d85cae.tar.bz2
gentoo-c3127bed42e6d50557e9459ea025657062d85cae.zip
net-libs/gtk-vnc: Properly generate vala files when USE='vala'
Vala bindings are required for newer Gnome packages releases using vala and built with meson as C source files are not pre-generated anymore. Closes: https://bugs.gentoo.org/654588 Closes: https://github.com/gentoo/gentoo/pull/9457 Tested-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch> Closes: https://github.com/gentoo/gentoo/pull/9457 Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild70
1 files changed, 70 insertions, 0 deletions
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
new file mode 100644
index 000000000000..16545aa4b3e5
--- /dev/null
+++ b/net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6,7} )
+GNOME2_LA_PUNT="yes"
+VALA_MIN_API_VERSION="0.16"
+VALA_USE_DEPEND="vapigen"
+
+inherit vala gnome2 python-any-r1
+
+DESCRIPTION="VNC viewer widget for GTK"
+HOMEPAGE="https://wiki.gnome.org/Projects/gtk-vnc"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="examples +introspection pulseaudio sasl vala"
+REQUIRED_USE="
+ vala? ( introspection )
+"
+
+# libview is used in examples/gvncviewer -- no need
+# glib-2.30.1 needed to avoid linking failure due to .la files (bug #399129)
+RDEPEND="
+ >=dev-libs/glib-2.30.1:2
+ >=dev-libs/libgcrypt-1.4.2:0=
+ dev-libs/libgpg-error
+ >=net-libs/gnutls-3.0:0=
+ >=x11-libs/cairo-1.2
+ x11-libs/libX11
+ >=x11-libs/gtk+-3.0.0:3[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-0.9.4:= )
+ pulseaudio? ( media-sound/pulseaudio )
+ sasl? ( dev-libs/cyrus-sasl )
+"
+# Keymap databases code is generated with python3; configure picks up $PYTHON exported from python-any-r1_pkg_setup
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-lang/perl-5
+ dev-util/glib-utils
+ >=dev-util/intltool-0.40
+ sys-devel/gettext
+ virtual/pkgconfig
+ vala? (
+ $(vala_depend)
+ >=dev-libs/gobject-introspection-0.9.4 )
+"
+# eautoreconf requires gnome-common
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(use_with examples)
+ $(use_enable introspection)
+ $(use_with pulseaudio)
+ $(use_with sasl)
+ $(use_enable vala)
+ --with-coroutine=gthread
+ --without-libview
+ --disable-static
+ --with-gtk=3.0
+ )
+
+ gnome2_src_configure ${myconf[@]}
+}