| 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' => 0.10); |
|---|
| 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.48); |
|---|
| 20 |
requires('URI::Fetch' => 0.06); |
|---|
| 21 |
requires('Cache::Cache' => 1.04); |
|---|
| 22 |
requires('Module::Pluggable::Fast'); |
|---|
| 23 |
requires('HTML::ResolveLink'); |
|---|
| 24 |
requires('Date::Parse'); |
|---|
| 25 |
requires('MIME::Types', 1.16); |
|---|
| 26 |
|
|---|
| 27 |
requires('XML::Feed', 0.08); |
|---|
| 28 |
requires('XML::LibXML'); |
|---|
| 29 |
requires('XML::Atom', 0.19); |
|---|
| 30 |
requires('XML::RSS::LibXML', 0.20), |
|---|
| 31 |
|
|---|
| 32 |
build_requires(Test::More => 0.42); |
|---|
| 33 |
|
|---|
| 34 |
features( |
|---|
| 35 |
'Better Encoding detection' => [ |
|---|
| 36 |
-default => 1, |
|---|
| 37 |
recommends('Encode::Detect'), |
|---|
| 38 |
], |
|---|
| 39 |
'POD Testing' => [ |
|---|
| 40 |
-default => 0, |
|---|
| 41 |
recommends('Test::Pod'), |
|---|
| 42 |
recommends('Test::Pod::Coverage'), |
|---|
| 43 |
], |
|---|
| 44 |
'Cookie sharing with Firefox' => [ |
|---|
| 45 |
-default => 0, |
|---|
| 46 |
recommends('HTTP::Cookies::Mozilla'), |
|---|
| 47 |
], |
|---|
| 48 |
'Liberal XML parsing' => [ |
|---|
| 49 |
-default => 1, |
|---|
| 50 |
recommends('XML::Liberal', 0.11), |
|---|
| 51 |
recommends('XML::RSS::Liberal'), |
|---|
| 52 |
], |
|---|
| 53 |
); |
|---|
| 54 |
|
|---|
| 55 |
features( |
|---|
| 56 |
'Subscription::Bloglines' => [ |
|---|
| 57 |
-default => 1, |
|---|
| 58 |
recommends('WebService::Bloglines', 0.11), |
|---|
| 59 |
], |
|---|
| 60 |
'Subscription::OPML' => [ |
|---|
| 61 |
-default => 1, |
|---|
| 62 |
recommends('XML::OPML'), |
|---|
| 63 |
], |
|---|
| 64 |
'Publish::Gmail' => [ |
|---|
| 65 |
-default => 1, |
|---|
| 66 |
recommends('Mail::Address'), |
|---|
| 67 |
recommends('MIME::Lite'), |
|---|
| 68 |
recommends('Net::SMTP::TLS'), |
|---|
| 69 |
], |
|---|
| 70 |
'Aggregator::Xango' => [ |
|---|
| 71 |
-default => 0, |
|---|
| 72 |
recommends('POE'), |
|---|
| 73 |
recommends('Xango', 1.04), |
|---|
| 74 |
recommends('Cache::FastMmap'), |
|---|
| 75 |
recommends('POE::Component::Client::DNS'), |
|---|
| 76 |
recommends('POE::Component::Client::HTTP'), |
|---|
| 77 |
], |
|---|
| 78 |
'CustomFeed::Mixi' => [ |
|---|
| 79 |
-default => 0, |
|---|
| 80 |
recommends('WWW::Mixi', 0.46), |
|---|
| 81 |
], |
|---|
| 82 |
'Publish::PDF' => [ |
|---|
| 83 |
-default => 0, |
|---|
| 84 |
recommends('PDF::FromHTML'), |
|---|
| 85 |
], |
|---|
| 86 |
'Publish::Delicious' => [ |
|---|
| 87 |
-default => 0, |
|---|
| 88 |
recommends('Net::Delicious'), |
|---|
| 89 |
], |
|---|
| 90 |
'Notify::IRC' => [ |
|---|
| 91 |
-default => 0, |
|---|
| 92 |
recommends('POE::Component::IRC'), |
|---|
| 93 |
recommends('POE::Component::IKC::Client'), |
|---|
| 94 |
], |
|---|
| 95 |
'Filter::URLBL' => [ |
|---|
| 96 |
-default => 0, |
|---|
| 97 |
recommends('Net::DNS'), |
|---|
| 98 |
], |
|---|
| 99 |
'Publish::JavaScript' => [ |
|---|
| 100 |
-default => 0, |
|---|
| 101 |
recommends('Template::Plugin::JavaScript'), |
|---|
| 102 |
], |
|---|
| 103 |
'Subscription::HatenaRSS' => [ |
|---|
| 104 |
-default => 0, |
|---|
| 105 |
recommends('WWW::Mechanize'), |
|---|
| 106 |
], |
|---|
| 107 |
'Filter::HatenaBookmarkUsersCount' => [ |
|---|
| 108 |
-default => 0, |
|---|
| 109 |
recommends('XMLRPC::Lite'), |
|---|
| 110 |
], |
|---|
| 111 |
'Filter::HatenaDiaryKeywordLink' => [ |
|---|
| 112 |
-default => 0, |
|---|
| 113 |
recommends('XMLRPC::Lite'), |
|---|
| 114 |
], |
|---|
| 115 |
'Filter::ResolveRelativeLink' => [ |
|---|
| 116 |
-default => 0, |
|---|
| 117 |
recommends('HTML::ResolveLink', 0.02), |
|---|
| 118 |
], |
|---|
| 119 |
'Publish::Planet' => [ |
|---|
| 120 |
-default => 0, |
|---|
| 121 |
recommends('HTML::Tidy'), |
|---|
| 122 |
recommends('HTML::Scrubber'), |
|---|
| 123 |
recommends('File::Copy::Recursive'), |
|---|
| 124 |
], |
|---|
| 125 |
'Publish::CSV' => [ |
|---|
| 126 |
-default => 0, |
|---|
| 127 |
recommends('Text::CSV_PP'), |
|---|
| 128 |
], |
|---|
| 129 |
'Filter::HatenaFormat' => [ |
|---|
| 130 |
-default => 0, |
|---|
| 131 |
recommends('Text::Hatena'), |
|---|
| 132 |
], |
|---|
| 133 |
'Publish::MT' => [ |
|---|
| 134 |
-default => 0, |
|---|
| 135 |
recommends('Net::MovableType'), |
|---|
| 136 |
], |
|---|
| 137 |
'CustomFeed::FlickrSearch' => [ |
|---|
| 138 |
-default => 0, |
|---|
| 139 |
recommends('Flickr::API'), |
|---|
| 140 |
recommends('DateTime::Format::Epoch'), |
|---|
| 141 |
], |
|---|
| 142 |
'Filter::ImageInfo' => [ |
|---|
| 143 |
-default => 0, |
|---|
| 144 |
recommends('Image::Info'), |
|---|
| 145 |
], |
|---|
| 146 |
'Filter::Pipe' => [ |
|---|
| 147 |
-default => 0, |
|---|
| 148 |
recommends('IPC::Run'), |
|---|
| 149 |
], |
|---|
| 150 |
'Filter::RSSLiberalDateTime' => [ |
|---|
| 151 |
-default => 0, |
|---|
| 152 |
recommends('Date::Parse'), |
|---|
| 153 |
], |
|---|
| 154 |
'Filter::Emoticon' => [ |
|---|
| 155 |
-default => 0, |
|---|
| 156 |
recommends('Text::Emoticon'), |
|---|
| 157 |
], |
|---|
| 158 |
'Publish::Maildir' => [ |
|---|
| 159 |
-default => 0, |
|---|
| 160 |
recommends('MIME::Lite'), |
|---|
| 161 |
], |
|---|
| 162 |
'Publish::IMAP' => [ |
|---|
| 163 |
-default => 0, |
|---|
| 164 |
recommends('Mail::IMAPClient'), |
|---|
| 165 |
], |
|---|
| 166 |
'Filter::Profanity' => [ |
|---|
| 167 |
-default => 0, |
|---|
| 168 |
recommends('Regexp::Common::profanity_us'), |
|---|
| 169 |
], |
|---|
| 170 |
'Subscription::DBI' => [ |
|---|
| 171 |
-default => 0, |
|---|
| 172 |
recommends('DBIx::Class::Schema'), |
|---|
| 173 |
], |
|---|
| 174 |
'CustomFeed::SVNLog' => [ |
|---|
| 175 |
-default => 0, |
|---|
| 176 |
recommends('SVN::Core'), |
|---|
| 177 |
recommends('SVN::Client'), |
|---|
| 178 |
], |
|---|
| 179 |
'Filter::TTP' => [ |
|---|
| 180 |
-default => 0, |
|---|
| 181 |
recommends('URI::Find'), |
|---|
| 182 |
], |
|---|
| 183 |
'Filter::Romanize' => [ |
|---|
| 184 |
-default => 0, |
|---|
| 185 |
recommends('Text::Kakasi'), |
|---|
| 186 |
], |
|---|
| 187 |
'Rule::URLBL' => [ |
|---|
| 188 |
-default => 0, |
|---|
| 189 |
recommends('Net::DNS'), |
|---|
| 190 |
], |
|---|
| 191 |
'Subscription::LivedoorReader' => [ |
|---|
| 192 |
-default => 0, |
|---|
| 193 |
recommends('JSON::Syck', 0.10), |
|---|
| 194 |
recommends('WWW::Mechanize'), |
|---|
| 195 |
], |
|---|
| 196 |
'Search::Estraier' => [ |
|---|
| 197 |
-default => 0, |
|---|
| 198 |
recommends('Search::Estraier'), |
|---|
| 199 |
], |
|---|
| 200 |
'Subscription::XOXO' => [ |
|---|
| 201 |
-default => 0, |
|---|
| 202 |
recommends('HTML::TreeBuilder::XPath'), |
|---|
| 203 |
], |
|---|
| 204 |
'Publish::2chdat' => [ |
|---|
| 205 |
-default => 0, |
|---|
| 206 |
recommends('DateTime::Locale'), |
|---|
| 207 |
], |
|---|
| 208 |
'Subscription::PlanetINI' => [ |
|---|
| 209 |
-default => 0, |
|---|
| 210 |
recommends('Config::INI::Simple'), |
|---|
| 211 |
], |
|---|
| 212 |
'Notify::UpdatePing' => [ |
|---|
| 213 |
-default => 0, |
|---|
| 214 |
recommends('XMLRPC::Lite'), |
|---|
| 215 |
], |
|---|
| 216 |
'Publish::PalmDoc' => [ |
|---|
| 217 |
-default => 0, |
|---|
| 218 |
recommends('Palm::PalmDoc'), |
|---|
| 219 |
], |
|---|
| 220 |
'Subscription::FOAF' => [ |
|---|
| 221 |
-default => 0, |
|---|
| 222 |
recommends('XML::FOAF'), |
|---|
| 223 |
], |
|---|
| 224 |
'Notify::Beep' => [ |
|---|
| 225 |
-default => 0, |
|---|
| 226 |
recommends('Audio::Beep'), |
|---|
| 227 |
], |
|---|
| 228 |
); |
|---|
| 229 |
|
|---|
| 230 |
if ($^O eq 'darwin') { |
|---|
| 231 |
features( |
|---|
| 232 |
'Cookie sharing with Safari' => [ |
|---|
| 233 |
-default => 0, |
|---|
| 234 |
recommends('HTTP::Cookies::Safari'), |
|---|
| 235 |
], |
|---|
| 236 |
'Search::Spotlight' => [ |
|---|
| 237 |
-default => 1, |
|---|
| 238 |
recommends('Mac::Glue'), |
|---|
| 239 |
], |
|---|
| 240 |
'Publish::Speech' => [ |
|---|
| 241 |
-default => 0, |
|---|
| 242 |
recommends('Mac::Speech'), |
|---|
| 243 |
], |
|---|
| 244 |
'Subscription::Bookmarks' => [ |
|---|
| 245 |
-default => 0, |
|---|
| 246 |
recommends('Mac::Tie::PList'), |
|---|
| 247 |
], |
|---|
| 248 |
); |
|---|
| 249 |
|
|---|
| 250 |
install_script('bin/spotlight_comment.scpt'); |
|---|
| 251 |
|
|---|
| 252 |
} elsif ($^O eq 'MSWin32') { |
|---|
| 253 |
features( |
|---|
| 254 |
'Cookie sharing with MSIE' => [ |
|---|
| 255 |
-default => 0, |
|---|
| 256 |
recommends('HTTP::Cookies::Microsoft'), |
|---|
| 257 |
], |
|---|
| 258 |
'Publish::Speech' => [ |
|---|
| 259 |
-default => 0, |
|---|
| 260 |
recommends('Win32::OLE'), |
|---|
| 261 |
recommends('Win32::SAPI4'), |
|---|
| 262 |
recommends('Locale::Country'), |
|---|
| 263 |
recommends('Locale::Language'), |
|---|
| 264 |
], |
|---|
| 265 |
'Notify::Eject' => [ |
|---|
| 266 |
-default => 0, |
|---|
| 267 |
recommends('Win32::MCI::Basic'), |
|---|
| 268 |
], |
|---|
| 269 |
'Subscription::Bookmarks' => [ |
|---|
| 270 |
-default => 0, |
|---|
| 271 |
recommends('Win32::IEFavorites', 0.03), |
|---|
| 272 |
recommends('Win32::Locale'), |
|---|
| 273 |
], |
|---|
| 274 |
); |
|---|
| 275 |
} |
|---|
| 276 |
|
|---|
| 277 |
tests 't/*.t t/*/*.t t/*/*/*.t'; |
|---|
| 278 |
|
|---|
| 279 |
auto_include; |
|---|
| 280 |
auto_install; |
|---|
| 281 |
install_script('plagger'); |
|---|
| 282 |
install_script('bin/plagger-ircbot'); |
|---|
| 283 |
WriteAll; |
|---|