Browse Source

perl: Update perlbase.mk

Signed-off-by: Marcel Denia <naoir@gmx.net>
Marcel Denia 10 years ago
parent
commit
ce54424c81
2 changed files with 226 additions and 27 deletions
  1. 8
    1
      lang/perl/Makefile
  2. 218
    26
      lang/perl/perlbase.mk

+ 8
- 1
lang/perl/Makefile View File

@@ -45,7 +45,14 @@ TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS))
45 45
 TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS))
46 46
 
47 47
 # A list of disabled testss
48
-PERL_DISABLEDTESTS:=
48
+# ExtUtils tests are disabled for now as we don't support building
49
+# native extensions on the target machine at the moment
50
+PERL_DISABLEDTESTS:=cpan/ExtUtils-Constant cpan/ExtUtils-MakeMaker
51
+# We're on Linux, so don't even package those
52
+PERL_DISABLEDTESTS+=cpan/Win32API-File cpan/Win32 ext/VMS-DCLsym ext/VMS-Filespec ext/VMS-Stdio ext/Win32CORE
53
+# NDBM and ODBM not supported
54
+PERL_DISABLEDTESTS+=ext/NDBM_File ext/ODBM_File
55
+
49 56
 
50 57
 include $(INCLUDE_DIR)/package.mk
51 58
 include $(INCLUDE_DIR)/host-build.mk

+ 218
- 26
lang/perl/perlbase.mk View File

@@ -19,6 +19,19 @@ endef
19 19
 $(eval $(call BuildPackage,perlbase-anydbm-file))
20 20
 
21 21
 
22
+define Package/perlbase-app
23
+$(call Package/perlbase-template)
24
+TITLE:=app perl module
25
+DEPENDS+=+perlbase-autouse +perlbase-base +perlbase-config +perlbase-cpan +perlbase-essential +perlbase-file +perlbase-getopt +perlbase-if +perlbase-tap +perlbase-text
26
+endef
27
+
28
+define Package/perlbase-app/install
29
+$(call perlmod/Install,$(1),App,)
30
+endef
31
+
32
+$(eval $(call BuildPackage,perlbase-app))
33
+
34
+
22 35
 define Package/perlbase-archive
23 36
 $(call Package/perlbase-template)
24 37
 TITLE:=Archive perl module
@@ -27,11 +40,25 @@ endef
27 40
 
28 41
 define Package/perlbase-archive/install
29 42
 $(call perlmod/Install,$(1),Archive,)
43
+$(call perlmod/InstallBaseTests,$(1),cpan/Archive-Tar/t)
30 44
 endef
31 45
 
32 46
 $(eval $(call BuildPackage,perlbase-archive))
33 47
 
34 48
 
49
+define Package/perlbase-arybase
50
+$(call Package/perlbase-template)
51
+TITLE:=arybase perl module
52
+endef
53
+
54
+define Package/perlbase-arybase/install
55
+$(call perlmod/Install,$(1),arybase.pm auto/arybase,)
56
+$(call perlmod/InstallBaseTests,$(1),ext/arybase/t)
57
+endef
58
+
59
+$(eval $(call BuildPackage,perlbase-arybase))
60
+
61
+
35 62
 define Package/perlbase-attribute
36 63
 $(call Package/perlbase-template)
37 64
 TITLE:=Attribute perl module
@@ -40,6 +67,7 @@ endef
40 67
 
41 68
 define Package/perlbase-attribute/install
42 69
 $(call perlmod/Install,$(1),Attribute,)
70
+$(call perlmod/InstallBaseTests,$(1),dist/Attribute-Handlers/t)
43 71
 endef
44 72
 
45 73
 $(eval $(call BuildPackage,perlbase-attribute))
@@ -52,12 +80,26 @@ DEPENDS+=+perlbase-essential
52 80
 endef
53 81
 
54 82
 define Package/perlbase-attributes/install
55
-$(call perlmod/Install,$(1),attributes.pm,)
83
+$(call perlmod/Install,$(1),attributes.pm auto/attributes,)
56 84
 endef
57 85
 
58 86
 $(eval $(call BuildPackage,perlbase-attributes))
59 87
 
60 88
 
89
+define Package/perlbase-autodie
90
+$(call Package/perlbase-template)
91
+TITLE:=autodie perl module
92
+DEPENDS+=+perlbase-base +perlbase-essential +perlbase-fatal +perlbase-if
93
+endef
94
+
95
+define Package/perlbase-autodie/install
96
+$(call perlmod/Install,$(1),autodie autodie.pm,)
97
+$(call perlmod/InstallBaseTests,$(1),cpan/autodie/t)
98
+endef
99
+
100
+$(eval $(call BuildPackage,perlbase-autodie))
101
+
102
+
61 103
 define Package/perlbase-autoloader
62 104
 $(call Package/perlbase-template)
63 105
 TITLE:=AutoLoader perl module
@@ -66,6 +108,7 @@ endef
66 108
 
67 109
 define Package/perlbase-autoloader/install
68 110
 $(call perlmod/Install,$(1),AutoLoader.pm,)
111
+$(call perlmod/InstallBaseTests,$(1),cpan/AutoLoader/t)
69 112
 endef
70 113
 
71 114
 $(eval $(call BuildPackage,perlbase-autoloader))
@@ -78,7 +121,7 @@ DEPENDS+=+perlbase-config +perlbase-essential +perlbase-file
78 121
 endef
79 122
 
80 123
 define Package/perlbase-autosplit/install
81
-$(call perlmod/Install,$(1),AutoSplit.pm,)
124
+$(call perlmod/Install/NoStrip,$(1),AutoSplit.pm,)
82 125
 endef
83 126
 
84 127
 $(eval $(call BuildPackage,perlbase-autosplit))
@@ -91,6 +134,7 @@ endef
91 134
 
92 135
 define Package/perlbase-autouse/install
93 136
 $(call perlmod/Install,$(1),autouse.pm,)
