diff options
-rw-r--r-- | perlmods/Params-Validate-0.88.tar.gz | bin | 79925 -> 0 bytes | |||
-rw-r--r-- | perlmods/Params-Validate-1.08.tar.gz | bin | 0 -> 103728 bytes | |||
-rwxr-xr-x | tools/build_perl_modules | 23 |
3 files changed, 19 insertions, 4 deletions
diff --git a/perlmods/Params-Validate-0.88.tar.gz b/perlmods/Params-Validate-0.88.tar.gz deleted file mode 100644 index 05a0167..0000000 --- a/perlmods/Params-Validate-0.88.tar.gz +++ /dev/null | |||
Binary files differ | |||
diff --git a/perlmods/Params-Validate-1.08.tar.gz b/perlmods/Params-Validate-1.08.tar.gz new file mode 100644 index 0000000..418d2a1 --- /dev/null +++ b/perlmods/Params-Validate-1.08.tar.gz | |||
Binary files differ | |||
diff --git a/tools/build_perl_modules b/tools/build_perl_modules index 4bdb81b..bcef66f 100755 --- a/tools/build_perl_modules +++ b/tools/build_perl_modules | |||
@@ -65,8 +65,15 @@ foreach my $tarball (@tarballs) { | |||
65 | unless (-e $dir) { | 65 | unless (-e $dir) { |
66 | system("gunzip -c $tarball | tar -xf -") == 0 or die "Cannot extract $tarball"; | 66 | system("gunzip -c $tarball | tar -xf -") == 0 or die "Cannot extract $tarball"; |
67 | chdir $dir or die "Can't chdir into $dir"; | 67 | chdir $dir or die "Can't chdir into $dir"; |
68 | system("perl Makefile.PL PREFIX=$destdir INSTALLDIRS=site LIB=$destdir/lib") == 0 or die "Can't run perl Makefile.PL"; | 68 | if (-e "Makefile.PL") { |
69 | system("make") == 0 or die "Can't run make"; | 69 | system("perl Makefile.PL PREFIX=$destdir INSTALLDIRS=site LIB=$destdir/lib") == 0 |
70 | or die "Can't run perl Makefile.PL"; | ||
71 | system("make") == 0 or die "Can't run make"; | ||
72 | } else { | ||
73 | system("perl Build.PL --prefix $destdir --installdirs site --install_path lib=$destdir/lib") == 0 | ||
74 | or die "Can't run perl Build.PL"; | ||
75 | system("./Build.PL") == 0 or die "Can't run ./Build"; | ||
76 | } | ||
70 | chdir $topdir or die "Can't chdir to top";; | 77 | chdir $topdir or die "Can't chdir to top";; |
71 | } | 78 | } |
72 | } | 79 | } |
@@ -79,10 +86,18 @@ foreach my $tarball (@tarballs) { | |||
79 | $ENV{PERL5LIB}=join(":", @dirs); | 86 | $ENV{PERL5LIB}=join(":", @dirs); |
80 | 87 | ||
81 | if ($opts->{t}) { | 88 | if ($opts->{t}) { |
82 | system("make test") == 0 or die "Can't run make test failed"; | 89 | if (-e "Makefile") { |
90 | system("make test") == 0 or die "Can't run make test failed"; | ||
91 | } else { | ||
92 | system("./Build test") == 0 or die "./Build test failed"; | ||
93 | } | ||
83 | } | 94 | } |
84 | if ($opts->{i}) { | 95 | if ($opts->{i}) { |
85 | system("make install SITEPREFIX=$destdir") == 0 or die "Can't run make install"; | 96 | if (-e "Makefile") { |
97 | system("make install SITEPREFIX=$destdir") == 0 or die "Can't run make install"; | ||
98 | } else { | ||
99 | system("./Build install") == 0 or die "Can't run ./Build install"; | ||
100 | } | ||
86 | } | 101 | } |
87 | chdir $topdir or die "Can't go back to $topdir"; | 102 | chdir $topdir or die "Can't go back to $topdir"; |
88 | } | 103 | } |