root/trunk/plagger/Makefile.PL

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

simplification

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