137
+$(call perlmod/InstallBaseTests,$(1),dist/autouse/t)
94 138
 endef
95 139
 
96 140
 $(eval $(call BuildPackage,perlbase-autouse))
@@ -104,6 +148,7 @@ endef
104 148
 
105 149
 define Package/perlbase-b/install
106 150
 $(call perlmod/Install,$(1),B B.pm auto/B,)
151
+$(call perlmod/InstallBaseTests,$(1),cpan/B-Debug/t ext/B/t)
107 152
 endef
108 153
 
109 154
 $(eval $(call BuildPackage,perlbase-b))
@@ -117,6 +162,7 @@ endef
117 162
 
118 163
 define Package/perlbase-base/install
119 164
 $(call perlmod/Install,$(1),base.pm,)
165
+$(call perlmod/InstallBaseTests,$(1),dist/base/t)
120 166
 endef
121 167
 
122 168
 $(eval $(call BuildPackage,perlbase-base))
@@ -155,7 +201,8 @@ DEPENDS+=+perlbase-bigint +perlbase-essential
155 201
 endef
156 202
 
157 203
 define Package/perlbase-bignum/install
158
-$(call perlmod/Install,$(1),bignum.pm,)
204
+$(call perlmod/Install,$(1),bignum.pm bigrat.pm,)
205
+$(call perlmod/InstallBaseTests,$(1),dist/bignum/t)
159 206
 endef
160 207
 
161 208
 $(eval $(call BuildPackage,perlbase-bignum))
@@ -194,6 +241,7 @@ endef
194 241
 
195 242
 define Package/perlbase-cgi/install
196 243
 $(call perlmod/Install,$(1),CGI CGI.pm,)
244
+$(call perlmod/InstallBaseTests,$(1),cpan/CGI/t)
197 245
 endef
198 246
 
199 247
 $(eval $(call BuildPackage,perlbase-cgi))
@@ -202,11 +250,11 @@ $(eval $(call BuildPackage,perlbase-cgi))
202 250
 define Package/perlbase-charnames
203 251
 $(call Package/perlbase-template)
204 252
 TITLE:=charnames perl module
205
-DEPENDS+=+perlbase-bytes +perlbase-essential +perlbase-re +perlbase-unicore
253
+DEPENDS+=+perlbase-bytes +perlbase-essential +perlbase-file +perlbase-re +perlbase-unicore
206 254
 endef
207 255
 
208 256
 define Package/perlbase-charnames/install
209
-$(call perlmod/Install,$(1),charnames.pm,)
257
+$(call perlmod/Install,$(1),_charnames.pm charnames.pm,)
210 258
 endef
211 259
 
212 260
 $(eval $(call BuildPackage,perlbase-charnames))
@@ -233,6 +281,7 @@ endef
233 281
 
234 282
 define Package/perlbase-compress/install
235 283
 $(call perlmod/Install,$(1),Compress auto/Compress,)
284
+$(call perlmod/InstallBaseTests,$(1),cpan/Compress-Raw-Bzip2/t cpan/Compress-Raw-Zlib/t)
236 285
 endef
237 286
 
238 287
 $(eval $(call BuildPackage,perlbase-compress))
@@ -241,10 +290,12 @@ $(eval $(call BuildPackage,perlbase-compress))
241 290
 define Package/perlbase-config
242 291
 $(call Package/perlbase-template)
243 292
 TITLE:=Config perl module
293
+DEPENDS+=+perlbase-essential
244 294
 endef
245 295
 
246 296
 define Package/perlbase-config/install
247
-$(call perlmod/Install,$(1),Config Config.pm Config_heavy.pl,)
297
+$(call perlmod/Install,$(1),Config Config.pm Config_git.pl Config_heavy.pl,)
298
+$(call perlmod/InstallBaseTests,$(1),cpan/Config-Perl-V/t)
248 299
 endef
249 300
 
250 301
 $(eval $(call BuildPackage,perlbase-config))
@@ -253,11 +304,13 @@ $(eval $(call BuildPackage,perlbase-config))
253 304
 define Package/perlbase-cpan
254 305
 $(call Package/perlbase-template)
255 306
 TITLE:=CPAN perl module
256
-DEPENDS+=+perlbase-b +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-extutils +perlbase-fcntl +perlbase-file +perlbase-filehandle +perlbase-list +perlbase-net +perlbase-safe +perlbase-scalar +perlbase-sys +perlbase-text +perlbase-version
307
+DEPENDS+=+perlbase-b +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-extutils +perlbase-fcntl +perlbase-file +perlbase-filehandle +perlbase-http-tiny +perlbase-list +perlbase-net +perlbase-safe +perlbase-scalar +perlbase-sys +perlbase-text +perlbase-version
257 308
 endef
258 309
 
259 310
 define Package/perlbase-cpan/install
260
-$(call perlmod/Install,$(1),CPAN CPAN.pm,)
311
+$(call perlmod/Install,$(1),CPAN CPAN.pm Parse/CPAN/Meta.pm,CPAN/FirstTime.pm)
312
+$(call perlmod/Install/NoStrip,$(1),CPAN/FirstTime.pm,)
313
+$(call perlmod/InstallBaseTests,$(1),cpan/CPAN-Meta-Requirements/t cpan/CPAN-Meta-YAML/t cpan/CPAN-Meta/t cpan/CPAN/t cpan/Parse-CPAN-Meta/t)
261 314
 endef
262 315
 
263 316
 $(eval $(call BuildPackage,perlbase-cpan))
@@ -284,6 +337,7 @@ endef
284 337
 
285 338
 define Package/perlbase-data/install
286 339
 $(call perlmod/Install,$(1),Data auto/Data,)
340
+$(call perlmod/InstallBaseTests,$(1),dist/Data-Dumper/t)
287 341
 endef
288 342
 
289 343
 $(eval $(call BuildPackage,perlbase-data))
