summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2015-12-13 23:18:01 +0000
committerSven Wegener <swegener@gentoo.org>2015-12-19 16:44:32 +0000
commit82efa1d2d002c334ca40f83eddb42fc7fcdc4739 (patch)
tree700122ace525953844bc06125bd54014fb6915d3 /sci-libs/libsigrok
parentsci-libs/libsigrok: Use use_with for libs (diff)
downloadgentoo-82efa1d2d002c334ca40f83eddb42fc7fcdc4739.tar.gz
gentoo-82efa1d2d002c334ca40f83eddb42fc7fcdc4739.tar.bz2
gentoo-82efa1d2d002c334ca40f83eddb42fc7fcdc4739.zip
sci-libs/libsigrok: Add support for parallel port drivers
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'sci-libs/libsigrok')
-rw-r--r--sci-libs/libsigrok/libsigrok-9999.ebuild4
-rw-r--r--sci-libs/libsigrok/metadata.xml1
2 files changed, 4 insertions, 1 deletions
diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild
index b74e69e39a05..72e1a411981f 100644
--- a/sci-libs/libsigrok/libsigrok-9999.ebuild
+++ b/sci-libs/libsigrok/libsigrok-9999.ebuild
@@ -19,13 +19,14 @@ HOMEPAGE="http://sigrok.org/wiki/Libsigrok"
LICENSE="GPL-3"
SLOT="0"
-IUSE="ftdi serial static-libs test usb"
+IUSE="ftdi parport serial static-libs test usb"
# 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(+)]
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(+)]} )
@@ -42,6 +43,7 @@ src_prepare() {
src_configure() {
econf \
$(use_with ftdi libftdi) \
+ $(use_with parport libieee1284) \
$(use_with serial libserialport) \
$(use_with usb libusb) \
$(use_enable static-libs static)
diff --git a/sci-libs/libsigrok/metadata.xml b/sci-libs/libsigrok/metadata.xml
index 9b40b4fbcc3b..34522af71aad 100644
--- a/sci-libs/libsigrok/metadata.xml
+++ b/sci-libs/libsigrok/metadata.xml
@@ -4,6 +4,7 @@
<herd>dev-embedded</herd>
<use>
<flag name='ftdi'>Enable drivers that need libftdi</flag>
+ <flag name='parport'>Enable drivers that are parallel (IEEE1284) based</flag>
<flag name='serial'>Enable drivers that are serial (RS232) based</flag>
</use>
</pkgmetadata>