root/trunk/plagger/Makefile.PL

Revision 341 (checked in by miyagawa, 15 years ago)

recommends 0.06 now

Line 
1 use inc::Module::Install;
2
3 name('Plagger');
4 all_from('lib/Plagger.pm');
5
6 requires('Class::Accessor::Fast');
7 requires('File::Find::Rule');
8 requires('UNIVERSAL::require');
9 requires('Template');
10 requires('Template::Provider::Encoding' => 0.04);
11 requires('YAML' => 0.39);
12 requires('Text::Tags');
13 requires('DateTime' => 0.29);
14 requires('DateTime::Format::Mail');
15 requires('DateTime::Format::W3CDTF');
16 requires('DateTime::Format::Strptime');
17 requires('Digest::MD5');
18 requires('LWP');
19 requires('HTML::Parser' => 3.40);
20 requires('URI::Fetch' => 0.05);
21 requires('Cache::Cache' => 1.04);
22
23 build_requires(Test::More => 0.42);
24
25 features(
26     'POD Testing' => [
27         -default => 0,
28         recommends('Test::Pod'),
29         recommends('Test::Pod::Coverage'),
30     ],
31     'Subscription::Bloglines' => [
32         -default => 1,
33         recommends('WebService::Bloglines', 0.11),
34         recommends('XML::Liberal', 0.06),
35     ],
36     'Subscription::OPML' => [
37         -default => 1,
38         recommends('XML::OPML'),
39     ],
40     'Aggregator::Simple' => [
41         -default => 1,
42         recommends('XML::Feed', 0.08),
43         recommends('XML::Atom'),
44         recommends('XML::RSS::LibXML', 0.17),
45     ],
46     'Publish::Gmail' => [
47         -default => 1,
48         recommends('MIME::Lite'),
49     ],
50     'Aggregator::Xango' => [
51         -default => 0,
52         recommends('POE'),
53         recommends('Xango', 1.02), # avoid prep_request bug
54         recommends('XML::Feed', 0.08),
55         recommends('Cache::FastMmap'),
56         recommends('POE::Component::Client::DNS'),
57         recommends('POE::Component::Client::HTTP'),
58     ],
59     'SmartFeed::Mixi' => [
60         -default => 0,
61         recommends('WWW::Mixi'),
62     ],
63     'Publish::PDF' => [
64         -default => 0,
65         recommends('PDF::FromHTML'),
66     ],
67     'Publish::Delicious' => [
68         -default => 0,
69         recommends('Net::Delicious'),
70     ],
71     'Notify::IRC' => [
72         -default => 0,
73         recommends('POE::Component::IRC'),
74         recommends('POE::Component::IKC::Client'),
75     ],
76     'Filter::URLBL' => [
77         -default => 0,
78         recommends('Net::DNS'),
79     ],
80     'Publish::JavaScript' => [
81         -default => 0,
82         recommends('Template::Plugin::JavaScript'),
83     ],
84     'Subscription::HatenaRSS' => [
85         -default => 0,
86         recommends('WWW::Mechanize'),
87     ],
88     'Filter::HatenaBookmarkUsersCount' => [
89         -default => 0,
90         recommends('XMLRPC::Lite'),
91     ],
92     'Filter::HatenaDiaryKeywordLink' => [
93         -default => 0,
94         recommends('XMLRPC::Lite'),
95     ],
96     'Publish::Feed' => [
97         -default => 1,
98         recommends('XML::Feed', 0.08),
99         recommends('XML::RSS::LibXML', 0.17),
100     ],
101     'Filter::ResolveRelativeLink' => [
102         -default => 0,
103         recommends('HTML::ResolveLink', 0.02),
104     ],
105     'Filter::BulkfeedsTerms' => [
106         -default => 0,
107         recommends('XML::Simple'),
108     ],
109     'Publish::HatenaBookmark' => [
110         -default => 0,
111         recommends('XML::Atom'),
112     ],
113     'Publish::Playlog' => [
114         -default => 0,
115         recommends('XML::Atom', 0.13),
116     ],
117     'Publish::Planet' => [
118         -default => 0,
119         recommends('HTML::Tidy'),
120         recommends('HTML::Scrubber'),
121     ],
122     'Publish::CSV' => [
123         -default => 0,
124         recommends('Text::CSV_PP'),
125     ],
126     'Filter::HatenaFormat' => [
127         -default => 0,
128         recommends('Text::Hatena'),
129     ],
130     'Publish::MT' => [
131         -default => 0,
132         recommends('Net::MovableType'),
133     ],
134     'CustomFeed::FlickrSearch' => [
135         -default => 0,
136         recommends('XML::LibXML'),
137         recommends('Flickr::API'),
138         recommends('DateTime::Format::Epoch'),
139     ],
140 );
141
142 if ($^O eq 'Darwin') {
143     features(
144         'Publish::Spotlight' => [
145             -default => 1,
146             recommends('Mac::Glue'),
147         ],
148     );
149
150 install_script('bin/spotlight_comment.scpt');
151
152 } elsif ($^O eq 'MSWin32') {
153     features(
154         'Publish::Speech' => [
155             -default => 0,
156             recommends('Win32::OLE'),
157             recommends('Win32::SAPI4'),
158             recommends('Locale::Country'),
159             recommends('Locale::Language'),
160         ],
161         'Notify::Eject' => [
162             -default => 0,
163             recommends('Win32::MCI::Basic'),
164         ],
165     );
166 }
167
168 auto_include;
169 auto_install;
170 install_script('plagger');
171 install_script('bin/plagger-ircbot');
172 WriteAll;
Note: See TracBrowser for help on using the browser.