aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-Plagger/Makefile
blob: 5456e592a23c823418132c3d46efe05644a35d29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
# Created by: sumikawa@FreeBSD.org
# $FreeBSD$

PORTNAME=   Plagger
PORTVERSION=    0.7.17
PORTREVISION=   4
CATEGORIES= textproc perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:MIYAGAWA
PKGNAMEPREFIX=  p5-

MAINTAINER= sumikawa@FreeBSD.org
COMMENT=    Pluggable RSS/Atom feed aggregator written in Perl

BUILD_DEPENDS=  p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \
        p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
        p5-DateTime-TimeZone>=0:${PORTSDIR}/devel/p5-DateTime-TimeZone \
        p5-DateTime-Locale>=0:${PORTSDIR}/devel/p5-DateTime-Locale \
        p5-DateTime-Format-Mail>=0:${PORTSDIR}/devel/p5-DateTime-Format-Mail \
        p5-DateTime-Format-Strptime>=0:${PORTSDIR}/devel/p5-DateTime-Format-Strptime \
        p5-DateTime-Format-W3CDTF>=0:${PORTSDIR}/devel/p5-DateTime-Format-W3CDTF \
        p5-Cache>=0:${PORTSDIR}/devel/p5-Cache \
        p5-Cache-Cache>=0:${PORTSDIR}/devel/p5-Cache-Cache \
        p5-File-Find-Rule>=0:${PORTSDIR}/devel/p5-File-Find-Rule \
        p5-File-HomeDir>=0:${PORTSDIR}/devel/p5-File-HomeDir \
        p5-Module-Install>=0:${PORTSDIR}/devel/p5-Module-Install \
        p5-Module-Pluggable-Fast>=0:${PORTSDIR}/devel/p5-Module-Pluggable-Fast \
        p5-Term-Encoding>=0:${PORTSDIR}/devel/p5-Term-Encoding \
        p5-UNIVERSAL-require>=0:${PORTSDIR}/devel/p5-UNIVERSAL-require \
        p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
        p5-MIME-Types>=0:${PORTSDIR}/mail/p5-MIME-Types \
        p5-Text-Tags>=0:${PORTSDIR}/textproc/p5-Text-Tags \
        p5-XML-Feed>=0:${PORTSDIR}/textproc/p5-XML-Feed \
        p5-XML-RSS-LibXML>=0:${PORTSDIR}/textproc/p5-XML-RSS-LibXML \
        p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \
        p5-Template-Provider-Encoding>=0:${PORTSDIR}/www/p5-Template-Provider-Encoding \
        p5-HTML-ResolveLink>=0:${PORTSDIR}/www/p5-HTML-ResolveLink \
        p5-URI-Fetch>=0:${PORTSDIR}/www/p5-URI-Fetch \
        p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML

USES=       perl5
USE_PERL5=  configure


OPTIONS_DEFINE= BETTERENCODING PODTESTING COOKIESHARING LIBERALXML XPATH BETTERHTML PRSJPNDATE \
        PRSJPNDATE PUBLISHEXCEL FILTERPIPE PUBLISHPLANET PUBLISHCSV FILDEGYT AUTHORNAME \
        GUESSLANG GUESSTZ HTMLTIDY PUBLISHMT PUBSERLZR PUBICAL ROMANIZE JAVASCRIPT \
        EMOTICON FILHATENA FILHATKTAG RULEFRESH SUBSCOPML HATENABKMK PALMDOC PUBLISHSWF \
        SUBSCRDBI NOTIFYBEEP FILTERPPT KINOSEARCH PUBLISHGMAIL PUBDELICIOUS ESTRAIER \
        SRCHGREP PUBJSON FILSPAMASSN PROFANITY HATENARSS SUBSCRFOAF NOTIFYIRC HATENADIARY \
        LIVEDOOR PINGSERVER IMAGEINFO FILMRKDWN PUBLISHIMAP PUBLISHPDF BLOGLINES BABELFISH \
        CUSFEEDMIXI CUSTOMSVNLOG NTFYNETSEND FILHTMLSCRB PLANETINI SUMMARYENG SUMJPN SUMTEXTORG \
        DOCS EXAMPLES
