From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-852301-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id B25F81388C1
	for <garchives@archives.gentoo.org>; Sat, 19 Dec 2015 17:15:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D658F21C0A8;
	Sat, 19 Dec 2015 17:15:04 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 654FC21C096
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Dec 2015 17:15:04 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3B69634076D
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Dec 2015 17:15:02 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 22DB7CE6
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Dec 2015 17:15:00 +0000 (UTC)
From: "Sven Wegener" <swegener@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, "Sven Wegener" <swegener@gentoo.org>
Message-ID: <1450543514.6c54edb74d21ef58a85c24e1cb62c59b1a40cfee.swegener@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsigrok/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-libs/libsigrok/libsigrok-9999.ebuild
X-VCS-Directories: sci-libs/libsigrok/
X-VCS-Committer: swegener
X-VCS-Committer-Name: Sven Wegener
X-VCS-Revision: 6c54edb74d21ef58a85c24e1cb62c59b1a40cfee
X-VCS-Branch: master
Date: Sat, 19 Dec 2015 17:15:00 +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-Archives-Salt: 2c56cfd4-d003-4fd6-bb79-675018c7d548
X-Archives-Hash: 391ec5fd29f0d65858f41f5bf1312d33

commit:     6c54edb74d21ef58a85c24e1cb62c59b1a40cfee
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 13 22:14:10 2015 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Sat Dec 19 16:45:14 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c54edb7

sci-libs/libsigrok: Support cxx/java/python USE flags

Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>

 sci-libs/libsigrok/libsigrok-9999.ebuild | 30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)

diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild
index 72e1a41..a56bc58 100644
--- a/sci-libs/libsigrok/libsigrok-9999.ebuild
+++ b/sci-libs/libsigrok/libsigrok-9999.ebuild
@@ -4,7 +4,9 @@
 
 EAPI="5"
 
-inherit eutils
+PYTHON_COMPAT=( python{2_7,3_{3,4,5}} )
+
+inherit eutils python-single-r1 java-pkg-opt-2
 
 if [[ ${PV} == "9999" ]]; then
 	EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -19,23 +21,38 @@ HOMEPAGE="http://sigrok.org/wiki/Libsigrok"
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="ftdi parport serial static-libs test usb"
+IUSE="cxx ftdi java parport python serial static-libs test usb"
+REQUIRED_USE="java? ( cxx ) python? ( cxx ${PYTHON_REQUIRED_USE} )"
 
 # We also support librevisa, but that isn't in the tree ...
 LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)]
 	>=dev-libs/libzip-0.8[static-libs(+)]
-	dev-cpp/glibmm:2[static-libs(+)]
+	cxx? ( dev-cpp/glibmm:2[static-libs(+)] )
+	python? ( ${PYTHON_DEPS} >=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] )
 	ftdi? ( >=dev-embedded/libftdi-0.16[static-libs(+)] )
 	parport? ( sys-libs/libieee1284[static-libs(+)] )
 	serial? ( dev-libs/libserialport[static-libs(+)] )
 	usb? ( virtual/libusb:1[static-libs(+)] )"
 RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
-	static-libs? ( ${LIB_DEPEND} )"
+	static-libs? ( ${LIB_DEPEND} )
+	java? ( >=virtual/jre-1.4 )"
 DEPEND="${LIB_DEPEND//\[static-libs(+)]}
 	test? ( >=dev-libs/check-0.9.4 )
-	>=dev-lang/swig-3.0.6
+	cxx? ( app-doc/doxygen )
+	java? (
+		>=dev-lang/swig-3.0.6
+		>=virtual/jdk-1.4
+	)
+	python? (
+		>=dev-lang/swig-3.0.6
+	)
 	virtual/pkgconfig"
 
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+	java-pkg-opt-2_pkg_setup
+}
+
 src_prepare() {
 	[[ ${PV} == "9999" ]] && eautoreconf
 }
@@ -46,6 +63,9 @@ src_configure() {
 		$(use_with parport libieee1284) \
 		$(use_with serial libserialport) \
 		$(use_with usb libusb) \
+		$(use_enable cxx) \
+		$(use_enable java) \
+		$(use_enable python) \
 		$(use_enable static-libs static)
 }