diff options
author | Sven Wegener <swegener@gentoo.org> | 2015-12-13 22:14:10 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2015-12-19 16:45:14 +0000 |
commit | 6c54edb74d21ef58a85c24e1cb62c59b1a40cfee (patch) | |
tree | 9b47eb9b478ff0c7daf2989cef94aa28bb6b4c88 /sci-libs/libsigrok | |
parent | sci-libs/libsigrok: Add support for parallel port drivers (diff) | |
download | gentoo-6c54edb74d21ef58a85c24e1cb62c59b1a40cfee.tar.gz gentoo-6c54edb74d21ef58a85c24e1cb62c59b1a40cfee.tar.bz2 gentoo-6c54edb74d21ef58a85c24e1cb62c59b1a40cfee.zip |
sci-libs/libsigrok: Support cxx/java/python USE flags
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'sci-libs/libsigrok')
-rw-r--r-- | sci-libs/libsigrok/libsigrok-9999.ebuild | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild index 72e1a411981f..a56bc58aef9b 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) } |