BETTERENCODING_DESC=    Better Encoding detection Support
PODTESTINGPOD_DESC= Testing Support
COOKIESHARING_DESC= Cookie sharing with Firefox Support
LIBERALXML_DESC=    Liberal XML parsing Support
XPATH_DESC= XPath Support
BETTERHTML_DESC=    Better html to text formatter
PRSJPNDATE_DESC=    Parse Japanese datetime format
PUBLISHEXCEL_DESC=  Publish::Excel Support
FILTERPIPE_DESC=    Filter::Pipe Support
PUBLISHPLANET_DESC= Publish::Planet Support
PUBLISHCSV_DESC=    Publish::CSV Support
FILDEGYT_DESC=  Filter-DegradeYouTube
AUTHORNAME_DESC=    Filter::ExtractAuthorName Support
GUESSLANG_DESC= Filter::GuessLanguage Support
GUESSTZ_DESC=   Filter::GuessTimeZoneByDomain Support
HTMLTIDY_DESC=  Filter::HTMLTidy Support
PUBLISHMT_DESC= Publish::MT Support
PUBSERLZR_DESC= Publish-Serializer Support
PUBICAL_DESC=   Publish::iCal Support
ROMANIZE_DESC=  Filter::Romanize Support
JAVASCRIPT_DESC=    Publish::JavaScript Support
EMOTICON_DESC=  Filter::Emoticon Support
FILHATENA_DESC= Filter::HatenaFormat Support
FILHATKTAG_DESC=    Filter::HatenaKeywordTag
RULEFRESH_DESC= Rule::Fresh Support
SUBSCOPML_DESC= Subscription::OPML Support
FLICKRSEARCH_DESC=  CustomFeed::FlickrSearch Support
HATENABKMK_DESC=    Filter::HatenaBookmarkUsersCount Support
PALMDOC_DESC=   Publish::PalmDoc Support
PUBLISHSWF_DESC=    Publish::SWF Support
SUBSCRDBI_DESC= Subscription::DBI Support
NOTIFYBEEP_DESC=    Notify::Beep Support
FILTERPPT_DESC= Filter::TTP Support
KINOSEARCH_DESC=    Search::KinoSearch Support
PUBLISHGMAIL_DESC=  Publish::Gmail Support
PUBDELICIOUS_DESC=  Publish::Delicious Support
ESTRAIER_DESC=  Search::Estraier Support
SRCHGREP_DESC=  Search::Grep
PUBJSON_DESC=   Publish::JSON Support
FILSPAMASSN_DESC=   Filter-SpamAssassin Support
PROFANITY_DESC= Filter::Profanity Support
HATENARSS_DESC= Subscription::HatenaRSS Support
SUBSCRFOAF_DESC=    Subscription::FOAF Support
NOTIFYIRC_DESC= Notify::IRC Support
HATENADIARY_DESC=   Filter::HatenaDiaryKeywordLink Support
LIVEDOOR_DESC=  Subscription::LivedoorReader Support
PINGSERVER_DESC=    Subscription::PingServer Support
IMAGEINFO_DESC= Filter::ImageInfo Support
FILMRKDWN_DESC= Filter::Markdown Support
PUBLISHIMAP_DESC=   Publish::IMAP Support
PUBLISHPDF_DESC=    Publish::PDF Support
BLOGLINES_DESC= Subscription::Bloglines Support
BABELFISH_DESC= Filter::Babelfish Support
CUSFEEDMIXI_DESC=   CustomFeed::Mixi Support
CUSTOMSVNLOG_DESC=  CustomFeed::SVNLog Support
NTFYNETSEND_DESC=   Notify::NetSend Support
FILHTMLSCRB_DESC=   Filter::HTMLScrubber Support
PLANETINI_DESC= Subscription::PlanetINI Support
SUMMARYENG_DESC=    Summary-English Support
SUMJPN_DESC=    Summary::Japanes
SUMTEXTORG_DESC=    Summary-TextOriginal Support

OPTIONS_DEFAULT=    BETTERENCODING LIBERALXML XPATH BETTERHTML PUBLISHPLANET GUESSTZ \
        EMOTICON RULEFRESH SUBSCOPML SUBSCRDBI PUBLISHGMAIL HATENARSS SUBSCRFOAF \
        LIVEDOOR PINGSERVER BLOGLINES FILHTMLSCRB PLANETINI

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MBETTERENCODING}
BUILD_DEPENDS+= p5-Encode-Detect>=0:${PORTSDIR}/converters/p5-Encode-Detect
.endif

