# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DIST_AUTHOR=MMIMS
DIST_VERSION=4.01042
DIST_EXAMPLES=("examples/*")
inherit perl-module

DESCRIPTION="A perl interface to the Twitter API"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

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-MaybeXS
	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
	virtual/perl-libnet
	dev-perl/namespace-autoclean
"

DEPEND="${RDEPEND}
	>=virtual/perl-ExtUtils-MakeMaker-7.110.100
	test? (
		virtual/perl-Carp
		virtual/perl-File-Spec
		virtual/perl-IO
		>=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_test() {
	perl_rm_files 't/99-pod_spelling.t' t/author-*.t
	perl-module_src_test
}