dev-perl/Lab-VXI11: Support glibc-2.26 / libtirpc
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 18 Nov 2017 21:06:53 +0000 (22:06 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 18 Nov 2017 21:07:48 +0000 (22:07 +0100)
Closes: https://bugs.gentoo.org/638050
Package-Manager: Portage-2.3.14, Repoman-2.3.6

dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild
dev-perl/Lab-VXI11/metadata.xml

index 6eca7c194229c875ac65fec042a78c284bad3524..9d18e77101a3a45016ce68e0c45bf7025956dc36 100644 (file)
@@ -11,9 +11,23 @@ inherit perl-module
 DESCRIPTION="Perl interface to the VXI-11 Test&Measurement backend"
 
 SLOT="0"
+IUSE="+libtirpc"
 
-RDEPEND=""
+RDEPEND="
+       !libtirpc? ( sys-libs/glibc[rpc(-)] )
+       libtirpc? ( net-libs/libtirpc )
+"
 DEPEND="
        ${RDEPEND}
        virtual/perl-ExtUtils-MakeMaker
 "
+
+src_configure() {
+       if use libtirpc ; then
+               myconf=(
+                       OPTIMIZE="${CFLAGS} -I/usr/include/tirpc"
+                       LIBS="-ltirpc"
+               )
+       fi
+       perl-module_src_configure
+}
index e10a656f860c931df6bf7268d5ac0ea577248212..ffb2370de9aafdb9ea0800320499b0b95d78395c 100644 (file)
@@ -9,4 +9,13 @@
     <email>sci@gentoo.org</email>
     <name>Gentoo Science Project</name>
   </maintainer>
+  <maintainer type="project">
+    <email>perl@gentoo.org</email>
+    <name>Gentoo Perl Project</name>
+  </maintainer>
+  <use>
+    <flag name="libtirpc">
+      Build against <pkg>net-libs/libtirpc</pkg> for RPC support
+    </flag>
+  </use>
 </pkgmetadata>