-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile.PL
63 lines (52 loc) · 1.76 KB
/
Makefile.PL
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
use inc::Module::Install;
version_from 'lib/Net/Twitter/Core.pm';
perl_version_from 'lib/Net/Twitter/Core.pm';
if ( $Module::Install::AUTHOR ) {
system $^X, "src/build.pl", version, 'src/net-twitter-pod.tt2', 'lib/Net/Twitter.pod';
system 'pod2text lib/Net/Twitter.pod > README';
}
name 'Net-Twitter';
all_from 'lib/Net/Twitter.pod';
# core
requires 'Carp';
requires 'Digest::SHA';
requires 'Net::Netrc';
requires 'Scalar::Util';
# CPAN
requires 'Data::Visitor::Callback';
requires 'DateTime';
requires 'DateTime::Format::Strptime';
requires 'HTML::Entities';
requires 'HTTP::Request::Common';
requires 'JSON::Any' => 1.21;
requires 'LWP::UserAgent' => 2.032;
requires 'Moose' => 0.85;
requires 'Moose::Exporter';
requires 'Moose::Role';
requires 'MooseX::AttributeHelpers';
requires 'MooseX::MultiInitArg';
requires 'namespace::autoclean';
requires 'Net::OAuth' => 0.16;
requires 'URI' => 1.40;
requires 'URI::Escape';
# Don't rely on the JSON::Any requirement to pull in a suitable JSON backend.
# The user may already have JSON::Any installed, but since removed all valid
# providers. (Yes, this seems to have happened in the wild.)
sub has_json_handler () {
my @order = qw/JSON::XS JSON/;
for my $provider ( @order ) {
eval "require $provider";
return 1 unless $@;
}
return;
}
has_json_handler || requires JSON => '2.02';
no_index directory => 'src';
no_index directory => 'examples';
# resources
homepage 'http://github.com/semifor/Net-Twitter';
bugtracker 'http://rt.cpan.org/Public/Dist/Display.html?Name=Net-Twitter';
auto_set_repository;
auto_manifest;
auto_install;
WriteAll;