@@ -310,6 +364,7 @@ endef
310 364
 
311 365
 define Package/perlbase-db-file/install
312 366
 $(call perlmod/Install,$(1),DB_File.pm auto/DB_File,)
367
+$(call perlmod/InstallBaseTests,$(1),cpan/DB_File/t)
313 368
 endef
314 369
 
315 370
 $(eval $(call BuildPackage,perlbase-db-file))
@@ -335,7 +390,9 @@ DEPENDS+=+perlbase-essential +perlbase-file
335 390
 endef
336 391
 
337 392
 define Package/perlbase-devel/install
338
-$(call perlmod/Install,$(1),Devel auto/Devel,)
393
+$(call perlmod/Install,$(1),Devel auto/Devel,Devel/PPPort.pm)
394
+$(call perlmod/Install/NoStrip,$(1),Devel/PPPort.pm,)
395
+$(call perlmod/InstallBaseTests,$(1),cpan/Devel-PPPort/t dist/Devel-SelfStubber/t ext/Devel-Peek/t)
339 396
 endef
340 397
 
341 398
 $(eval $(call BuildPackage,perlbase-devel))
@@ -362,6 +419,8 @@ endef
362 419
 
363 420
 define Package/perlbase-digest/install
364 421
 $(call perlmod/Install,$(1),Digest Digest.pm auto/Digest,)
422
+$(call perlmod/InstallBaseTests,$(1),cpan/Digest-MD5/MD5.xs cpan/Digest-MD5/t cpan/Digest-SHA/t cpan/Digest/t)
423
+	$(INSTALL_DIR) $(1)/$(PERL_TESTSDIR)/cpan/Digest-SHA/src
365 424
 endef
366 425
 
367 426
 $(eval $(call BuildPackage,perlbase-digest))
@@ -388,6 +447,7 @@ endef
388 447
 
389 448
 define Package/perlbase-dumpvalue/install
390 449
 $(call perlmod/Install,$(1),Dumpvalue.pm,)
450
+$(call perlmod/InstallBaseTests,$(1),dist/Dumpvalue/t)
391 451
 endef
392 452
 
393 453
 $(eval $(call BuildPackage,perlbase-dumpvalue))
@@ -413,6 +473,7 @@ endef
413 473
 
414 474
 define Package/perlbase-dynaloader/install
415 475
 $(call perlmod/Install,$(1),DynaLoader.pm,)
476
+$(call perlmod/InstallBaseTests,$(1),ext/DynaLoader/t)
416 477
 endef
417 478
 
418 479
 $(eval $(call BuildPackage,perlbase-dynaloader))
@@ -426,6 +487,7 @@ endef
426 487
 
427 488
 define Package/perlbase-encode/install
428 489
 $(call perlmod/Install,$(1),Encode Encode.pm auto/Encode,Encode/PerlIO.pod Encode/Supported.pod)
490
+$(call perlmod/InstallBaseTests,$(1),cpan/Encode/t)
429 491
 endef
430 492
 
431 493
 $(eval $(call BuildPackage,perlbase-encode))
@@ -439,6 +501,7 @@ endef
439 501
 
440 502
 define Package/perlbase-encoding/install
441 503
 $(call perlmod/Install,$(1),encoding encoding.pm,)
504
+$(call perlmod/InstallBaseTests,$(1),cpan/encoding-warnings/t)
442 505
 endef
443 506
 
444 507
 $(eval $(call BuildPackage,perlbase-encoding))
@@ -464,6 +527,7 @@ endef
464 527
 
465 528
 define Package/perlbase-env/install
466 529
 $(call perlmod/Install,$(1),Env.pm,)
530
+$(call perlmod/InstallBaseTests,$(1),dist/Env/t)
467 531
 endef
468 532
 
469 533
 $(eval $(call BuildPackage,perlbase-env))
@@ -477,6 +541,7 @@ endef
477 541
 
478 542
 define Package/perlbase-errno/install
479 543
 $(call perlmod/Install,$(1),Errno.pm,)
544
+$(call perlmod/InstallBaseTests,$(1),ext/Errno/t)
480 545
 endef
481 546
 
482 547
 $(eval $(call BuildPackage,perlbase-errno))
@@ -485,24 +550,40 @@ $(eval $(call BuildPackage,perlbase-errno))
485 550
 define Package/perlbase-essential
486 551
 $(call Package/perlbase-template)
487 552
 TITLE:=essential perl module
488
-DEPENDS+=+perlbase-config
489 553
 endef
490 554
 
491 555
 define Package/perlbase-essential/install
492
-$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm lib.pm locale.pm overload.pm overloading.pm parent.pm strict.pm subs.pm vars.pm warnings warnings.pm,)
556
+$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm deprecate.pm lib.pm locale.pm overload.pm overloading.pm parent.pm strict.pm subs.pm vars.pm warnings warnings.pm,)
557
+$(call perlmod/InstallBaseTests,$(1),cpan/parent/t dist/Carp/t dist/Exporter/t dist/constant/t dist/lib/t)
493 558
 endef
494 559
 
495 560
 $(eval $(call BuildPackage,perlbase-essential))
496 561
 
497 562
 
563
+define Package/perlbase-experimental
564
+$(call Package/perlbase-template)
565
+TITLE:=perl module to enable/disable experimental features
566
+DEPENDS+=+perlbase-essential +perlbase-feature
567
+endef
568
+
569
+define Package/perlbase-experimental/install
570
+$(call perlmod/Install,$(1),experimental.pm,)
571
+$(call perlmod/InstallBaseTests,$(1),cpan/experimental/t)
572
+endef
573
+
574
+$(eval $(call BuildPackage,perlbase-experimental))
575
+
576
+
498 577
 define Package/perlbase-extutils
499 578
 $(call Package/perlbase-template)
500 579
 TITLE:=ExtUtils perl module
