summaryrefslogtreecommitdiff
blob: 9d18e77101a3a45016ce68e0c45bf7025956dc36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DIST_VERSION=0.02
DIST_AUTHOR=AMBA
KEYWORDS="~amd64 ~x86"
inherit perl-module

DESCRIPTION="Perl interface to the VXI-11 Test&Measurement backend"

SLOT="0"
IUSE="+libtirpc"

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
}