.if ${PORT_OPTIONS:MPODTESTING}
BUILD_DEPENDS+= p5-Test-Pod>=0:${PORTSDIR}/devel/p5-Test-Pod \
        p5-Test-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Test-Pod-Coverage
.endif

.if ${PORT_OPTIONS:MCOOKIESHARING}
BUILD_DEPENDS+= p5-HTTP-Cookies-Mozilla>=0:${PORTSDIR}/www/p5-HTTP-Cookies-Mozilla
.endif

.if ${PORT_OPTIONS:MLIBERALXML}
BUILD_DEPENDS+= p5-XML-Liberal>=0:${PORTSDIR}/textproc/p5-XML-Liberal  \
        p5-XML-RSS-Liberal>=0:${PORTSDIR}/textproc/p5-XML-RSS-Liberal
.endif

.if ${PORT_OPTIONS:MXPATH}
BUILD_DEPENDS+= p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
        p5-HTML-Format>=0:${PORTSDIR}/textproc/p5-HTML-Format
.endif

.if ${PORT_OPTIONS:MBETTERHTML}
BUILD_DEPENDS+= p5-HTML-TreeBuilder-XPath>=0:${PORTSDIR}/www/p5-HTML-TreeBuilder-XPath
.endif

.if ${PORT_OPTIONS:MPRSJPNDATE}
BUILD_DEPENDS+= ja-p5-DateTime-Format-Japanese>=0:${PORTSDIR}/japanese/p5-DateTime-Format-Japanese
.endif

.if ${PORT_OPTIONS:MPUBLISHEXCEL}
BUILD_DEPENDS+= p5-Spreadsheet-WriteExcel>=0:${PORTSDIR}/textproc/p5-Spreadsheet-WriteExcel
.endif

.if ${PORT_OPTIONS:MFILTERPIPE}
BUILD_DEPENDS+= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run
.endif

.if ${PORT_OPTIONS:MPUBLISHPLANET}
BUILD_DEPENDS+= p5-File-Copy-Recursive>=0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
        p5-HTML-Scrubber>=0:${PORTSDIR}/www/p5-HTML-Scrubber
.endif

.if ${PORT_OPTIONS:MPUBLISHCSV}
BUILD_DEPENDS+= p5-Text-CSV>=0:${PORTSDIR}/textproc/p5-Text-CSV
.endif

.if ${PORT_OPTIONS:MFILDEGYT}
BUILD_DEPENDS+= p5-WebService-YouTube>=0:${PORTSDIR}/www/p5-WebService-YouTube
.endif

.if ${PORT_OPTIONS:MAUTHORNAME}
BUILD_DEPENDS+= p5-Email-Address>=0:${PORTSDIR}/mail/p5-Email-Address
.endif

.if ${PORT_OPTIONS:MGUESSLANG}
BUILD_DEPENDS+= p5-Lingua-ZH-HanDetect>=0:${PORTSDIR}/chinese/p5-Lingua-ZH-HanDetect \
        p5-Text-Language-Guess>=0:${PORTSDIR}/textproc/p5-Text-Language-Guess
.endif

.if ${PORT_OPTIONS:MGUESSTZ}
BUILD_DEPENDS+= p5-IP-Country>=0:${PORTSDIR}/net/p5-IP-Country
.endif

.if ${PORT_OPTIONS:MHTMLTIDY}
BUILD_DEPENDS+= p5-HTML-Tidy>=0:${PORTSDIR}/textproc/p5-HTML-Tidy
.endif

.if ${PORT_OPTIONS:MPUBLISHMT}
BUILD_DEPENDS+= p5-Net-MovableType>=0:${PORTSDIR}/net/p5-Net-MovableType
.endif

.if ${PORT_OPTIONS:MPUBSERLZR}
BUILD_DEPENDS+= p5-Data-Serializer>=0:${PORTSDIR}/devel/p5-Data-Serializer
.endif

.if ${PORT_OPTIONS:MPUBICAL}
BUILD_DEPENDS+= p5-Data-ICal>=0:${PORTSDIR}/deskutils/p5-Data-ICal \
        p5-DateTime-Format-ICal>=0:${PORTSDIR}/devel/p5-DateTime-Format-ICal
