From 9d0bb963bb94305320ae676636c206cb4625c8cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sat, 18 Nov 2017 22:06:53 +0100 Subject: [PATCH] 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 --- dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild | 16 +++++++++++++++- dev-perl/Lab-VXI11/metadata.xml | 9 +++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) 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 @@ sci@gentoo.org Gentoo Science Project + + perl@gentoo.org + Gentoo Perl Project + + + + Build against net-libs/libtirpc for RPC support + + -- 2.26.2