Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libsigrok/
Date: Sat, 19 Dec 2015 17:15:06
Message-Id: 1450543514.6c54edb74d21ef58a85c24e1cb62c59b1a40cfee.swegener@gentoo
1 commit: 6c54edb74d21ef58a85c24e1cb62c59b1a40cfee
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 13 22:14:10 2015 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 19 16:45:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c54edb7
7
8 sci-libs/libsigrok: Support cxx/java/python USE flags
9
10 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
11
12 sci-libs/libsigrok/libsigrok-9999.ebuild | 30 +++++++++++++++++++++++++-----
13 1 file changed, 25 insertions(+), 5 deletions(-)
14
15 diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild
16 index 72e1a41..a56bc58 100644
17 --- a/sci-libs/libsigrok/libsigrok-9999.ebuild
18 +++ b/sci-libs/libsigrok/libsigrok-9999.ebuild
19 @@ -4,7 +4,9 @@
20
21 EAPI="5"
22
23 -inherit eutils
24 +PYTHON_COMPAT=( python{2_7,3_{3,4,5}} )
25 +
26 +inherit eutils python-single-r1 java-pkg-opt-2
27
28 if [[ ${PV} == "9999" ]]; then
29 EGIT_REPO_URI="git://sigrok.org/${PN}"
30 @@ -19,23 +21,38 @@ HOMEPAGE="http://sigrok.org/wiki/Libsigrok"
31
32 LICENSE="GPL-3"
33 SLOT="0"
34 -IUSE="ftdi parport serial static-libs test usb"
35 +IUSE="cxx ftdi java parport python serial static-libs test usb"
36 +REQUIRED_USE="java? ( cxx ) python? ( cxx ${PYTHON_REQUIRED_USE} )"
37
38 # We also support librevisa, but that isn't in the tree ...
39 LIB_DEPEND=">=dev-libs/glib-2.32.0[static-libs(+)]
40 >=dev-libs/libzip-0.8[static-libs(+)]
41 - dev-cpp/glibmm:2[static-libs(+)]
42 + cxx? ( dev-cpp/glibmm:2[static-libs(+)] )
43 + python? ( ${PYTHON_DEPS} >=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] )
44 ftdi? ( >=dev-embedded/libftdi-0.16[static-libs(+)] )
45 parport? ( sys-libs/libieee1284[static-libs(+)] )
46 serial? ( dev-libs/libserialport[static-libs(+)] )
47 usb? ( virtual/libusb:1[static-libs(+)] )"
48 RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
49 - static-libs? ( ${LIB_DEPEND} )"
50 + static-libs? ( ${LIB_DEPEND} )
51 + java? ( >=virtual/jre-1.4 )"
52 DEPEND="${LIB_DEPEND//\[static-libs(+)]}
53 test? ( >=dev-libs/check-0.9.4 )
54 - >=dev-lang/swig-3.0.6
55 + cxx? ( app-doc/doxygen )
56 + java? (
57 + >=dev-lang/swig-3.0.6
58 + >=virtual/jdk-1.4
59 + )
60 + python? (
61 + >=dev-lang/swig-3.0.6
62 + )
63 virtual/pkgconfig"
64
65 +pkg_setup() {
66 + use python && python-single-r1_pkg_setup
67 + java-pkg-opt-2_pkg_setup
68 +}
69 +
70 src_prepare() {
71 [[ ${PV} == "9999" ]] && eautoreconf
72 }
73 @@ -46,6 +63,9 @@ src_configure() {
74 $(use_with parport libieee1284) \
75 $(use_with serial libserialport) \
76 $(use_with usb libusb) \
77 + $(use_enable cxx) \
78 + $(use_enable java) \
79 + $(use_enable python) \
80 $(use_enable static-libs static)
81 }