501
-DEPENDS+=+perlbase-autosplit +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-file +perlbase-io +perlbase-ipc +perlbase-symbol +perlbase-text
580
+DEPENDS+=+perlbase-autosplit +perlbase-config +perlbase-cwd +perlbase-dirhandle +perlbase-essential +perlbase-file +perlbase-io +perlbase-ipc +perlbase-ostype +perlbase-symbol +perlbase-text
502 581
 endef
503 582
 
504 583
 define Package/perlbase-extutils/install
505
-$(call perlmod/Install,$(1),ExtUtils,ExtUtils/MakeMaker/FAQ.pod ExtUtils/MakeMaker/Tutorial.pod)
584
+$(call perlmod/Install,$(1),ExtUtils,ExtUtils/MakeMaker/FAQ.pod ExtUtils/MakeMaker/Tutorial.pod ExtUtils/ParseXS.pm ExtUtils/ParseXS/Utilities.pm)
585
+$(call perlmod/Install/NoStrip,$(1),ExtUtils/ParseXS.pm ExtUtils/ParseXS/Utilities.pm,)
586
+$(call perlmod/InstallBaseTests,$(1),cpan/ExtUtils-Constant/t cpan/ExtUtils-MakeMaker/t dist/ExtUtils-CBuilder/t dist/ExtUtils-Command/t dist/ExtUtils-Install/t dist/ExtUtils-Manifest/t dist/ExtUtils-ParseXS/t)
506 587
 endef
507 588
 
508 589
 $(eval $(call BuildPackage,perlbase-extutils))
@@ -529,6 +610,7 @@ endef
529 610
 
530 611
 define Package/perlbase-fcntl/install
531 612
 $(call perlmod/Install,$(1),Fcntl.pm auto/Fcntl,)
613
+$(call perlmod/InstallBaseTests,$(1),ext/Fcntl/t)
532 614
 endef
533 615
 
534 616
 $(eval $(call BuildPackage,perlbase-fcntl))
@@ -566,7 +648,9 @@ DEPENDS+=+perlbase-class +perlbase-config +perlbase-cwd +perlbase-errno +perlbas
566 648
 endef
567 649
 
568 650
 define Package/perlbase-file/install
569
-$(call perlmod/Install,$(1),File auto/File,)
651
+$(call perlmod/Install,$(1),File auto/File,File/Find.pm)
652
+$(call perlmod/Install/NoStrip,$(1),File/Find.pm,)
653
+$(call perlmod/InstallBaseTests,$(1),cpan/File-Fetch/t cpan/File-Path/t cpan/File-Temp/t dist/PathTools/t ext/File-DosGlob/t ext/File-Find/t ext/File-Glob/t)
570 654
 endef
571 655
 
572 656
 $(eval $(call BuildPackage,perlbase-file))
@@ -580,6 +664,7 @@ endef
580 664
 
581 665
 define Package/perlbase-filecache/install
582 666
 $(call perlmod/Install,$(1),FileCache.pm,)
667
+$(call perlmod/InstallBaseTests,$(1),ext/FileCache/t)
583 668
 endef
584 669
 
585 670
 $(eval $(call BuildPackage,perlbase-filecache))
@@ -618,6 +703,7 @@ endef
618 703
 
619 704
 define Package/perlbase-filter/install
620 705
 $(call perlmod/Install,$(1),Filter auto/Filter,)
706
+$(call perlmod/InstallBaseTests,$(1),cpan/Filter-Util-Call/filter-util.pl cpan/Filter-Util-Call/t dist/Filter-Simple/t)
621 707
 endef
622 708
 
623 709
 $(eval $(call BuildPackage,perlbase-filter))
@@ -644,6 +730,7 @@ endef
644 730
 
645 731
 define Package/perlbase-gdbm-file/install
646 732
 $(call perlmod/Install,$(1),GDBM_File.pm auto/GDBM_File,)
733
+$(call perlmod/InstallBaseTests,$(1),ext/GDBM_File/t)
647 734
 endef
648 735
 
649 736
 $(eval $(call BuildPackage,perlbase-gdbm-file))
@@ -657,6 +744,7 @@ endef
657 744
 
658 745
 define Package/perlbase-getopt/install
659 746
 $(call perlmod/Install,$(1),Getopt,)
747
+$(call perlmod/InstallBaseTests,$(1),cpan/Getopt-Long/t)
660 748
 endef
661 749
 
662 750
 $(eval $(call BuildPackage,perlbase-getopt))
@@ -670,11 +758,26 @@ endef
670 758
 
671 759
 define Package/perlbase-hash/install
672 760
 $(call perlmod/Install,$(1),Hash auto/Hash,)
761
+$(call perlmod/InstallBaseTests,$(1),ext/Hash-Util-FieldHash/t ext/Hash-Util/t)
673 762
 endef
674 763
 
675 764
 $(eval $(call BuildPackage,perlbase-hash))
676 765
 
677 766
 
767
+define Package/perlbase-http-tiny
768
+$(call Package/perlbase-template)
769
+TITLE:=http-tiny perl module
770
+DEPENDS+=+perlbase-errno +perlbase-essential +perlbase-io
771
+endef
772
+
773
+define Package/perlbase-http-tiny/install
774
+$(call perlmod/Install,$(1),HTTP/Tiny.pm,)
775
+$(call perlmod/InstallBaseTests,$(1),cpan/HTTP-Tiny/t)
776
+endef
777
+
778
+$(eval $(call BuildPackage,perlbase-http-tiny))
779
+
780
+
678 781
 define Package/perlbase-i18n
679 782
 $(call Package/perlbase-template)
680 783
 TITLE:=I18N perl module
@@ -682,7 +785,9 @@ DEPENDS+=+perlbase-essential +perlbase-posix
682 785
 endef
683 786
 
684 787
 define Package/perlbase-i18n/install
