commit: ca5f7669273e6f5fd5a6b9bc309115efcec6fbf7 Author: Sven Wegener <swegener <AT> gentoo <DOT> org> AuthorDate: Sat Jan 8 15:22:52 2022 +0000 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> CommitDate: Sat Jan 8 15:31:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca5f7669
sci-libs/libsigrok: Add bluetooth, hidapi and nettle USE flags Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> sci-libs/libsigrok/libsigrok-9999.ebuild | 8 +++++++- sci-libs/libsigrok/metadata.xml | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild index 02994b07b73a..6dade8d873f3 100644 --- a/sci-libs/libsigrok/libsigrok-9999.ebuild +++ b/sci-libs/libsigrok/libsigrok-9999.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="https://sigrok.org/wiki/Libsigrok" LICENSE="GPL-3" SLOT="0/9999" -IUSE="+cxx ftdi java parport python ruby serial static-libs test +udev usb" +IUSE="bluetooth +cxx ftdi hidapi java nettle parport python ruby serial static-libs test +udev usb" REQUIRED_USE="java? ( cxx ) python? ( cxx ${PYTHON_REQUIRED_USE} ) ruby? ( cxx || ( $(ruby_get_use_targets) ) )" @@ -33,8 +33,11 @@ RESTRICT="!test? ( test )" LIB_DEPEND=" >=dev-libs/glib-2.32.0[static-libs(+)] >=dev-libs/libzip-0.8:=[static-libs(+)] + bluetooth? ( >=net-wireless/bluez-4.0:= ) cxx? ( dev-cpp/glibmm:2[static-libs(+)] ) ftdi? ( dev-embedded/libftdi:1[static-libs(+)] ) + hidapi? ( >=dev-libs/hidapi-0.8.0 ) + nettle? ( dev-libs/nettle:=[static-libs(+)] ) parport? ( sys-libs/libieee1284[static-libs(+)] ) python? ( ${PYTHON_DEPS} @@ -97,7 +100,10 @@ src_prepare() { sigrok_src_configure() { econf \ + $(use_with bluetooth libbluez) \ $(use_with ftdi libftdi) \ + $(use_with hidapi libhidapi) \ + $(use_with nettle libnettle) \ $(use_with parport libieee1284) \ $(use_with serial libserialport) \ $(use_with usb libusb) \ diff --git a/sci-libs/libsigrok/metadata.xml b/sci-libs/libsigrok/metadata.xml index 125e899de100..d9f21398e7c8 100644 --- a/sci-libs/libsigrok/metadata.xml +++ b/sci-libs/libsigrok/metadata.xml @@ -11,7 +11,9 @@ as well as input/output file format support. </longdescription> <use> - <flag name="ftdi">Enable drivers that need libftdi</flag> + <flag name="ftdi">Enable drivers that need <pkg>dev-embedded/libftdi</pkg></flag> + <flag name="hidapi">Enable drivers that need <pkg>dev-libs/hidapi</pkg></flag> + <flag name="nettle">Enable drivers that need <pkg>dev-libs/nettle</pkg></flag> <flag name="parport">Enable drivers that are parallel (IEEE1284) based</flag> <flag name="serial">Enable drivers that are serial (RS232) based</flag> </use>