From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1061396-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id BA7CA138334
	for <garchives@archives.gentoo.org>; Sun,  9 Dec 2018 16:05:04 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8CB5FE08F9;
	Sun,  9 Dec 2018 16:05:03 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4D760E08F9
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Dec 2018 16:05:02 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 17D9C335C5A
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Dec 2018 16:05:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 615F6463
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Dec 2018 16:04:59 +0000 (UTC)
From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Gilles Dartiguelongue" <eva@gentoo.org>
Message-ID: <1544371479.c3127bed42e6d50557e9459ea025657062d85cae.eva@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gtk-vnc/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild
X-VCS-Directories: net-libs/gtk-vnc/
X-VCS-Committer: eva
X-VCS-Committer-Name: Gilles Dartiguelongue
X-VCS-Revision: c3127bed42e6d50557e9459ea025657062d85cae
X-VCS-Branch: master
Date: Sun,  9 Dec 2018 16:04:59 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f0a2043b-a1ee-4987-b79c-e2303dc9be5e
X-Archives-Hash: 95e9dfdada96d816d5b18281659c484f

commit:     c3127bed42e6d50557e9459ea025657062d85cae
Author:     Reto Gantenbein <reto.gantenbein <AT> linuxmonk <DOT> ch>
AuthorDate: Sun Aug  5 22:29:20 2018 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun Dec  9 16:04:39 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3127bed

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 <AT> linuxmonk.ch>
Closes: https://github.com/gentoo/gentoo/pull/9457
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>

 net-libs/gtk-vnc/gtk-vnc-0.8.0-r1.ebuild | 70 ++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

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 00000000000..16545aa4b3e
--- /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[@]}
+}