685
-$(call perlmod/Install,$(1),I18N auto/I18N,)
788
+$(call perlmod/Install,$(1),I18N auto/I18N,I18N/LangTags/List.pm)
789
+$(call perlmod/InstallBaseTests,$(1),dist/I18N-Collate/t dist/I18N-LangTags/t ext/I18N-Langinfo/t)
790
+$(call perlmod/Install/NoStrip,$(1),I18N/LangTags/List.pm)
686 791
 endef
687 792
 
688 793
 $(eval $(call BuildPackage,perlbase-i18n))
@@ -695,6 +800,7 @@ endef
695 800
 
696 801
 define Package/perlbase-if/install
697 802
 $(call perlmod/Install,$(1),if.pm,)
803
+$(call perlmod/InstallBaseTests,$(1),dist/if/t)
698 804
 endef
699 805
 
700 806
 $(eval $(call BuildPackage,perlbase-if))
@@ -720,6 +826,7 @@ endef
720 826
 
721 827
 define Package/perlbase-io/install
722 828
 $(call perlmod/Install,$(1),IO IO.pm auto/IO,)
829
+$(call perlmod/InstallBaseTests,$(1),cpan/IO-Compress/t cpan/IO-Socket-IP/t cpan/IO-Zlib/t dist/IO/Makefile.PL dist/IO/t)
723 830
 endef
724 831
 
725 832
 $(eval $(call BuildPackage,perlbase-io))
@@ -733,11 +840,26 @@ endef
733 840
 
734 841
 define Package/perlbase-ipc/install
735 842
 $(call perlmod/Install,$(1),IPC auto/IPC,)
843
+$(call perlmod/InstallBaseTests,$(1),cpan/IPC-Cmd/t cpan/IPC-SysV/t ext/IPC-Open3/t)
736 844
 endef
737 845
 
738 846
 $(eval $(call BuildPackage,perlbase-ipc))
739 847
 
740 848
 
849
+define Package/perlbase-json-pp
850
+$(call Package/perlbase-template)
851
+TITLE:=json-pp perl module
852
+DEPENDS+=+perlbase-b +perlbase-base +perlbase-essential
853
+endef
854
+
855
+define Package/perlbase-json-pp/install
856
+$(call perlmod/Install,$(1),JSON/PP JSON/PP.pm,)
857
+$(call perlmod/InstallBaseTests,$(1),cpan/JSON-PP/t)
858
+endef
859
+
860
+$(eval $(call BuildPackage,perlbase-json-pp))
861
+
862
+
741 863
 define Package/perlbase-less
742 864
 $(call Package/perlbase-template)
743 865
 TITLE:=less perl module
@@ -772,6 +894,7 @@ endef
772 894
 
773 895
 define Package/perlbase-locale/install
774 896
 $(call perlmod/Install,$(1),Locale,Locale/Constants.pod Locale/Country.pod Locale/Currency.pod Locale/Language.pod Locale/Maketext.pod Locale/Maketext/TPJ13.pod Locale/Script.pod)
897
+$(call perlmod/InstallBaseTests,$(1),cpan/Locale-Codes/t cpan/Locale-Maketext-Simple/t dist/Locale-Maketext/t)
775 898
 endef
776 899
 
777 900
 $(eval $(call BuildPackage,perlbase-locale))
@@ -785,6 +908,7 @@ endef
785 908
 
786 909
 define Package/perlbase-math/install
787 910
 $(call perlmod/Install,$(1),Math auto/Math,)
911
+$(call perlmod/InstallBaseTests,$(1),cpan/Math-Complex/t dist/Math-BigInt-FastCalc/t dist/Math-BigInt/t dist/Math-BigRat/t)
788 912
 endef
789 913
 
790 914
 $(eval $(call BuildPackage,perlbase-math))
@@ -798,6 +922,7 @@ endef
798 922
 
799 923
 define Package/perlbase-memoize/install
800 924
 $(call perlmod/Install,$(1),Memoize Memoize.pm,)
925
+$(call perlmod/InstallBaseTests,$(1),cpan/Memoize/t)
801 926
 endef
802 927
 
803 928
 $(eval $(call BuildPackage,perlbase-memoize))
@@ -811,6 +936,7 @@ endef
811 936
 
812 937
 define Package/perlbase-mime/install
813 938
 $(call perlmod/Install,$(1),MIME auto/MIME,)
939
+$(call perlmod/InstallBaseTests,$(1),cpan/MIME-Base64/t)
814 940
 endef
815 941
 
816 942
 $(eval $(call BuildPackage,perlbase-mime))
@@ -819,11 +945,13 @@ $(eval $(call BuildPackage,perlbase-mime))
819 945
 define Package/perlbase-module
820 946
 $(call Package/perlbase-template)
821 947
 TITLE:=Module perl module
822
-DEPENDS+=+perlbase-config +perlbase-cwd +perlbase-data +perlbase-essential +perlbase-extutils +perlbase-file +perlbase-filehandle +perlbase-if +perlbase-io +perlbase-locale +perlbase-params +perlbase-text +perlbase-version
948
+DEPENDS+=+perlbase-config +perlbase-cwd +perlbase-data +perlbase-essential +perlbase-extutils +perlbase-file +perlbase-filehandle +perlbase-if +perlbase-io +perlbase-locale +perlbase-ostype +perlbase-params +perlbase-text +perlbase-version
823 949
 endef
824 950
 
825 951
 define Package/perlbase-module/install
826
-$(call perlmod/Install,$(1),Module,Module/Build/API.pod Module/Build/Authoring.pod)
952
+$(call perlmod/Install,$(1),Module,Module/Build Module/Build.pm Module/Build/API.pod Module/Build/Authoring.pod)
953
+$(call perlmod/Install/NoStrip,$(1),Module/Build Module/Build.pm,Module/Build/API.pod Module/Build/Authoring.pod)
954
+$(call perlmod/InstallBaseTests,$(1),cpan/Module-Build/lib cpan/Module-Build/t cpan/Module-Load-Conditional/t cpan/Module-Load/t cpan/Module-Loaded/t cpan/Module-Metadata/lib cpan/Module-Metadata/t dist/Module-CoreList/t)
827 955
 endef
