commit:     82efa1d2d002c334ca40f83eddb42fc7fcdc4739
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 13 23:18:01 2015 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Sat Dec 19 16:44:32 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82efa1d2

sci-libs/libsigrok: Add support for parallel port drivers

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

 sci-libs/libsigrok/libsigrok-9999.ebuild | 4 +++-
 sci-libs/libsigrok/metadata.xml          | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild 
b/sci-libs/libsigrok/libsigrok-9999.ebuild
index b74e69e..72e1a41 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 9b40b4f..34522af 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>

Reply via email to