-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.PL
1559 lines (1414 loc) · 57.7 KB
/
Makefile.PL
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
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/perl -w
# $Id$
use ExtUtils::MakeMaker;
use Config;
use File::Basename ();
use File::Find;
# Don't use ':config pass_through' because that requires Getopt::Long
# 2.24 or later, and we don't have a clean way to require that.
#
use Getopt::Long; Getopt::Long::Configure('pass_through');
# Suppress 'isn't numeric' warnings from MakeMaker - see
# <http://sourceforge.net/tracker/?func=detail&atid=424135&aid=870170&group_id=39046>.
#
$SIG{__WARN__} = sub {
for (my $msg = shift) {
$_ = "warning: something's wrong" if not defined;
warn $_
unless /Argument .+ isn.t numeric in numeric lt .+MakeMaker.pm/;
}
};
# ExtUtils::MakeMaker before 6.21 or so has a bug when PREFIX is not
# given explicitly -
# <http://article.gmane.org/gmane.comp.tv.xmltv.devel/3634>.
#
unless ($ExtUtils::MakeMaker::VERSION ge 6.21) {
if (not grep /^PREFIX=/, @ARGV) {
warn "You may want to explicitly give PREFIX to work around MakeMaker bugs.\n";
}
}
use strict;
sub test_module( $$ );
sub check_date_manip();
sub test_special( $$ );
sub targets( $ );
if ($] == 5.006) {
warn <<END
Some installations of perl 5.6.0 are buggy and crash while running
this script. If you get 'segmentation fault' below, please report it
to the xmltv-users mailing list so we can try to work around the bug.
At present the only known fix is to upgrade to a newer perl version
such as 5.6.1 or 5.8.3.
END
;
}
# A couple of undocumented options to help with building the Windows
# distribution even on hosts that don't have all the necessary
# modules. By default, we only warn if dependencies are missing.
# If --strict-deps is passed in, then the whole process fails.
#
my $opt_strictdeps = 0;
my $opt_yes = 0;
my $opt_default = 0;
my $opt_components;
my $opt_exclude;
GetOptions('strict-deps' => \$opt_strictdeps, # be strict about dependencies
yes => \$opt_yes, # answer yes to all questions
default => \$opt_default, # answer default to all questions
'components=s' => \$opt_components,
'exclude=s' => \$opt_exclude,
);
our $VERSION;
$VERSION = '0.5.65';
# Fragment of Makefile text to give the directory where files should
# be installed. The extra '.' in the middle of the path is to avoid
# beginning with '//', which means a network share on Cygwin.
#
my $location = '$(DESTDIR)/./$(PREFIX)';
our %extra_constants;
%extra_constants
= (INST_PLAINDOC => 'blib/doc',
INSTALLPLAINDOC => "$location/share/doc/xmltv-$::VERSION",
INST_SHARE => 'blib/share',
INSTALLSHARE => "$location/share/xmltv",
# Manual page constants, shouldn't really be needed, but work
# around bugs and make sure this stuff is the same across
# MakeMaker versions.
INSTALLMAN1DIR => "$location/share/man/man1",
INSTALLMAN3DIR => "$location/share/man/man3",
MAN3EXT => '3',
# Directory to install into when making Windows binary dist.
WINDOWS_DIST => "xmltv-$VERSION-win32",
VERSION => "$VERSION",
);
# The following lists of dependencies and files to be installed may
# get modified later depending on what the user chooses.
#
# Documentation files to be installed. This is a global variable
# because it is accessed by some code we add to MakeMaker.
#
our @docs;
@docs = qw(doc/COPYING doc/QuickStart doc/README.win32 README);
# Executables to be installed.
my @exes
= qw(filter/tv_augment_tz
filter/tv_extractinfo_en
filter/tv_extractinfo_ar
filter/tv_grep
filter/tv_sort
filter/tv_to_latex
filter/tv_to_text
filter/tv_to_potatoe
filter/tv_cat
filter/tv_split
filter/tv_imdb
filter/tv_remove_some_overlapping
filter/tv_count
filter/tv_merge
tools/tv_validate_grabber
tools/tv_validate_file
tools/tv_find_grabbers
);
# Libraries to be installed.
my %pm
= ('lib/XMLTV.pm' => '$(INST_LIBDIR)/XMLTV.pm',
'lib/TZ.pm' => '$(INST_LIBDIR)/XMLTV/TZ.pm',
'lib/Clumps.pm' => '$(INST_LIBDIR)/XMLTV/Clumps.pm',
'lib/Usage.pm' => '$(INST_LIBDIR)/XMLTV/Usage.pm',
'lib/Date.pm' => '$(INST_LIBDIR)/XMLTV/Date.pm',
'lib/Version.pm' => '$(INST_LIBDIR)/XMLTV/Version.pm',
'lib/Ask.pm' => '$(INST_LIBDIR)/XMLTV/Ask.pm',
'lib/Ask/Tk.pm' => '$(INST_LIBDIR)/XMLTV/Ask/Tk.pm',
'lib/Ask/Term.pm' => '$(INST_LIBDIR)/XMLTV/Ask/Term.pm',
'lib/GUI.pm' => '$(INST_LIBDIR)/XMLTV/GUI.pm',
'lib/ProgressBar.pm' => '$(INST_LIBDIR)/XMLTV/ProgressBar.pm',
'lib/ProgressBar/None.pm' => '$(INST_LIBDIR)/XMLTV/ProgressBar/None.pm',
'lib/ProgressBar/Term.pm' => '$(INST_LIBDIR)/XMLTV/ProgressBar/Term.pm',
'lib/ProgressBar/Tk.pm' => '$(INST_LIBDIR)/XMLTV/ProgressBar/Tk.pm',
'lib/Summarize.pm' => '$(INST_LIBDIR)/XMLTV/Summarize.pm',
'lib/Supplement.pm' => '$(INST_LIBDIR)/XMLTV/Supplement.pm',
'lib/IMDB.pm' => '$(INST_LIBDIR)/XMLTV/IMDB.pm',
'lib/Gunzip.pm' => '$(INST_LIBDIR)/XMLTV/Gunzip.pm',
'lib/Capabilities.pm' => '$(INST_LIBDIR)/XMLTV/Capabilities.pm',
'lib/Description.pm' => '$(INST_LIBDIR)/XMLTV/Description.pm',
'lib/Configure.pm' => '$(INST_LIBDIR)/XMLTV/Configure.pm',
'lib/Configure/Writer.pm' => '$(INST_LIBDIR)/XMLTV/Configure/Writer.pm',
'lib/Options.pm' => '$(INST_LIBDIR)/XMLTV/Options.pm',
'lib/ValidateFile.pm' => '$(INST_LIBDIR)/XMLTV/ValidateFile.pm',
'lib/ValidateGrabber.pm' => '$(INST_LIBDIR)/XMLTV/ValidateGrabber.pm',
'lib/PreferredMethod.pm' => '$(INST_LIBDIR)/XMLTV/PreferredMethod.pm',
'lib/Data/Recursive/Encode.pm' => '$(INST_LIBDIR)/XMLTV/Data/Recursive/Encode.pm',
'filter/Grep.pm' => '$(INST_LIBDIR)/XMLTV/Grep.pm',
'grab/Memoize.pm' => '$(INST_LIBDIR)/XMLTV/Memoize.pm',
'grab/Grab_XML.pm' => '$(INST_LIBDIR)/XMLTV/Grab_XML.pm',
'grab/DST.pm' => '$(INST_LIBDIR)/XMLTV/DST.pm',
'grab/Config_file.pm' => '$(INST_LIBDIR)/XMLTV/Config_file.pm',
'grab/Get_nice.pm' => '$(INST_LIBDIR)/XMLTV/Get_nice.pm',
'grab/Mode.pm' => '$(INST_LIBDIR)/XMLTV/Mode.pm',
);
# Modules required to install.
my %prereqs
= (
'LWP' => 5.65,
# XML::Parser is required by XML::Twig, but older versions have a
# bug when $SIG{__DIE__} is set (well, could be a perl bug, but
# anyway it doesn't appear with 2.34).
#
'XML::Parser' => 2.34,
'XML::Twig' => 3.10,
'Date::Manip' => 5.42,
'XML::Writer' => 0.600,
'Memoize' => 0,
'Storable' => 2.04,
'File::Slurp' => 0,
'XML::TreePP' => 0,
);
# Files which are run to generate source code.
my %pl_files = ('filter/tv_grep.PL' => 'filter/tv_grep',
'tools/tv_validate_file.PL' => 'tools/tv_validate_file',
'tools/tv_validate_grabber.PL' => 'tools/tv_validate_grabber',
'lib/XMLTV.pm.PL' => 'lib/XMLTV.pm',
'lib/Supplement.pm.PL' => 'lib/Supplement.pm',
);
# Some tools which are generated from .PL files need the share/
# directory passed as an extra argument.
#
my @need_share = ( 'tools/tv_validate_file',
'tools/tv_validate_grabber',
'lib/Supplement.pm',
);
# Files to be installed in the system-wide share/ directory.
my %share_files = ('xmltv.dtd' => 'xmltv.dtd',
'xmltv-lineups.xsd' => 'xmltv-lineups.xsd');
# Files which 'make clean' should remove, but doesn't by default, so
# we have to patch it.
#
my @to_clean = ('filter/tv_grep',
'tools/tv_validate_file',
'tools/tv_validate_grabber',
'lib/XMLTV.pm', 'lib/Supplement.pm');
# Extra dependencies to add to the Makefile.
my @deps = ('filter/tv_grep' => [ qw(filter/tv_grep.in pm_to_blib) ],
'tools/tv_validate_file' => [ qw(tools/tv_validate_file.in) ],
'tools/tv_validate_grabber' => [ qw(tools/tv_validate_grabber.in) ],
'lib/XMLTV.pm' => [ 'lib/XMLTV.pm.in' ],
'lib/Supplement.pm' => [ 'lib/Supplement.pm.in' ],
);
# Some grabbers which are generated from .PL files need the share/
# directory passed as an extra argument.
#
my @grab_need_share;
# 'Recommended but not required'. It isn't currently handled to have
# the same module in both sets.
#
my %recommended
= (
'Lingua::EN::Numbers::Ordinate' => 0,
'Lingua::Preferred' => '0.2.4',
'Term::ProgressBar' => 2.03,
'Compress::Zlib' => 0,
'Unicode::String' => 0,
);
# And Log::TraceMessages is 'suggested' but we don't warn about that.
if ($opt_yes) {
*ask = sub { print "$_[0] yes\n"; 1 };
}
elsif ($opt_default) {
*ask = sub { print "$_[0] $_[2]\n"; $_[2] };
}
else {
require 'lib/Ask/Term.pm';
*ask = \&XMLTV::Ask::Term::ask_boolean;
}
# Weird shit happens when you change things like PREFIX without
# rebuilding everything explicitly.
#
if (-e 'Makefile') {
warn <<END
There is already a Makefile. To avoid weird problems it is
recommended you run 'make distclean' to clear out old built files
before generating a new Makefile.
END
;
if (! ask(0, "Do you wish to continue anyway?", 0)) {
exit(1);
}
}
# Now prompt about how much to install. This is really only to
# reduce dependencies. In the long run things like tv_check can be
# spun off into separate projects.
#
my @opt_components
= (
{ name => 'tv_grab_ar',
blurb => 'Grabber for Argentina',
exes => [ 'grab/ar/tv_grab_ar' ],
prereqs => { 'HTML::TreeBuilder' => 0,
'HTML::Entities' => 0,
'HTTP::Cookies' => 0,
'LWP::UserAgent' => 0,
'JSON::PP' => 0,
'Date::Language' => 0, } },
# Disabled 2006-04-12 since it doesn't provide data anymore.
# { name => 'tv_grab_au',
# blurb => 'Grabber for Australia',
# exes => [ 'grab/au/tv_grab_au' ],
# deps => [ 'grab/au/tv_grab_au' => [ 'grab/au/tv_grab_au.in' ] ],
# pl_files => { 'grab/au/tv_grab_au.PL' => 'grab/au/tv_grab_au' },
# to_clean => [ 'grab/au/tv_grab_au' ],
# share_files => { 'grab/au/channel_ids' => 'tv_grab_au/channel_ids' },
# grab_need_share => [ 'au' ],
# },
# { name => 'tv_grab_br',
# blurb => 'Grabber for Brazil',
# exes => [ 'grab/br/tv_grab_br' ],
# prereqs => { 'HTML::TreeBuilder' => 0 ,
# 'HTML::Entities' => 1.27 , }
# },
# disabled because it broke due to site changes 2009-03-08
# { name => 'tv_grab_br_net',
# blurb => 'Grabber for Brazil NET Cable',
# exes => [ 'grab/br_net/tv_grab_br_net' ],
# prereqs => { 'WWW::Mechanize' => 1.16 ,
# 'HTTP::Cookies' => 1.39 , }
# },
# disabled since blocked by www.fernsehen.ch guys
# { name => 'tv_grab_ch',
# blurb => 'Grabber for Switzerland',
# exes => [ 'grab/ch/tv_grab_ch' ],
# deps => [ 'grab/ch/tv_grab_ch' => [ 'grab/ch/tv_grab_ch.in' ] ],
# pl_files => { 'grab/ch/tv_grab_ch.PL' => 'grab/ch/tv_grab_ch' },
# to_clean => [ 'grab/ch/tv_grab_ch' ],
# share_files => { 'grab/ch/channel_ids' => 'tv_grab_ch/channel_ids' },
# grab_need_share => [ 'ch' ],
# },
# disabled after ident string was blocked
# { name => 'tv_grab_ch_bluewin',
# blurb => 'Grabber for Switzerland',
# exes => [ 'grab/ch_bluewin/tv_grab_ch_bluewin' ],
# deps => [ 'grab/ch_bluewin/tv_grab_ch_bluewin'
# => [ 'grab/ch_bluewin/tv_grab_ch_bluewin.in' ] ],
# pl_files => { 'grab/ch_bluewin/tv_grab_ch_bluewin.PL'
# => 'grab/ch_bluewin/tv_grab_ch_bluewin' },
# to_clean => [ 'grab/ch_bluewin/tv_grab_ch_bluewin' ],
# share_files => { 'grab/ch_bluewin/channel_ids'
# => 'tv_grab_ch_bluewin/channel_ids' },
# grab_need_share => [ 'ch_bluewin' ],
# prereqs => { 'HTML::Entities' => 1.27,
# 'HTML::TreeBuilder' => 0 },
# },
{ name => 'tv_grab_ch_search',
blurb => 'Grabber for Switzerland',
exes => [ 'grab/ch_search/tv_grab_ch_search' ],
deps => [ 'grab/ch_search/tv_grab_ch_search'
=> [ 'grab/ch_search/tv_grab_ch_search.in' ] ],
pl_files => { 'grab/ch_search/tv_grab_ch_search.PL'
=> 'grab/ch_search/tv_grab_ch_search' },
to_clean => [ 'grab/ch_search/tv_grab_ch_search' ],
# share_files => { 'grab/ch_search/channel_ids'
# => 'tv_grab_ch_search/channel_ids' },
grab_need_share => [ 'ch_search' ],
prereqs => { 'HTML::Entities' => 1.27,
'HTML::TreeBuilder' => 0 },
},
# rmeden 2012-06-11 broken since 2010
# { name => 'tv_grab_dtv_la',
# blurb => 'Grabber for Latin America',
# exes => [ 'grab/dtv_la/tv_grab_dtv_la' ],
# prereqs => { 'HTML::TreeBuilder' => 0,
# 'HTML::Form' => 0 } },
# 2014-04-21 reinstate after unbreak
{ name => 'tv_grab_dtv_la',
blurb => 'Grabber for Latin America & Caribbean',
exes => [ 'grab/dtv_la/tv_grab_dtv_la' ],
prereqs => { 'LWP::UserAgent' => 0,
'HTTP::Cookies' => 0,
'HTML::TreeBuilder' => 0,
'JSON::PP' => 0,
'Date::Manip' => 0,
'Date::Parse' => 0,
'Date::Language' => 0, }
},
{ name => 'tv_grab_uk_rt',
blurb => 'Grabber for UK and Ireland (Radio Times)',
exes => [ 'grab/uk_rt/tv_grab_uk_rt' ],
share_files => {
'grab/uk_rt/channel_ids'
=> 'tv_grab_uk_rt/channel_ids',
'grab/uk_rt/prog_titles_to_process'
=> 'tv_grab_uk_rt/prog_titles_to_process',
'grab/uk_rt/regional_channels_by_postcode'
=> 'tv_grab_uk_rt/regional_channels_by_postcode',
'grab/uk_rt/channels_platforms'
=> 'tv_grab_uk_rt/channels_platforms',
'grab/uk_rt/utf8_fixups'
=> 'tv_grab_uk_rt/utf8_fixups',
'grab/uk_rt/channel_icons'
=> 'tv_grab_uk_rt/channel_icons',
'grab/uk_rt/lineups/xmltv-lineups.xsl'
=> 'tv_grab_uk_rt/lineups/xmltv-lineups.xsl',
'grab/uk_rt/lineups/lineups.xml'
=> 'tv_grab_uk_rt/lineups/lineups.xml',
'grab/uk_rt/lineups/freesatfromsky.xml'
=> 'tv_grab_uk_rt/lineups/freesatfromsky.xml',
'grab/uk_rt/lineups/freesathd.xml'
=> 'tv_grab_uk_rt/lineups/freesathd.xml',
'grab/uk_rt/lineups/freesat.xml'
=> 'tv_grab_uk_rt/lineups/freesat.xml',
'grab/uk_rt/lineups/freeviewhd.xml'
=> 'tv_grab_uk_rt/lineups/freeviewhd.xml',
'grab/uk_rt/lineups/freeview.xml'
=> 'tv_grab_uk_rt/lineups/freeview.xml',
'grab/uk_rt/lineups/saorview.xml'
=> 'tv_grab_uk_rt/lineups/saorview.xml',
'grab/uk_rt/lineups/skyhd.xml'
=> 'tv_grab_uk_rt/lineups/skyhd.xml',
'grab/uk_rt/lineups/sky.xml'
=> 'tv_grab_uk_rt/lineups/sky.xml',
'grab/uk_rt/lineups/upcirelandhd.xml'
=> 'tv_grab_uk_rt/lineups/upcirelandhd.xml',
'grab/uk_rt/lineups/upcireland.xml'
=> 'tv_grab_uk_rt/lineups/upcireland.xml',
'grab/uk_rt/lineups/virginhd.xml'
=> 'tv_grab_uk_rt/lineups/virginhd.xml',
'grab/uk_rt/lineups/virgin.xml'
=> 'tv_grab_uk_rt/lineups/virgin.xml',
'grab/uk_rt/lineups/freeview.map'
=> 'tv_grab_uk_rt/lineups/freeview.map',
'grab/uk_rt/lineups/freesat.map'
=> 'tv_grab_uk_rt/lineups/freesat.map',
'grab/uk_rt/lineups/saorview.map'
=> 'tv_grab_uk_rt/lineups/saorview.map',
},
prereqs => { 'HTTP::Cache::Transparent' => 1.0,
'IO::Stringy' => 0,
'LWP::UserAgent' => 0,
'DateTime' => 0,
'DateTime::Duration' => 0,
'DateTime::TimeZone' => 0,
'HTML::Entities' => 1.27,
'XML::LibXML' => 0, },
},
{ name => 'tv_grab_uk_bleb',
blurb => 'Fast alternative grabber for the UK',
exes => [ 'grab/uk_bleb/tv_grab_uk_bleb' ],
pl_files => { 'grab/uk_bleb/tv_grab_uk_bleb.PL' => 'grab/uk_bleb/tv_grab_uk_bleb' },
share_files => { 'grab/uk_bleb/icon_urls' => 'tv_grab_uk_bleb/icon_urls' },
to_clean => [ 'grab/uk_bleb/tv_grab_uk_bleb' ],
deps => [ 'grab/uk_bleb/tv_grab_uk_bleb' => [ 'grab/uk_bleb/tv_grab_uk_bleb.in' ] ],
grab_need_share => [ 'uk_bleb' ],
prereqs => { 'IO::Stringy' => 0, 'Archive::Zip' => 0 },
},
{ name => 'tv_grab_uk_atlas',
blurb => 'Fast grabber for UK and Ireland using Atlas database',
exes => [ 'grab/uk_atlas/tv_grab_uk_atlas' ],
share_files => {
'grab/uk_atlas/tv_grab_uk_atlas.user.map.conf'
=> 'tv_grab_uk_atlas/tv_grab_uk_atlas.user.map.conf',
'grab/uk_atlas/tv_grab_uk_atlas.pa.genres.conf'
=> 'tv_grab_uk_atlas/tv_grab_uk_atlas.pa.genres.conf',
'grab/uk_atlas/tv_grab_uk_atlas.map.genres.conf'
=> 'tv_grab_uk_atlas/tv_grab_uk_atlas.map.genres.conf',
'grab/uk_atlas/tv_grab_uk_atlas.map.channels.conf'
=> 'tv_grab_uk_atlas/tv_grab_uk_atlas.map.channels.conf',
'grab/uk_atlas/cgi-bin/getatlas.pl'
=> 'tv_grab_uk_atlas/cgi-bin/getatlas.pl',
},
prereqs => { 'HTTP::Cache::Transparent' => 1.0,
'LWP::UserAgent' => 0,
'HTTP::Cookies' => 0,
'JSON::PP' => 0,
'DateTime' => 0,
'Date::Parse' => 0,
'Encode' => 0,
'URI::Escape' => 0,
'File::Path' => 0,
'Data::Dumper' => 0,
'Pod::Usage' => 0, },
},
{ name => 'tv_grab_uk_guardian',
blurb => 'Grabber for UK and Ireland using The Guardian website',
exes => [ 'grab/uk_guardian/tv_grab_uk_guardian' ],
share_files => {
'grab/uk_guardian/tv_grab_uk_guardian.map.conf'
=> 'tv_grab_uk_guardian/tv_grab_uk_guardian.map.conf',
},
prereqs => { 'HTTP::Cache::Transparent' => 1.0,
'DateTime' => 0,
'File::Path' => 0,
'Encode' => 0, },
},
{ name => 'tv_grab_uk_tvguide',
blurb => 'Grabber for UK and Ireland using TV Guide website',
exes => [ 'grab/uk_tvguide/tv_grab_uk_tvguide' ],
share_files => {
'grab/uk_tvguide/tv_grab_uk_tvguide.map.conf'
=> 'tv_grab_uk_tvguide/tv_grab_uk_tvguide.map.conf',
},
prereqs => { 'HTTP::Cache::Transparent' => 1.0,
'DateTime' => 0,
'Date::Parse' => 0,
'Encode' => 0,
'URI::Escape' => 0,
'File::Path' => 0,
'Data::Dumper' => 0, },
},
# 2008-11-09 disabled after ident string was blocked
# { name => 'tv_grab_be',
# blurb => 'Grabber for Belgium and Luxemburg',
# exes => [ 'grab/be/tv_grab_be' ],
# pl_files => { 'grab/be/tv_grab_be.PL' => 'grab/be/tv_grab_be' },
# share_files => { 'grab/be/channel_ids_fr' => 'tv_grab_be/channel_ids_fr',
# 'grab/be/channel_ids_nl' => 'tv_grab_be/channel_ids_nl' },
# to_clean => [ 'grab/be/tv_grab_be' ],
# deps => [ 'grab/be/tv_grab_be' => [ 'grab/be/tv_grab_be.in' ] ],
# grab_need_share => [ 'be' ],
# prereqs => { 'HTML::Entities' => 1.27 } ,
# },
{ name => 'tv_grab_is',
blurb => 'Grabber for Iceland',
exes => [ 'grab/is/tv_grab_is' ],
share_files => { 'grab/is/category_map' => 'tv_grab_is/category_map' },
prereqs => { 'XML::LibXSLT' => 0,
'XML::DOM' => 0 } ,
},
{ name => 'tv_grab_it',
blurb => 'Grabber for Italy',
exes => [ 'grab/it/tv_grab_it' ],
pl_files => { 'grab/it/tv_grab_it.PL' => 'grab/it/tv_grab_it' },
share_files => { 'grab/it/channel_ids' => 'tv_grab_it/channel_ids' },
to_clean => [ 'grab/it/tv_grab_it', 'grab/it/tv_grab_it.in2' ],
deps => [ 'grab/it/tv_grab_it' => [ 'grab/it/tv_grab_it.in' ] ],
grab_need_share => [ 'it' ],
},
{ name => 'tv_grab_it_dvb',
blurb => 'Grabber for Italy from DVB-S stream',
exes => [ 'grab/it_dvb/tv_grab_it_dvb' ],
pl_files => { 'grab/it_dvb/tv_grab_it_dvb.PL' => 'grab/it_dvb/tv_grab_it_dvb' },
share_files => { 'grab/it_dvb/channel_ids' => 'tv_grab_it_dvb/channel_ids',
'grab/it_dvb/sky_it.dict' => 'tv_grab_it_dvb/sky_it.dict',
'grab/it_dvb/sky_it.themes' => 'tv_grab_it_dvb/sky_it.themes',
},
to_clean => [ 'grab/it_dvb/tv_grab_it_dvb' ],
deps => [ 'grab/it_dvb/tv_grab_it_dvb' => [ 'grab/it_dvb/tv_grab_it_dvb.in' ] ],
grab_need_share => [ 'it_dvb' ],
prereqs => { 'Data::Dump' => 0,
'IO::Select' => 0,
'Linux::DVB' => 0,
'Time::HiRes' => 0 } ,
},
# 2013-05-13 xmltv feed disabled by What's On due to TOS violations. It may come back
# { name => 'tv_grab_in',
# blurb => 'Grabber for India (zipazap.com)',
# exes => [ 'grab/in/tv_grab_in' ],
# prereqs => { 'XML::LibXML' => 0,
# 'IO::Scalar' => 0,
# },
# },
{ name => 'tv_grab_na_dd',
blurb => '$$ Grabber for North America-schedulesdirect.org',
exes => [ 'grab/na_dd/tv_grab_na_dd' ],
pl_files => { 'grab/na_dd/tv_grab_na_dd.PL' => 'grab/na_dd/tv_grab_na_dd' },
deps => [ 'grab/na_dd/tv_grab_na_dd' => [ 'grab/na_dd/tv_grab_na_dd.in' ] ],
to_clean => [ 'grab/na_dd/tv_grab_na_dd' ],
prereqs => { 'SOAP::Lite' => 0.67,
'Term::ReadKey' => 0,
'XML::Twig' => 3.28, },
grab_need_share => [ 'na_dd' ],
},
# 2013-02-02 disabled after site changes broke grabber (no <IMG> tags!)
# { name => 'tv_grab_na_icons',
# blurb => 'Grabber for North American Channel Icons',
# exes => [ 'grab/na_icons/tv_grab_na_icons' ],
# deps => [ 'grab/na_icons/tv_grab_na_icons' => [ 'grab/na_icons/tv_grab_na_icons.in' ] ],
# pl_files => { 'grab/na_icons/tv_grab_na_icons.PL' => 'grab/na_icons/tv_grab_na_icons' },
# to_clean => [ 'grab/na_icons/tv_grab_na_icons' ],
# prereqs => { 'HTML::TreeBuilder' => 0,
# 'XML::Twig' => 3.28,
# 'WWW::Mechanize' => 1.02 },
# grab_need_share => [ 'na_icons' ],
# },
{ name => 'tv_grab_fi',
blurb => 'Grabber for Finland',
exes => [ 'grab/fi/tv_grab_fi' ],
deps => [
'grab/fi/tv_grab_fi' => [
'grab/fi/tv_grab_fi.pl',
'grab/fi/fi/common.pm',
'grab/fi/fi/day.pm',
'grab/fi/fi/programme.pm',
'grab/fi/fi/programmeStartOnly.pm',
'grab/fi/fi/source/foxtv.pm',
'grab/fi/fi/source/mtv3.pm',
'grab/fi/fi/source/telkku.pm',
'grab/fi/fi/source/telvis.pm',
'grab/fi/fi/source/tvhs.pm',
'grab/fi/fi/source/yle.pm',
],
],
pl_files => { 'grab/fi/merge.PL' => 'grab/fi/tv_grab_fi' },
to_clean => [ 'grab/fi/tv_grab_fi' ],
prereqs => {
'HTML::TreeBuilder' => 0,
'Time::Local' => 0,
},
},
# 2012-03-16 no longer works and maintainer suggests to use _fi now which was extended to
# provide the swedish guide earlier
# { name => 'tv_grab_fi_sv',
# blurb => 'Grabber for Finland (Swedish)',
# exes => [ 'grab/fi_sv/tv_grab_fi_sv' ],
# prereqs => {
# 'DateTime' => 0,
# 'IO::Stringy' => 0,
# 'XML::LibXML' => 0,
# },
# },
# 2014-04-13 reinstate after unbreak
{ name => 'tv_grab_fi_sv',
blurb => 'Grabber for Finland (Swedish)',
exes => [ 'grab/fi_sv/tv_grab_fi_sv' ],
prereqs => {
'DateTime' => 0,
'IO::Scalar' => 0,
'HTML::TreeBuilder' => 0,
},
},
# 2009-03-08 removed due to breakage after source site changes
# { name => 'tv_grab_es',
# blurb => 'Grabber for Spain - Analogic Terrestrial/Cable',
# exes => [ 'grab/es/tv_grab_es' ],
# prereqs => { 'HTML::TreeBuilder' => 0 } },
{ name => 'tv_grab_il',
blurb => 'Grabber for Israel',
exes => [ 'grab/il/tv_grab_il' ],
},
#
#
# tv_grab_es_digital no longer functioning due to site changes
#
# { name => 'tv_grab_es_digital',
# blurb => 'Grabber for Spain - Digital Satellite (D+)',
# exes => [ 'grab/es_digital/tv_grab_es_digital' ],
# prereqs => { 'HTML::TreeBuilder' => 0 } },
{ name => 'tv_grab_es_laguiatv',
blurb => 'Alternative grabber for Spain',
exes => [ 'grab/es_laguiatv/tv_grab_es_laguiatv' ],
prereqs => { 'HTML::TreeBuilder' => 0 } },
# rmeden 2012-06-11 broken since 2012-03-29
# { name => 'tv_grab_es_miguiatv',
# blurb => 'Alternative grabber for Spain using miguiatv.com',
# exes => [ 'grab/es_miguiatv/tv_grab_es_miguiatv' ],
# prereqs => { 'HTML::TreeBuilder' => 0 } },#
# rmeden 2012-06-11 hasn't worked since 2012-03-06 community switch to python
# { name => 'tv_grab_nl',
# blurb => 'Grabber for the Netherlands',
# exes => [ 'grab/nl/tv_grab_nl' ],
# prereqs => { 'HTML::TreeBuilder' => 0 },
# },
# 2014-04-29 reinstate after unbreak
{ name => 'tv_grab_nl',
blurb => 'Grabber for the Netherlands',
exes => [ 'grab/nl/tv_grab_nl' ],
prereqs => { 'HTML::TreeBuilder' => 0,
'HTML::Entities' => 0,
'HTTP::Cache::Transparent' => 0,
'IO::File' => 0,
'Date::Parse' => 0,
'Date::Format' => 0,
'DateTime' => 0,
'Encode' => 0,
'JSON::PP' => 0,
},
},
# 2008-07-12 - removed by rmeden, not getting programs for a while.
#
# { name => 'tv_grab_nl_wolf',
# blurb => 'Alternative grabber for the Netherlands',
# exes => [ 'grab/nl_wolf/tv_grab_nl_wolf' ],
# prereqs => { 'HTML::TreeBuilder' => 0 } },
{ name => 'tv_grab_huro',
blurb => 'Grabber for Hungary, Romania, Slovakia, Czech Republic',
exes => [ 'grab/huro/tv_grab_huro' ],
pl_files => { 'grab/huro/tv_grab_huro.PL'
=> 'grab/huro/tv_grab_huro' },
share_files => { 'grab/huro/jobmap' => 'tv_grab_huro/jobmap',
'grab/huro/catmap.hu' => 'tv_grab_huro/catmap.hu',
'grab/huro/catmap.ro' => 'tv_grab_huro/catmap.ro',
'grab/huro/catmap.sk' => 'tv_grab_huro/catmap.sk',
'grab/huro/catmap.cz' => 'tv_grab_huro/catmap.cz',
},
to_clean => [ 'grab/huro/tv_grab_huro' ],
deps => [ 'grab/huro/tv_grab_huro'
=> [ 'grab/huro/tv_grab_huro.in' ] ],
grab_need_share => [ 'huro' ],
prereqs => { 'HTML::TreeBuilder' => 0 } },
# 2008-07-22 - removed by rmeden, website changes, won't be fixed
# { name => 'tv_grab_dk',
# blurb => 'Grabber for Denmark',
# exes => [ 'grab/dk/tv_grab_dk' ],
# prereqs => { 'HTML::TreeBuilder' => 0 } },
# 2013-12-10 - removed by rmeden, lots of site changes
# { name => 'tv_grab_dk_dr',
# blurb => 'Grabber for Denmark (dr.dk)',
# exes => [ 'grab/dk_dr/tv_grab_dk_dr' ],
# prereqs => { 'Data::Dumper' => 0,
# 'DateTime::Locale' => 0,
# 'IO::Stringy' => 0,
# 'Parse::RecDescent' => 0,
# 'LWP::Simple' => 0,
# 'DateTime' => 0,
# },
# },
# 2014-01-04 - added by bilbo_uk, replacement grabber
{ name => 'tv_grab_dk_dr',
blurb => 'Grabber for Denmark (dr.dk)',
exes => [ 'grab/dk_dr/tv_grab_dk_dr' ],
prereqs => { 'Data::Dumper' => 0,
'LWP::UserAgent' => 0,
'IO::Scalar' => 0,
'DateTime' => 0,
'JSON' => 0,
},
},
#
# 2009-03-05 rmeden - source site seems to be blocking our agent string
#
#{ name => 'tv_grab_jp',
# blurb => 'Grabber for Japan',
# exes => [ 'grab/jp/tv_grab_jp' ],
# prereqs => { 'HTML::TreeBuilder' => 0,
# 'Text::Kakasi' => 0 } },
{ name => 'tv_grab_se_swedb',
blurb => 'Grabber for Sweden',
exes => [ 'grab/se_swedb/tv_grab_se_swedb' ],
pl_files => { 'grab/se_swedb/tv_grab_se_swedb.PL'
=> 'grab/se_swedb/tv_grab_se_swedb' },
to_clean => [ 'grab/se_swedb/tv_grab_se_swedb' ],
deps => [ 'grab/se_swedb/tv_grab_se_swedb'
=> [ 'grab/se_swedb/tv_grab_se_swedb.in' ] ],
prereqs => { 'XML::LibXML' => 0,
'Compress::Zlib' => 0,
'IO::Stringy' => 0,
'HTTP::Cache::Transparent' => 0,
},
},
{ name => 'tv_grab_hr',
blurb => 'Grabber for Croatia',
exes => [ 'grab/hr/tv_grab_hr' ],
pl_files => { 'grab/hr/tv_grab_hr.PL'
=> 'grab/hr/tv_grab_hr' },
to_clean => [ 'grab/hr/tv_grab_hr' ],
deps => [ 'grab/hr/tv_grab_hr'
=> [ 'grab/se_swedb/tv_grab_se_swedb.in' ] ],
prereqs => { 'XML::LibXML' => 0,
'Compress::Zlib' => 0,
'IO::Stringy' => 0,
'HTTP::Cache::Transparent' => 0,
},
},
{ name => 'tv_grab_no_gfeed',
blurb => 'Grabber for Norway (gfeed.info)',
exes => [ 'grab/no_gfeed/tv_grab_no_gfeed' ],
pl_files => { 'grab/no_gfeed/tv_grab_no_gfeed.PL'
=> 'grab/no_gfeed/tv_grab_no_gfeed' },
to_clean => [ 'grab/no_gfeed/tv_grab_no_gfeed' ],
deps => [ 'grab/no_gfeed/tv_grab_no_gfeed'
=> [ 'grab/se_swedb/tv_grab_se_swedb.in' ] ],
prereqs => { 'XML::LibXML' => 0,
'Compress::Zlib' => 0,
'IO::Stringy' => 0,
'HTTP::Cache::Transparent' => 0,
},
},
{ name => 'tv_grab_eu_egon',
blurb => 'Grabber for german speaking area (Egon zappt)',
exes => [ 'grab/eu_egon/tv_grab_eu_egon' ],
pl_files => { 'grab/eu_egon/tv_grab_eu_egon.PL'
=> 'grab/eu_egon/tv_grab_eu_egon' },
to_clean => [ 'grab/eu_egon/tv_grab_eu_egon' ],
deps => [ 'grab/eu_egon/tv_grab_eu_egon'
=> [ 'grab/se_swedb/tv_grab_se_swedb.in' ] ],
prereqs => { 'XML::LibXML' => 0,
'Compress::Zlib' => 0,
'IO::Stringy' => 0,
'HTTP::Cache::Transparent' => 0,
},
},
{ name => 'tv_grab_se_tvzon',
blurb => 'Grabber for Sweden (tvzon.se)',
exes => [ 'grab/se_tvzon/tv_grab_se_tvzon' ],
pl_files => { 'grab/se_tvzon/tv_grab_se_tvzon.PL'
=> 'grab/se_tvzon/tv_grab_se_tvzon' },
to_clean => [ 'grab/se_tvzon/tv_grab_se_tvzon' ],
deps => [ 'grab/se_tvzon/tv_grab_se_tvzon'
=> [ 'grab/se_swedb/tv_grab_se_swedb.in' ] ],
prereqs => { 'XML::LibXML' => 0,
'Compress::Zlib' => 0,
'IO::Stringy' => 0,
'HTTP::Cache::Transparent' => 0,
},
},
{ name => 'tv_grab_fr',
blurb => 'Grabber for France',
exes => [ 'grab/fr/tv_grab_fr' ],
prereqs => { 'HTML::Entities' => 1.27,
'HTML::TreeBuilder' => 0 },
},
{ name => 'tv_grab_fr_kazer',
blurb => 'Grabber for France (Kazer)',
exes => [ 'grab/fr_kazer/tv_grab_fr_kazer' ],
prereqs => { 'IO::Uncompress::Unzip' => 0 },
},
#
# depreciate tv_grab_no as it is no longer supported (per author, [email protected])
# has been replaced by tv_grab_no_gfeed
#
# { name => 'tv_grab_no',
# blurb => 'Grabber for Norway',
# exes => [ 'grab/no/tv_grab_no' ],
# prereqs => { 'HTML::Entities' => 1.27 },
# },
# rmeden 2012-06-11 hasn't worked since 2012-01-30
# { name => 'tv_grab_pt',
# blurb => 'Grabber for Portugal',
# exes => [ 'grab/pt/tv_grab_pt' ],
# prereqs => { 'HTML::TreeBuilder' => 0,
# }
# },
# 2014-05-07 reinstate after unbreak
{ name => 'tv_grab_pt',
blurb => 'Grabber for Portugal',
exes => [ 'grab/pt/tv_grab_pt' ],
prereqs => { 'Getopt::Long' => 0,
'HTML::TreeBuilder' => 0,
'HTML::Entities' => 1.27,
'HTTP::Cache::Transparent' => 0,
'DateTime' => 0,
'Unicode::UTF8simple' => 0,
'Encode' => 0,}
},
{ name => 'tv_grab_pt_meo',
blurb => 'Grabber for Portugal (MEO)',
exes => [ 'grab/pt_meo/tv_grab_pt_meo' ],
prereqs => { 'DateTime' => 0,
'XML::LibXML' => 0,
'LWP' => 0,
},
},
{ name => 'tv_grab_za',
blurb => 'Grabber for South Africa',
exes => [ 'grab/za/tv_grab_za' ],
prereqs => { 'HTML::TreeBuilder' => 0,
'HTML::Entities' => 1.27 } },
{ name => 'tv_grab_eu_epgdata',
blurb => '$$ Grabber for some European countries (epgdata.com)',
exes => [ 'grab/eu_epgdata/tv_grab_eu_epgdata' ],
share_files => { 'grab/eu_epgdata/channel_ids' => 'tv_grab_eu_epgdata/channel_ids' },
prereqs => { 'XML::Twig' => 0,
'Archive::Zip' => 0,
'HTML::Entities' => 0,
'LWP::Simple' => 0,
'File::Temp' => 0,
'DateTime::Format::Strptime' => 0 },
},
{ name => 'tv_grab_combiner',
blurb => 'Grabber that combines data from other grabbers',
exes => [ 'grab/combiner/tv_grab_combiner' ],
prereqs => { 'XML::LibXML' => 0 } },
{ name => 'tv_check',
blurb => 'Program to report exceptions and changes in a schedule',
exes => [ 'choose/tv_check/tv_check' ],
docs => [ qw(choose/tv_check/README.tv_check
choose/tv_check/tv_check_doc.html
choose/tv_check/tv_check_doc.jpg
) ],
prereqs => { 'Tk' => 0,
'Tk::TableMatrix' => 0,
} },
{ name => 'tv_pick_cgi',
blurb => 'CGI program to filter listings (to install manually)',
prereqs => { 'CGI' => 0 },
type => 'run',
},
# rmeden 2012-06-11 broken since 2011-11-25
# { name => 'tv_grab_ee',
# blurb => 'Grabber for Estonia',
# exes => [ 'grab/ee/tv_grab_ee' ],
# prereqs => { 'LWP::Simple' => 0 } },
# rmeden 2011-06-12 not working
# { name => 'tv_grab_re',
# blurb => 'Grabber for Reunion Island (France)',
# exes => [ 'grab/re/tv_grab_re' ],
# prereqs => { 'HTML::TreeBuilder' => 0 ,
# 'HTML::Entities' => 0 } },
# rmeden 2008-02-13
# not working due to site changes
# disabling
# { name => 'tv_grab_nc',
# blurb => 'Grabber for Nouvelle Caledonie Island (France)',
# exes => [ 'grab/nc/tv_grab_nc' ],
# prereqs => { 'HTML::TreeBuilder' => 0 ,
# 'HTML::Entities' => 0 } },
# rmeden 2011-06-12 not working
# dekarl 2012-01-05 fixed by #3163183
{ name => 'tv_grab_na_dtv',
blurb => 'Grabber for DirecTV in North America',
exes => [ 'grab/na_dtv/tv_grab_na_dtv' ],
prereqs => {
'DateTime' => 0,
'HTTP::Cookies' => 0,
'LWP::UserAgent' => 0,
'JSON::PP' => 0,
'HTML::TokeParser' => 0,
},
},
{ name => 'tv_grab_tr',
blurb => 'Grabber for Turkey (Digiturk)',
exes => [ 'grab/tr/tv_grab_tr' ],
prereqs => { 'HTTP::Cache::Transparent' => 1.0,
'LWP::UserAgent' => 0,
'HTTP::Cookies' => 0,
'DateTime' => 0,
'Date::Parse' => 0,
'Encode' => 0,
'URI::Escape' => 0,
'File::Path' => 0,
},
},
);
# Now we need to prompt about each optional component. The style of
# prompting, though not the code, is based on SOAP::Lite. I would
# like to add '--noprompt' and '--with tv_grab_nl' options to help
# automated package building, but I haven't implemented that yet.
#
# For each component work out whether its prereqs are installed and
# store the result in {missing} - either false, or a hashref.
#
foreach my $info (@opt_components) {
my $name = $info->{name};
my %modules_missing;
our %module_prereqs;
local *module_prereqs = $info->{prereqs} || {};
foreach (sort keys %module_prereqs) {
my $ver = $module_prereqs{$_};
next if test_module($_, $ver)->[0] eq 'OK';
warn "strange, module prereq $_ mentioned twice"
if defined $modules_missing{$_};
$modules_missing{$_} = $ver;
}
our @special_prereqs;
my %special_missing;
local *special_prereqs = $info->{special_prereqs} || {};
foreach (@special_prereqs) {
my ($sub, $name, $ver, $friendly_ver) = @$_;
next if test_special($sub, $ver)->[0] eq 'OK';
warn "strange, special prereq $name mentioned twice"
if defined $special_missing{$name};