828 956
 
829 957
 $(eval $(call BuildPackage,perlbase-module))
@@ -836,7 +964,7 @@ DEPENDS+=+perlbase-essential
836 964
 endef
837 965
 
838 966
 define Package/perlbase-mro/install
839
-$(call perlmod/Install,$(1),mro.pm,)
967
+$(call perlmod/Install,$(1),auto/mro mro.pm,)
840 968
 endef
841 969
 
842 970
 $(eval $(call BuildPackage,perlbase-mro))
@@ -850,6 +978,7 @@ endef
850 978
 
851 979
 define Package/perlbase-net/install
852 980
 $(call perlmod/Install,$(1),Net,Net/libnetFAQ.pod)
981
+$(call perlmod/InstallBaseTests,$(1),cpan/libnet/t dist/Net-Ping/t)
853 982
 endef
854 983
 
855 984
 $(eval $(call BuildPackage,perlbase-net))
@@ -863,6 +992,7 @@ endef
863 992
 
864 993
 define Package/perlbase-next/install
865 994
 $(call perlmod/Install,$(1),NEXT.pm,)
995
+$(call perlmod/InstallBaseTests,$(1),cpan/NEXT/t)
866 996
 endef
867 997
 
868 998
 $(eval $(call BuildPackage,perlbase-next))
@@ -888,7 +1018,9 @@ DEPENDS+=+perlbase-essential +perlbase-xsloader
888 1018
 endef
889 1019
 
890 1020
 define Package/perlbase-opcode/install
891
-$(call perlmod/Install,$(1),Opcode.pm auto/Opcode,)
1021
+$(call perlmod/Install,$(1),auto/Opcode,)
1022
+$(call perlmod/Install/NoStrip,$(1),Opcode.pm,)
1023
+$(call perlmod/InstallBaseTests,$(1),ext/Opcode/t)
892 1024
 endef
893 1025
 
894 1026
 $(eval $(call BuildPackage,perlbase-opcode))
@@ -920,6 +1052,20 @@ endef
920 1052
 $(eval $(call BuildPackage,perlbase-ops))
921 1053
 
922 1054
 
1055
+define Package/perlbase-ostype
1056
+$(call Package/perlbase-template)
1057
+TITLE:=OSType perl module
1058
+DEPENDS+=+perlbase-essential
1059
+endef
1060
+
1061
+define Package/perlbase-ostype/install
1062
+$(call perlmod/Install,$(1),Perl/OSType.pm,)
1063
+$(call perlmod/InstallBaseTests,$(1),cpan/Perl-OSType/t)
1064
+endef
1065
+
1066
+$(eval $(call BuildPackage,perlbase-ostype))
1067
+
1068
+
923 1069
 define Package/perlbase-package
924 1070
 $(call Package/perlbase-template)
925 1071
 TITLE:=Package perl module
@@ -928,6 +1074,7 @@ endef
928 1074
 
929 1075
 define Package/perlbase-package/install
930 1076
 $(call perlmod/Install,$(1),Package,)
1077
+$(call perlmod/InstallBaseTests,$(1),cpan/Package-Constants/t)
931 1078
 endef
932 1079
 
933 1080
 $(eval $(call BuildPackage,perlbase-package))
@@ -941,6 +1088,7 @@ endef
941 1088
 
942 1089
 define Package/perlbase-params/install
943 1090
 $(call perlmod/Install,$(1),Params,)
1091
+$(call perlmod/InstallBaseTests,$(1),cpan/Params-Check/t)
944 1092
 endef
945 1093
 
946 1094
 $(eval $(call BuildPackage,perlbase-params))
@@ -967,6 +1115,7 @@ endef
967 1115
 
968 1116
 define Package/perlbase-perlio/install
969 1117
 $(call perlmod/Install,$(1),PerlIO PerlIO.pm auto/PerlIO,)
1118
+$(call perlmod/InstallBaseTests,$(1),cpan/PerlIO-via-QuotedPrint/t ext/PerlIO-encoding/t ext/PerlIO-scalar/t ext/PerlIO-via/t)
970 1119
 endef
971 1120
 
972 1121
 $(eval $(call BuildPackage,perlbase-perlio))
@@ -979,7 +1128,12 @@ DEPENDS+=+perlbase-config +perlbase-cwd +perlbase-encode +perlbase-essential +pe
979 1128
 endef
980 1129
 
981 1130
 define Package/perlbase-pod/install
982
-$(call perlmod/Install,$(1),Pod,)
1131
+$(call perlmod/Install,$(1),Pod,Pod/Usage.pm)
1132
+$(call perlmod/Install/NoStrip,$(1),Pod/Usage.pm,)
1133
+$(call perlmod/InstallBaseTests,$(1),cpan/Pod-Checker/t cpan/Pod-Escapes/t cpan/Pod-Parser/lib cpan/Pod-Parser/scripts cpan/Pod-Parser/t cpan/Pod-Perldoc/t cpan/Pod-Simple/t cpan/Pod-Usage/scripts cpan/Pod-Usage/t cpan/podlators/t ext/Pod-Functions/Functions.pm ext/Pod-Functions/t ext/Pod-Html/t)
1134
+	$(INSTALL_DIR) $(1)/usr/bin
1135
+	$(CP) $(PKG_INSTALL_DIR)/usr/bin/pod2man $(1)/usr/bin/
1136
+	$(CP) $(PKG_INSTALL_DIR)/usr/bin/pod2text $(1)/usr/bin/
983 1137
 endef
984 1138
 
985 1139
 $(eval $(call BuildPackage,perlbase-pod))
@@ -993,6 +1147,7 @@ endef
993 1147
 
994 1148
 define Package/perlbase-posix/install
995 1149
 $(call perlmod/Install,$(1),POSIX.pm auto/POSIX,)
