diff options
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/Lab-VXI11/Lab-VXI11-0.20.0.ebuild | 16 | ||||
-rw-r--r-- | dev-perl/Lab-VXI11/metadata.xml | 9 |
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> |