root/trunk/plagger/Makefile.PL

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

use XML::RSS::Liberal if installed. Fixes #109

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.18),
45         recommends('XML::RSS::Liberal'),
46     ],
47     'Publish::Gmail' => [
48         -default => 1,
49         recommends('MIME::Lite'),
50     ],
51     'Aggregator::Xango' => [
52         -default => 0,
53         recommends('POE'),
54         recommends('Xango', 1.02), # avoid prep_request bug
55         recommends('XML::Feed', 0.08),
56         recommends('Cache::FastMmap'),
57         recommends('POE::Component::Client::DNS'),
58         recommends('POE::Component::Client::HTTP'),
59     ],
60     'SmartFeed::Mixi' => [
61         -default => 0,
62         recommends('WWW::Mixi'),
63     ],
64     'Publish::PDF' => [
65         -default => 0,
66         recommends('PDF::FromHTML'),
67     ],
68     'Publish::Delicious' => [
69         -default => 0,
70         recommends('Net::Delicious'),
71     ],
72     'Notify::IRC' => [
73         -default => 0,
74         recommends('POE::Component::IRC'),
75         recommends('POE::Component::IKC::Client'),
76     ],
77     'Filter::URLBL' => [
78         -default => 0,
79         recommends('Net::DNS'),
80     ],
81     'Publish::JavaScript' => [
82         -default => 0,
83         recommends('Template::Plugin::JavaScript'),
84     ],
85     'Subscription::HatenaRSS' => [
86         -default => 0,
87         recommends('WWW::Mechanize'),
88     ],
89     'Filter::HatenaBookmarkUsersCount' => [
90         -default => 0,
91         recommends('XMLRPC::Lite'),
92     ],
93     'Filter::HatenaDiaryKeywordLink' => [
94         -default => 0,
95         recommends('XMLRPC::Lite'),
96     ],
97     'Publish::Feed' => [
98         -default => 1,
99         recommends('XML::Feed', 0.08),
100         recommends('XML::RSS::LibXML', 0.18),
101     ],
102     'Filter::ResolveRelativeLink' => [
103         -default => 0,
104         recommends('HTML::ResolveLink', 0.02),
105     ],
106     'Filter::BulkfeedsTerms' => [
107         -default => 0,
108         recommends('XML::Simple'),
109     ],
110     'Publish::HatenaBookmark' => [
111         -default => 0,
112         recommends('XML::Atom'),
113     ],
114     'Publish::Playlog' => [
115         -default => 0,
116         recommends('XML::Atom', 0.13),
117     ],
118     'Publish::Planet' => [
119         -default => 0,
120         recommends('HTML::Tidy'),
121         recommends('HTML::Scrubber'),
122     ],
123     'Publish::CSV' => [
124         -default => 0,
125         recommends('Text::CSV_PP'),
126     ],
127     'Filter::HatenaFormat' => [
128         -default => 0,
129         recommends('Text::Hatena'),
130     ],
131     'Publish::MT' => [
132         -default => 0,
133         recommends('Net::MovableType'),
134     ],
135     'CustomFeed::FlickrSearch' => [
136         -default => 0,
137         recommends('XML::LibXML'),
138         recommends('Flickr::API'),
139         recommends('DateTime::Format::Epoch'),
140     ],
141 );
142
143 if ($^O eq 'Darwin') {
144     features(
145         'Publish::Spotlight' => [
146             -default => 1,
147             recommends('Mac::Glue'),
148         ],
149     );
150
151 install_script('bin/spotlight_comment.scpt');
152
153 } elsif ($^O eq 'MSWin32') {
154     features(
155         'Publish::Speech' => [
156             -default => 0,
157             recommends('Win32::OLE'),
158             recommends('Win32::SAPI4'),
159             recommends('Locale::Country'),
160             recommends('Locale::Language'),
161         ],
162         'Notify::Eject' => [
163             -default => 0,
164             recommends('Win32::MCI::Basic'),
165         ],
166     );
167 }
168
169 auto_include;
170 auto_install;
171 install_script('plagger');
172 install_script('bin/plagger-ircbot');
173 WriteAll;
Note: See TracBrowser for help on using the browser.