File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed
Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 11use strict;
22use warnings;
33use ExtUtils::MakeMaker;
4-
5- # Make sure everything we wanted is found:
6- if (!eval { require ExtUtils::Depends; ExtUtils::Depends-> new(qw( PDL::IO::HDF Alien::HDF4) ) }) {
7- my $msg = " Error loading Alien::HDF4: '$@ '\n " ;
8- $msg .= " Skipping build of PDL::IO::HDF.\n " ;
9- write_dummy_make( $msg );
10- return ;
11- }
4+ use PDL::Core::Dev;
5+ require ExtUtils::Depends;
6+ require File::Spec::Functions;
127
138WriteMakefile(
14- NAME => ' PDL::IO::HDF' ,
15- VERSION_FROM => ' HDF.pm' ,
16- PM => {
17- ' HDF.pm' => ' $(INST_LIBDIR)/HDF.pm' ,
18- },
19- dist => {
20- COMPRESS => ' gzip' ,
21- SUFFIX => ' gz' ,
22- },
23- NO_MYMETA => 1,
9+ NAME => ' PDL::IO::HDF' ,
10+ AUTHOR => ' PerlDL Developers <pdl-general@lists.sourceforge.net>' ,
11+ VERSION_FROM => ' HDF.pm' ,
12+ CONFIGURE_REQUIRES => {
13+ ' ExtUtils::MakeMaker' => 0,
14+ ' PDL' => ' 2.094' ,
15+ ' ExtUtils::Depends' => ' 0.402' ,
16+ ' Alien::HDF4' => 0,
17+ },
18+ PREREQ_PM => {
19+ ' PDL' => ' 2.094' ,
20+ },
21+ TEST_REQUIRES => {
22+ ' Test::More' => ' 0.88' ,
23+ },
24+ PM => { ' HDF.pm' => ' $(INST_LIBDIR)/HDF.pm' },
25+ dist => { COMPRESS => ' gzip' , SUFFIX => ' gz' },
2426);
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ $pkg->add_pm(
1212);
1313
1414undef &MY::postamble; # suppress warning
15- *MY::postamble = sub { pdlpp_postamble_int ($package ); };
15+ *MY::postamble = sub { pdlpp_postamble ($package ); };
1616
1717WriteMakefile(
1818 NAME => ' PDL::IO::HDF::SD' ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use Config;
66my $package = [ qw( VS.pd VS PDL::IO::HDF::VS) ];
77
88undef &MY::postamble; # suppress warning
9- *MY::postamble = sub { pdlpp_postamble_int ($package ); };
9+ *MY::postamble = sub { pdlpp_postamble ($package ); };
1010
1111my $pkg = ExtUtils::Depends-> new(qw( PDL::IO::HDF::VS Alien::HDF4) );
1212$pkg -> set_inc(&PDL_INCLUDE());
You can’t perform that action at this time.
0 commit comments