root/trunk/plagger/Makefile.PL

Revision 1309 (checked in by miyagawa, 14 years ago)

bump up XML::Feed requirement to generate Atom 1.0 by default

Line 
1 use strict;
2 use inc::Module::Install;
3
4 name('Plagger');
5 all_from('lib/Plagger.pm');
6
7 requires('Class::Accessor::Fast');
8 requires('File::Find::Rule');
9 requires('UNIVERSAL::require' => 0.10);
10 requires('Template', 2.13);
11 requires('Template::Provider::Encoding' => 0.04);
12 requires('YAML' => 0.39);
13 requires('Text::Tags');
14 requires('DateTime' => 0.29);
15 requires('DateTime::Format::Mail');
16 requires('DateTime::Format::W3CDTF');
17 requires('DateTime::Format::Strptime');
18 requires('Digest::MD5');
19 requires('LWP');
20 requires('HTML::Parser' => 3.51);
21 requires('URI::Fetch' => 0.071);
22 requires('Cache::Cache' => 1.04);
23 requires('Module::Pluggable::Fast');
24 requires('HTML::ResolveLink');
25 requires('Date::Parse');
26 requires('MIME::Types', 1.16);
27 requires('Net::DNS');
28
29 requires('XML::Feed', 0.12);
30 requires('XML::LibXML');
31 requires('XML::Atom', 0.19);
32 requires('XML::RSS::LibXML', 0.20);
33 requires('Encode', 2.10);
34 requires('Term::Encoding');
35 requires('File::HomeDir');
36
37 build_requires('YAML');
38 build_requires('Test::More', 0.42);
39 build_requires('Test::Base', 0.52);
40
41 features(
42     'Better Encoding detection' => [
43         -default => 1,
44         recommends('Encode::Detect'),
45     ],
46     'POD Testing' => [
47         -default => 0,
48         recommends('Test::Pod'),
49         recommends('Test::Pod::Coverage'),
50     ],
51     'Cookie sharing with Firefox' => [
52         -default => 0,
53         recommends('HTTP::Cookies::Mozilla'),
54     ],
55     'Liberal XML parsing' => [
56         -default => 1,
57         recommends('XML::Liberal', 0.13),
58         recommends('XML::RSS::Liberal'),
59     ],
60     'XPath support in Subscription and Feed Upgrader' => [
61         -default => 1,
62         recommends('HTML::TreeBuilder::XPath'),
63     ],
64 );
65
66 require YAML;
67 require DirHandle;
68 require File::Spec;
69
70 my $dh = DirHandle->new("deps");
71 while (my $f = $dh->read) {
72     next unless $f =~ /\.yaml$/;
73     my $meta = YAML::LoadFile( File::Spec->catfile("deps", $f) );
74
75     if (!$meta->{platform} || $meta->{platform} eq $^O) {
76         features(
77             $meta->{name}, [
78                 -default => $meta->{default},
79                 map recommends($_ => $meta->{depends}->{$_}), keys %{$meta->{depends}},
80             ],
81         );
82     }
83 }
84
85 tests 't/*.t t/*/*.t t/*/*/*.t';
86
87 use_test_base;
88
89 auto_include;
90 auto_install;
91 install_script('plagger');
92 install_script('bin/plagger-ircbot');
93 WriteAll;
Note: See TracBrowser for help on using the browser.