.endif

.if ${PORT_OPTIONS:MROMANIZE}
BUILD_DEPENDS+= ja-p5-Text-Kakasi>=0:${PORTSDIR}/japanese/p5-Text-Kakasi
.endif

.if ${PORT_OPTIONS:MJAVASCRIPT}
BUILD_DEPENDS+= p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript
.endif

.if ${PORT_OPTIONS:MEMOTICON}
BUILD_DEPENDS+= p5-Text-Emoticon>=0:${PORTSDIR}/textproc/p5-Text-Emoticon
.endif

.if ${PORT_OPTIONS:MFILHATENA}
BUILD_DEPENDS+= p5-Text-Hatena>=0:${PORTSDIR}/textproc/p5-Text-Hatena
.endif

.if ${PORT_OPTIONS:MFILHATKTAG}
BUILD_DEPENDS+= p5-Hatena-Keyword>=0:${PORTSDIR}/textproc/p5-Hatena-Keyword
.endif

.if ${PORT_OPTIONS:MRULEFRESH}
BUILD_DEPENDS+= p5-Time-Duration-Parse>=0:${PORTSDIR}/devel/p5-Time-Duration-Parse
.endif

.if ${PORT_OPTIONS:MSUBSCOPML}
BUILD_DEPENDS+= p5-XML-OPML>=0:${PORTSDIR}/textproc/p5-XML-OPML
.endif

.if ${PORT_OPTIONS:MFLICKRSEARCH}
BUILD_DEPENDS+= p5-Flickr-API>=0:${PORTSDIR}/www/p5-Flickr-API \
        p5-DateTime-Format-Epoch>=0:${PORTSDIR}/devel/p5-DateTime-Format-Epoch
.endif

.if ${PORT_OPTIONS:MHATENABKMK}
BUILD_DEPENDS+= p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
.endif

.if ${PORT_OPTIONS:MPALMDOC}
BUILD_DEPENDS+= p5-Palm-PalmDoc>=0:${PORTSDIR}/palm/p5-Palm-PalmDoc
.endif

.if ${PORT_OPTIONS:MPUBLISHSWF}
BUILD_DEPENDS+= p5-SWF-Builder>=0:${PORTSDIR}/graphics/p5-SWF-Builder \
        libtext-wrapi18n-perl>=0:${PORTSDIR}/textproc/libtext-wrapi18n-perl
.endif

.if ${PORT_OPTIONS:MSUBSCRDBI}
BUILD_DEPENDS+= p5-DBIx-Class>=0:${PORTSDIR}/databases/p5-DBIx-Class
.endif

.if ${PORT_OPTIONS:MNOTIFYBEEP}
BUILD_DEPENDS+= p5-Audio-Beep>=0:${PORTSDIR}/audio/p5-Audio-Beep
.endif

.if ${PORT_OPTIONS:MFILTERPPT}
BUILD_DEPENDS+= p5-URI-Find>=0:${PORTSDIR}/textproc/p5-URI-Find
.endif

.if ${PORT_OPTIONS:MKINOSEARCH}
BUILD_DEPENDS+= p5-KinoSearch1>=0:${PORTSDIR}/textproc/p5-KinoSearch1
.endif

.if ${PORT_OPTIONS:MPUBLISHGMAIL}
BUILD_DEPENDS+= p5-Net-SMTP-TLS>=0:${PORTSDIR}/mail/p5-Net-SMTP-TLS \
        p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite \
        p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools
.endif

.if ${PORT_OPTIONS:MPUBDELICIOUS}
BUILD_DEPENDS+= p5-Net-Delicious>=0:${PORTSDIR}/net/p5-Net-Delicious
.endif

.if ${PORT_OPTIONS:MESTRAIER}
BUILD_DEPENDS+= p5-Search-Estraier>=0:${PORTSDIR}/textproc/p5-Search-Estraier
.endif

.if ${PORT_OPTIONS:MSRCHGREP}
BUILD_DEPENDS+= p5-File-Grep>=0:${PORTSDIR}/devel/p5-File-Grep
.endif