1150
+$(call perlmod/InstallBaseTests,$(1),ext/POSIX/Makefile.PL ext/POSIX/POSIX.xs ext/POSIX/t)
996 1151
 endef
997 1152
 
998 1153
 $(eval $(call BuildPackage,perlbase-posix))
@@ -1006,6 +1161,7 @@ endef
1006 1161
 
1007 1162
 define Package/perlbase-re/install
1008 1163
 $(call perlmod/Install,$(1),auto/re re.pm,)
1164
+$(call perlmod/InstallBaseTests,$(1),ext/re/t)
1009 1165
 endef
1010 1166
 
1011 1167
 $(eval $(call BuildPackage,perlbase-re))
@@ -1019,6 +1175,7 @@ endef
1019 1175
 
1020 1176
 define Package/perlbase-safe/install
1021 1177
 $(call perlmod/Install,$(1),Safe.pm,)
1178
+$(call perlmod/InstallBaseTests,$(1),dist/Safe/t)
1022 1179
 endef
1023 1180
 
1024 1181
 $(eval $(call BuildPackage,perlbase-safe))
@@ -1032,6 +1189,8 @@ endef
1032 1189
 
1033 1190
 define Package/perlbase-scalar/install
1034 1191
 $(call perlmod/Install,$(1),Scalar,)
1192
+$(call perlmod/InstallBaseTests,$(1),cpan/Scalar-List-Utils/t)
1193
+	$(INSTALL_DIR) $(1)/$(PERL_TESTSDIR)/cpan/Scalar-List-Utils/blib
1035 1194
 endef
1036 1195
 
1037 1196
 $(eval $(call BuildPackage,perlbase-scalar))
@@ -1045,6 +1204,7 @@ endef
1045 1204
 
1046 1205
 define Package/perlbase-sdbm-file/install
1047 1206
 $(call perlmod/Install,$(1),SDBM_File.pm auto/SDBM_File,)
1207
+$(call perlmod/InstallBaseTests,$(1),ext/SDBM_File/t)
1048 1208
 endef
1049 1209
 
1050 1210
 $(eval $(call BuildPackage,perlbase-sdbm-file))
@@ -1058,6 +1218,7 @@ endef
1058 1218
 
1059 1219
 define Package/perlbase-search/install
1060 1220
 $(call perlmod/Install,$(1),Search,)
1221
+$(call perlmod/InstallBaseTests,$(1),dist/Search-Dict/t)
1061 1222
 endef
1062 1223
 
1063 1224
 $(eval $(call BuildPackage,perlbase-search))
@@ -1084,6 +1245,7 @@ endef
1084 1245
 
1085 1246
 define Package/perlbase-selfloader/install
1086 1247
 $(call perlmod/Install,$(1),SelfLoader.pm,)
1248
+$(call perlmod/InstallBaseTests,$(1),dist/SelfLoader/t)
1087 1249
 endef
1088 1250
 
1089 1251
 $(eval $(call BuildPackage,perlbase-selfloader))
@@ -1110,6 +1272,7 @@ endef
1110 1272
 
1111 1273
 define Package/perlbase-socket/install
1112 1274
 $(call perlmod/Install,$(1),Socket.pm auto/Socket,)
1275
+$(call perlmod/InstallBaseTests,$(1),cpan/Socket/t)
1113 1276
 endef
1114 1277
 
1115 1278
 $(eval $(call BuildPackage,perlbase-socket))
@@ -1136,6 +1299,7 @@ endef
1136 1299
 
1137 1300
 define Package/perlbase-storable/install
1138 1301
 $(call perlmod/Install,$(1),Storable.pm auto/Storable,)
1302
+$(call perlmod/InstallBaseTests,$(1),dist/Storable/t)
1139 1303
 endef
1140 1304
 
1141 1305
 $(eval $(call BuildPackage,perlbase-storable))
@@ -1161,11 +1325,25 @@ endef
1161 1325
 
1162 1326
 define Package/perlbase-sys/install
1163 1327
 $(call perlmod/Install,$(1),Sys auto/Sys,)
1328
+$(call perlmod/InstallBaseTests,$(1),cpan/Sys-Syslog/t ext/Sys-Hostname/t)
1164 1329
 endef
1165 1330
 
1166 1331
 $(eval $(call BuildPackage,perlbase-sys))
1167 1332
 
1168 1333
 
1334
+define Package/perlbase-tap
1335
+$(call Package/perlbase-template)
1336
+TITLE:=TAP perl module
1337
+DEPENDS+=+perlbase-base +perlbase-benchmark +perlbase-config +perlbase-essential +perlbase-file +perlbase-io +perlbase-posix +perlbase-text
1338
+endef
1339
+
1340
+define Package/perlbase-tap/install
1341
+$(call perlmod/Install,$(1),TAP,)
1342
+endef
1343
+
1344
+$(eval $(call BuildPackage,perlbase-tap))
1345
+
1346
+
1169 1347
 define Package/perlbase-term
1170 1348
 $(call Package/perlbase-template)
1171 1349
 TITLE:=Term perl module
@@ -1174,6 +1352,7 @@ endef
1174 1352
 
1175 1353
 define Package/perlbase-term/install
1176 1354
 $(call perlmod/Install,$(1),Term,)
1355
+$(call perlmod/InstallBaseTests,$(1),cpan/Term-ANSIColor/t cpan/Term-Cap/test.pl dist/Term-Complete/t dist/Term-ReadLine/t)
1177 1356
 endef
1178 1357
 
1179 1358
 $(eval $(call BuildPackage,perlbase-term))
@@ -1182,11 +1361,13 @@ $(eval $(call BuildPackage,perlbase-term))
1182 1361
 define Package/perlbase-test
1183 1362
 $(call Package/perlbase-template)
1184 1363
 TITLE:=Test perl module
