summaryrefslogtreecommitdiff
path: root/dev-perl/Time-Moment/files/0.38-makefilepl.patch
blob: b19e402df94ae2fb865fd3ba386097158141b05b (plain)
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
diff -Naur Time-Moment-0.38/Makefile.PL Time-Moment-0.38b/Makefile.PL
--- Time-Moment-0.38/Makefile.PL	2015-10-09 11:44:58.000000000 +0000
+++ Time-Moment-0.38b/Makefile.PL	2016-02-28 10:29:46.187136188 +0000
@@ -3,27 +3,10 @@
 
 BEGIN {
     unshift @INC, 'inc';
-
-    my @required = (
-        'inc::Module::Install'           => '1.00',
-        'Module::Install::XSUtil'        => '0.36',
-        'Module::Install::ReadmeFromPod' => '0',
-    );
-
-    my @missing;
-    while(my($module, $version) = splice(@required, 0, 2)) {
-        eval qq{use $module $version (); 1}
-          or push @missing, $module;
-    }
-
-    if(@missing) {
-        print qq{# The following modules are not available.\n};
-        print qq{# `perl $0 | cpanm` will install them:\n};
-        s/\A inc:: //x for @missing;
-        print $_, "\n" for @missing;
-        exit 1;
-     }
 }
+use inc::Module::Install 1.00 ();
+use Module::Install::XSUtil 0.36 ();
+use Module::Install::ReadmeFromPod 0 ();
 
 use inc::Module::Install;