.if ${PORT_OPTIONS:MPUBJSON}
BUILD_DEPENDS+= p5-YAML-Syck>=0:${PORTSDIR}/textproc/p5-YAML-Syck
.endif

.if ${PORT_OPTIONS:MFILSPAMASSN}
BUILD_DEPENDS+= p5-Mail-SpamAssassin>=0:${PORTSDIR}/mail/p5-Mail-SpamAssassin
.endif

.if ${PORT_OPTIONS:MPROFANITY}
BUILD_DEPENDS+= p5-Regexp-Common-profanity_us>=0:${PORTSDIR}/textproc/p5-Regexp-Common-profanity_us
.endif

.if ${PORT_OPTIONS:MHATENARSS}
BUILD_DEPENDS+= p5-WWW-Mechanize>=0:${PORTSDIR}/www/p5-WWW-Mechanize
.endif

.if ${PORT_OPTIONS:MSUBSCRFOAF}
BUILD_DEPENDS+= p5-XML-FOAF>=0:${PORTSDIR}/textproc/p5-XML-FOAF
.endif

.if ${PORT_OPTIONS:MNOTIFYIRC}
BUILD_DEPENDS+= p5-POE-Component-IRC>=0:${PORTSDIR}/irc/p5-POE-Component-IRC \
        p5-POE-Component-IKC>=0:${PORTSDIR}/devel/p5-POE-Component-IKC
.endif

.if ${PORT_OPTIONS:MHATENADIARY}
BUILD_DEPENDS+= p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
.endif

.if ${PORT_OPTIONS:MLIVEDOOR}
BUILD_DEPENDS+= p5-WWW-Mechanize>=0:${PORTSDIR}/www/p5-WWW-Mechanize \
        p5-YAML-Syck>=0:${PORTSDIR}/textproc/p5-YAML-Syck
.endif

.if ${PORT_OPTIONS:MPINGSERVER}
BUILD_DEPENDS+= p5-HTML-RSSAutodiscovery>=0:${PORTSDIR}/www/p5-HTML-RSSAutodiscovery
.endif

.if ${PORT_OPTIONS:MIMAGEINFO}
BUILD_DEPENDS+= p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info
.endif

.if ${PORT_OPTIONS:MFILMRKDWN}
BUILD_DEPENDS+= p5-Text-Markdown>=0:${PORTSDIR}/textproc/p5-Text-Markdown
.endif

.if ${PORT_OPTIONS:MPUBLISHIMAP}
BUILD_DEPENDS+= p5-Mail-IMAPClient>=0:${PORTSDIR}/mail/p5-Mail-IMAPClient
.endif

.if ${PORT_OPTIONS:MPUBLISHPDF}
BUILD_DEPENDS+= p5-PDF-FromHTML>=0:${PORTSDIR}/textproc/p5-PDF-FromHTML
.endif

.if ${PORT_OPTIONS:MBLOGLINES}
BUILD_DEPENDS+= p5-WebService-Bloglines>=0:${PORTSDIR}/www/p5-WebService-Bloglines
.endif

.if ${PORT_OPTIONS:MBABELFISH}
BUILD_DEPENDS+= p5-WWW-Babelfish>=0:${PORTSDIR}/www/p5-WWW-Babelfish
.endif

.if ${PORT_OPTIONS:MCUSFEEDMIXI}
BUILD_DEPENDS+= p5-WWW-Mixi>=0:${PORTSDIR}/www/p5-WWW-Mixi
.endif

.if ${PORT_OPTIONS:MCUSTOMSVNLOG}
BUILD_DEPENDS+= p5-subversion>=0:${PORTSDIR}/devel/p5-subversion
.endif

.if ${PORT_OPTIONS:MNTFYNETSEND}
BUILD_DEPENDS+= p5-Net-NetSend>=0:${PORTSDIR}/net-im/p5-Net-NetSend
.endif

.if ${PORT_OPTIONS:MFILHTMLSCRB}
BUILD_DEPENDS+= p5-HTML-Scrubber>=0:${PORTSDIR}/www/p5-HTML-Scrubber
.endif

.if ${PORT_OPTIONS:MPLANETINI}
BUILD_DEPENDS+= p5-Config-INI-Simple>=0:${PORTSDIR}/devel/p5-Config-INI-Simple
.endif

