summaryrefslogtreecommitdiff
blob: c4f40760c2eb63481d57c7ccf8cd5851a0770003 (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
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

DIST_VERSION=v${PV}
DIST_AUTHOR=DTOWN
inherit perl-module

DESCRIPTION="A SNMP Perl Module"

SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~sparc ~x86 ~ppc-aix ~sparc-solaris ~x86-solaris"
# Package warrants IUSE examples
IUSE="examples test minimal"

RDEPEND="
	!minimal? (
		>=dev-perl/Crypt-DES-2.30.0
		>=dev-perl/Crypt-Rijndael-1.20.0
		>=dev-perl/Digest-HMAC-1.0
		>=virtual/perl-Digest-MD5-2.110.0
		>=dev-perl/Digest-SHA1-1.20.0
		>=dev-perl/Socket6-0.230.0
	)
	virtual/perl-Carp
	virtual/perl-Exporter
	virtual/perl-IO
	virtual/perl-Math-BigInt
"
DEPEND="${RDEPEND}
	>=dev-perl/Module-Build-0.360.0
	test? ( virtual/perl-Test )
"
src_install() {
	perl-module_src_install
	if use examples; then
		docompress -x usr/share/doc/${PF}/examples
		insinto usr/share/doc/${PF}/
		doins -r examples/
	fi
}