summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2017-11-18 22:06:53 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2017-11-18 22:07:48 +0100
commit9d0bb963bb94305320ae676636c206cb4625c8cb (patch)
tree8dab81d6298fb468f88e8cd004864332bff3d927 /dev-perl/Lab-VXI11
parentsys-kernel/gentoo-sources: Linux patch 4.9.63 (diff)
downloadgentoo-9d0bb963bb94305320ae676636c206cb4625c8cb.tar.gz
gentoo-9d0bb963bb94305320ae676636c206cb4625c8cb.tar.bz2
gentoo-9d0bb963bb94305320ae676636c206cb4625c8cb.zip
dev-perl/Lab-VXI11: Support glibc-2.26 / libtirpc
Closes: https://bugs.gentoo.org/638050 Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'dev-perl/Lab-VXI11')
-rw-r--r--dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild16
-rw-r--r--dev-perl/Lab-VXI11/metadata.xml9
2 files changed, 24 insertions, 1 deletions
diff --git a/dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild b/dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild
index 6eca7c194229..9d18e77101a3 100644
--- a/dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild
+++ b/dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild
@@ -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
+}
diff --git a/dev-perl/Lab-VXI11/metadata.xml b/dev-perl/Lab-VXI11/metadata.xml
index e10a656f860c..ffb2370de9aa 100644
--- a/dev-perl/Lab-VXI11/metadata.xml
+++ b/dev-perl/Lab-VXI11/metadata.xml
@@ -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>