1185
-DEPENDS+=+perlbase-base +perlbase-config +perlbase-essential +perlbase-symbol +perlbase-text
1364
+DEPENDS+=+perlbase-base +perlbase-config +perlbase-essential +perlbase-symbol +perlbase-tap +perlbase-text
1186 1365
 endef
1187 1366
 
1188 1367
 define Package/perlbase-test/install
1189
-$(call perlmod/Install,$(1),Test Test.pm,Test/Harness/TAP.pod Test/Tutorial.pod)
1368
+$(call perlmod/Install,$(1),Test Test.pm,Test/Builder.pm Test/Harness/TAP.pod Test/More.pm Test/Tutorial.pod)
1369
+$(call perlmod/Install/NoStrip,$(1),Test/Builder.pm Test/More.pm,)
1370
+$(call perlmod/InstallBaseTests,$(1),cpan/Test-Harness/t cpan/Test-Simple/t cpan/Test/t)
1190 1371
 	$(INSTALL_DIR) $(1)/usr/bin
1191 1372
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prove $(1)/usr/bin
1192 1373
 endef
@@ -1197,11 +1378,12 @@ $(eval $(call BuildPackage,perlbase-test))
1197 1378
 define Package/perlbase-text
1198 1379
 $(call Package/perlbase-template)
1199 1380
 TITLE:=Text perl module
1200
-DEPENDS+=+perlbase-essential
1381
+DEPENDS+=+perlbase-essential +perlbase-selfloader
1201 1382
 endef
1202 1383
 
1203 1384
 define Package/perlbase-text/install
1204 1385
 $(call perlmod/Install,$(1),Text,)
1386
+$(call perlmod/InstallBaseTests,$(1),cpan/Text-Balanced/t cpan/Text-ParseWords/t cpan/Text-Tabs/t dist/Text-Abbrev/t)
1205 1387
 endef
1206 1388
 
1207 1389
 $(eval $(call BuildPackage,perlbase-text))
@@ -1215,6 +1397,7 @@ endef
1215 1397
 
1216 1398
 define Package/perlbase-thread/install
1217 1399
 $(call perlmod/Install,$(1),Thread Thread.pm,)
1400
+$(call perlmod/InstallBaseTests,$(1),dist/Thread-Queue/t dist/Thread-Semaphore/t)
1218 1401
 endef
1219 1402
 
1220 1403
 $(eval $(call BuildPackage,perlbase-thread))
@@ -1228,6 +1411,7 @@ endef
1228 1411
 
1229 1412
 define Package/perlbase-threads/install
1230 1413
 $(call perlmod/Install,$(1),auto/threads threads threads.pm,)
1414
+$(call perlmod/InstallBaseTests,$(1),dist/threads-shared/t dist/threads/t)
1231 1415
 endef
1232 1416
 
1233 1417
 $(eval $(call BuildPackage,perlbase-threads))
@@ -1240,7 +1424,8 @@ DEPENDS+=+perlbase-essential +perlbase-fcntl +perlbase-posix
1240 1424
 endef
1241 1425
 
1242 1426
 define Package/perlbase-tie/install
1243
-$(call perlmod/Install,$(1),Tie,)
1427
+$(call perlmod/Install,$(1),Tie auto/Tie,)
1428
+$(call perlmod/InstallBaseTests,$(1),cpan/Tie-RefHash/t dist/Tie-File/t ext/Tie-Hash-NamedCapture/t ext/Tie-Memoize/lib/Tie/Memoize.pm ext/Tie-Memoize/t)
1244 1429
 endef
1245 1430
 
1246 1431
 $(eval $(call BuildPackage,perlbase-tie))
@@ -1254,6 +1439,7 @@ endef
1254 1439
 
1255 1440
 define Package/perlbase-time/install
1256 1441
 $(call perlmod/Install,$(1),Time auto/Time,)
1442
+$(call perlmod/InstallBaseTests,$(1),cpan/Time-HiRes/t cpan/Time-Local/t cpan/Time-Piece/t)
1257 1443
 endef
1258 1444
 
1259 1445
 $(eval $(call BuildPackage,perlbase-time))
@@ -1267,6 +1453,7 @@ endef
1267 1453
 
1268 1454
 define Package/perlbase-unicode/install
1269 1455
 $(call perlmod/Install,$(1),Unicode auto/Unicode,)
1456
+$(call perlmod/InstallBaseTests,$(1),cpan/Unicode-Collate/t cpan/Unicode-Normalize/t)
1270 1457
 endef
1271 1458
 
1272 1459
 $(eval $(call BuildPackage,perlbase-unicode))
@@ -1325,11 +1512,12 @@ $(eval $(call BuildPackage,perlbase-utf8))
1325 1512
 define Package/perlbase-version
1326 1513
 $(call Package/perlbase-template)
1327 1514
 TITLE:=version perl module
1328
-DEPENDS+=+perlbase-essential
1515
+DEPENDS+=+perlbase-config +perlbase-essential
1329 1516
 endef
1330 1517
 
1331 1518
 define Package/perlbase-version/install
1332
-$(call perlmod/Install,$(1),version.pm,)
1519
+$(call perlmod/Install,$(1),version version.pm,)
1520
+$(call perlmod/InstallBaseTests,$(1),cpan/version/t)
1333 1521
 endef
1334 1522
 
1335 1523
 $(eval $(call BuildPackage,perlbase-version))
@@ -1342,6 +1530,10 @@ endef
1342 1530
 
1343 1531
 define Package/perlbase-xsloader/install
1344 1532
 $(call perlmod/Install,$(1),XSLoader.pm,)
1533
+$(call perlmod/InstallBaseTests,$(1),dist/XSLoader/t ext/XS-APItest/t ext/XS-Typemap/t)
1345 1534
 endef
1346 1535
 
1347 1536
 $(eval $(call BuildPackage,perlbase-xsloader))
1537
+
1538
+
1539
+# Generated Mon Oct 13 10:06:15 2014