.if ${PORT_OPTIONS:MSUMMARYENG}
BUILD_DEPENDS+= p5-Lingua-EN-Summarize>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Summarize
.endif

.if ${PORT_OPTIONS:MSUMJPN}
BUILD_DEPENDS+= ja-p5-Lingua-JA-Summarize-Extract>=0:${PORTSDIR}/japanese/p5-Lingua-JA-Summarize-Extract
.endif

.if ${PORT_OPTIONS:MSUMTEXTORG}
BUILD_DEPENDS+= p5-Text-Original>=0:${PORTSDIR}/textproc/p5-Text-Original
.endif

RUN_DEPENDS:=   ${BUILD_DEPENDS}

MAN3=       Plagger.3 \
        Plagger::Cookies.3 \
        Plagger::Date.3 \
        Plagger::Plugin.3 \
        Plagger::Plugin::Aggregator::Null.3 \
        Plagger::Plugin::Aggregator::Simple.3 \
        Plagger::Plugin::Bundle::Defaults.3 \
        Plagger::Plugin::Bundle::Planet.3 \
        Plagger::Plugin::CustomFeed::2chSearch.3 \
        Plagger::Plugin::CustomFeed::AmazonAssociateReportJP.3 \
        Plagger::Plugin::CustomFeed::BloglinesCitations.3 \
        Plagger::Plugin::CustomFeed::Debug.3 \
        Plagger::Plugin::CustomFeed::FlickrSearch.3 \
        Plagger::Plugin::CustomFeed::Frepa.3 \
        Plagger::Plugin::CustomFeed::GoogleNews.3 \
        Plagger::Plugin::CustomFeed::Mailman.3 \
        Plagger::Plugin::CustomFeed::Mixi.3 \
        Plagger::Plugin::CustomFeed::MixiDiarySearch.3 \
        Plagger::Plugin::CustomFeed::POP3.3 \
        Plagger::Plugin::CustomFeed::PerlMonks.3 \
        Plagger::Plugin::CustomFeed::SVNLog.3 \
        Plagger::Plugin::CustomFeed::Script.3 \
        Plagger::Plugin::CustomFeed::Simple.3 \
        Plagger::Plugin::CustomFeed::YouTube.3 \
        Plagger::Plugin::CustomFeed::iTunesRecentPlay.3 \
        Plagger::Plugin::Filter::2chNewsokuTitle.3 \
        Plagger::Plugin::Filter::2chRSSContent.3 \
        Plagger::Plugin::Filter::AtomLinkRelated.3 \
        Plagger::Plugin::Filter::Babelfish.3 \
        Plagger::Plugin::Filter::Base.3 \
        Plagger::Plugin::Filter::BlogPet.3 \
        Plagger::Plugin::Filter::BloglinesContentNormalize.3 \
        Plagger::Plugin::Filter::BreakEntriesToFeeds.3 \
        Plagger::Plugin::Filter::BulkfeedsTerms.3 \
        Plagger::Plugin::Filter::CompositeFeed.3 \
        Plagger::Plugin::Filter::DegradeYouTube.3 \
        Plagger::Plugin::Filter::Delicious.3 \
        Plagger::Plugin::Filter::DeliciousFeedTags.3 \
        Plagger::Plugin::Filter::Emoticon.3 \
        Plagger::Plugin::Filter::EntryFullText.3 \
        Plagger::Plugin::Filter::ExtractAuthorName.3 \
        Plagger::Plugin::Filter::FeedBurnerPermalink.3 \
        Plagger::Plugin::Filter::FeedFlareStripper.3 \
        Plagger::Plugin::Filter::FetchEnclosure.3 \
        Plagger::Plugin::Filter::FetchEnclosure::Curl.3 \
        Plagger::Plugin::Filter::FetchEnclosure::ParallelUA.3 \
        Plagger::Plugin::Filter::FetchEnclosure::Wget.3 \
        Plagger::Plugin::Filter::FindEnclosures.3 \
        Plagger::Plugin::Filter::FloatingDateTime.3 \
        Plagger::Plugin::Filter::ForceTimeZone.3 \
        Plagger::Plugin::Filter::GuessLanguage.3 \
        Plagger::Plugin::Filter::GuessTimeZoneByDomain.3 \
        Plagger::Plugin::Filter::HEADEnclosureMetadata.3 \
        Plagger::Plugin::Filter::HTMLScrubber.3 \
        Plagger::Plugin::Filter::HTMLTidy.3 \
        Plagger::Plugin::Filter::HatenaBookmarkTag.3 \
        Plagger::Plugin::Filter::HatenaBookmarkUsersCount.3 \
        Plagger::Plugin::Filter::HatenaDiaryKeywordLink.3 \
        Plagger::Plugin::Filter::HatenaDiaryKeywordUnlink.3 \
        Plagger::Plugin::Filter::HatenaFormat.3 \
        Plagger::Plugin::Filter::HatenaKeywordTag.3 \
        Plagger::Plugin::Filter::ImageInfo.3 \
        Plagger::Plugin::Filter::Kansai.3 \
        Plagger::Plugin::Filter::LivedoorClipUsersCount.3 \
        Plagger::Plugin::Filter::LivedoorKeywordUnlink.3 \
        Plagger::Plugin::Filter::Markdown.3 \
        Plagger::Plugin::Filter::POPFile.3 \
        Plagger::Plugin::Filter::Pipe.3 \
        Plagger::Plugin::Filter::Profanity.3 \
        Plagger::Plugin::Filter::RSSLiberalDateTime.3 \
        Plagger::Plugin::Filter::RSSTimeZoneString.3 \
        Plagger::Plugin::Filter::Regexp.3 \
        Plagger::Plugin::Filter::ResolveRelativeLink.3 \
        Plagger::Plugin::Filter::RewriteEnclosureURL.3 \
        Plagger::Plugin::Filter::Rule.3 \
        Plagger::Plugin::Filter::SpamAssassin.3 \
        Plagger::Plugin::Filter::StripRSSAd.3 \
        Plagger::Plugin::Filter::StripTagsFromTitle.3 \
        Plagger::Plugin::Filter::TTP.3 \
        Plagger::Plugin::Filter::TagsToTitle.3 \
        Plagger::Plugin::Filter::Thumbnail.3 \
        Plagger::Plugin::Filter::TruePermalink.3 \
        Plagger::Plugin::Filter::UnicodeNormalize.3 \
        Plagger::Plugin::Filter::tDiaryComment.3 \
        Plagger::Plugin::Namespace::ApplePhotocast.3 \
        Plagger::Plugin::Namespace::HatenaFotolife.3 \
        Plagger::Plugin::Namespace::MediaRSS.3 \
        Plagger::Plugin::Notify::Audio.3 \
        Plagger::Plugin::Notify::Balloon.3 \
        Plagger::Plugin::Notify::Beep.3 \
        Plagger::Plugin::Notify::Campfire.3 \
        Plagger::Plugin::Notify::Command.3 \
        Plagger::Plugin::Notify::Eject.3 \
        Plagger::Plugin::Notify::Eject::darwin.3 \
        Plagger::Plugin::Notify::Eject::freebsd.3 \
        Plagger::Plugin::Notify::Eject::linux.3 \
        Plagger::Plugin::Notify::Eject::mswin32.3 \
        Plagger::Plugin::Notify::IRC.3 \
        Plagger::Plugin::Notify::MSAgent.3 \
        Plagger::Plugin::Notify::NetSend.3 \
        Plagger::Plugin::Notify::OpenBrowser.3 \
        Plagger::Plugin::Notify::OpenBrowser::FirefoxRemote.3 \
        Plagger::Plugin::Notify::SSTP.3 \
        Plagger::Plugin::Notify::Tiarra.3 \
        Plagger::Plugin::Notify::UpdatePing.3 \
        Plagger::Plugin::Publish::2chdat.3 \
        Plagger::Plugin::Publish::CSV.3 \
        Plagger::Plugin::Publish::Delicious.3 \
        Plagger::Plugin::Publish::Excel.3 \
        Plagger::Plugin::Publish::FOAFRoll.3 \
        Plagger::Plugin::Publish::Feed.3 \
        Plagger::Plugin::Publish::Gmail.3 \
        Plagger::Plugin::Publish::HatenaBookmark.3 \
        Plagger::Plugin::Publish::IMAP.3 \
        Plagger::Plugin::Publish::JSON.3 \
        Plagger::Plugin::Publish::JavaScript.3 \
        Plagger::Plugin::Publish::LivedoorClip.3 \
        Plagger::Plugin::Publish::MT.3 \
        Plagger::Plugin::Publish::MTWidget.3 \
        Plagger::Plugin::Publish::Maildir.3 \
        Plagger::Plugin::Publish::OPML.3 \
        Plagger::Plugin::Publish::OutlineText.3 \
        Plagger::Plugin::Publish::PDF.3 \
        Plagger::Plugin::Publish::PalmDoc.3 \
        Plagger::Plugin::Publish::Pipe.3 \
        Plagger::Plugin::Publish::Planet.3 \
        Plagger::Plugin::Publish::Playlog.3 \
        Plagger::Plugin::Publish::PowerPoint.3 \
        Plagger::Plugin::Publish::SWF.3 \
        Plagger::Plugin::Publish::Serializer.3 \
        Plagger::Plugin::Publish::Speech::MacOSX.3 \
        Plagger::Plugin::Publish::Takahashi.3 \
        Plagger::Plugin::Publish::iCal.3 \
        Plagger::Plugin::Search::Estraier.3 \
        Plagger::Plugin::Search::Grep.3 \
        Plagger::Plugin::Search::KinoSearch.3 \
        Plagger::Plugin::Search::Namazu.3 \
        Plagger::Plugin::Search::Rast.3 \
        Plagger::Plugin::Search::Spotlight.3 \
        Plagger::Plugin::Subscription::Bloglines.3 \
        Plagger::Plugin::Subscription::Bookmarks.3 \
        Plagger::Plugin::Subscription::Config.3 \
        Plagger::Plugin::Subscription::DBI.3 \
        Plagger::Plugin::Subscription::FOAF.3 \
        Plagger::Plugin::Subscription::Feed.3 \
        Plagger::Plugin::Subscription::File.3 \
        Plagger::Plugin::Subscription::HatenaGroup.3 \
        Plagger::Plugin::Subscription::HatenaRSS.3 \
        Plagger::Plugin::Subscription::LivedoorReader.3 \
        Plagger::Plugin::Subscription::OPML.3 \
        Plagger::Plugin::Subscription::Odeo.3 \
        Plagger::Plugin::Subscription::PingServer.3 \
        Plagger::Plugin::Subscription::Planet.3 \
        Plagger::Plugin::Subscription::PlanetINI.3 \
        Plagger::Plugin::Subscription::XOXO.3 \
        Plagger::Plugin::Subscription::XPath.3 \
        Plagger::Plugin::Summary::AppleScript.3 \
        Plagger::Plugin::Summary::Auto.3 \
        Plagger::Plugin::Summary::English.3 \
        Plagger::Plugin::Summary::GetSen.3 \
        Plagger::Plugin::Summary::HatenaBookmark.3 \
        Plagger::Plugin::Summary::Japanese.3 \
        Plagger::Plugin::Summary::Simple.3 \
        Plagger::Plugin::Summary::TextOriginal.3 \
        Plagger::Plugin::Summary::TrackbackRDF.3 \
        Plagger::Plugin::UserAgent::AuthenRequest.3 \
        Plagger::Plugin::UserAgent::RequestHeader.3 \
        Plagger::Plugin::Widget::BloglinesSubscription.3 \
        Plagger::Plugin::Widget::BulkfeedsSpamReport.3 \
        Plagger::Plugin::Widget::Delicious.3 \
        Plagger::Plugin::Widget::HatenaBookmarkUsersCount.3 \
        Plagger::Plugin::Widget::Simple.3 \
        Plagger::Rule::Deduped.3 \
        Plagger::Rule::Fresh.3 \
        Plagger::Rule::URLBL.3 \
        Plagger::Template.3

post-patch:
    @${REINPLACE_CMD} -i '' '/auto_install/d' ${WRKSRC}/Makefile.PL
    @${RM} ${WRKSRC}/lib/Plagger/Plugin/Publish/Feed.pm.orig

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.yaml ${EXAMPLESDIR}
.endif
    @${MKDIR} ${DATADIR}/assets
    (cd ${WRKSRC}/assets; ${TAR} cfz - . | ${TAR} zxf - -C ${DATADIR}/assets)

.include <bsd.port.post.mk>