summaryrefslogtreecommitdiff
blob: 257b4a0ebe5f8846709341054187c69da32bd359 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DIST_AUTHOR=MMIMS
DIST_VERSION=4.01010
inherit perl-module

DESCRIPTION="A perl interface to the Twitter API"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~x64-macos"
IUSE="test examples"

RDEPEND="
	dev-perl/Carp-Clan
	dev-perl/Class-Load
	dev-perl/Data-Visitor
	>=dev-perl/DateTime-0.51
	dev-perl/DateTime-Format-Strptime
	>=dev-perl/Devel-StackTrace-1.21
	virtual/perl-Digest-SHA
	virtual/perl-Encode
	dev-perl/HTML-Parser
	dev-perl/HTTP-Message
	>=dev-perl/IO-Socket-SSL-2.5.0
	dev-perl/JSON
	dev-perl/LWP-Protocol-https
	virtual/perl-Scalar-List-Utils
	>=dev-perl/Moose-0.940.0
	dev-perl/MooseX-Role-Parameterized
	dev-perl/Net-HTTP
	!=dev-perl/Net-HTTP-6.40.0
	!=dev-perl/Net-HTTP-6.50.0
	virtual/perl-libnet
	>=dev-perl/Net-OAuth-0.25
	virtual/perl-Time-HiRes
	>=dev-perl/Try-Tiny-0.30.0
	>=dev-perl/URI-1.400.0
	dev-perl/namespace-autoclean
"

DEPEND="${RDEPEND}
	>=dev-perl/Module-Build-0.360.100
	test? (
		virtual/perl-Carp
		virtual/perl-File-Spec
		virtual/perl-File-Temp
		>=dev-perl/libwww-perl-5.819.0
		dev-perl/Test-Deep
		dev-perl/Test-Fatal
		>=virtual/perl-Test-Simple-0.980.0
		dev-perl/Test-Warn
	)
"
src_install() {
	perl-module_src_install
	if use examples; then
		docompress -x /usr/share/doc/${PF}/examples
		insinto  /usr/share/doc/${PF}/examples
		doins -r examples/*
	fi
}
src_test() {
	perl_rm_files 't/99-pod_spelling.t' 't/release-pod-syntax.t' 't/release-pod-coverage.t'
	perl-module_src_test
}