Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
# Stolen from PDL::Graphics::PLplot's Makefile.PL | ||
use ExtUtils::MakeMaker; | ||
eval { | ||
require PDL::Core; | ||
require PDL::Core::Dev; | ||
PDL::Core::Dev->import; | ||
}; | ||
my $pdl_installed = ($@) ? 0 : 1; # make always == 1 for install from PDL distro. | ||
|
||
if (!$pdl_installed) { | ||
# write dummy makefile if PDL not installed | ||
WriteMakefile( | ||
'NAME' => 'PDL::Stats::Basic', | ||
'PREREQ_PM' => { 'PDL' => '2.4.4' }, | ||
); | ||
print STDERR "Wrote dummy Makefile for cpan install\n"; | ||
exit; | ||
} else { | ||
if (defined(&PDL::indx)) { | ||
print STDERR "*** PDL with 64bit support detected. ***\n*** Please note that PDL::Stats does not currently have 64bit support. ***\n"; | ||
} | ||
use PDL::Core::Dev; | ||
if (defined(&PDL::indx)) { | ||
print STDERR "*** PDL with 64bit support detected. ***\n*** Please note that PDL::Stats does not currently have 64bit support. ***\n"; | ||
} | ||
|
||
eval q{ | ||
$package = ["stats_basic.pp",Basic,PDL::Stats::Basic]; | ||
%hash = pdlpp_stdargs($package); | ||
eval q{ | ||
$package = ["stats_basic.pp",Basic,PDL::Stats::Basic]; | ||
%hash = pdlpp_stdargs($package); | ||
WriteMakefile( %hash ); | ||
WriteMakefile( %hash ); | ||
sub MY::postamble {pdlpp_postamble($package)}; | ||
}; | ||
} | ||
sub MY::postamble {pdlpp_postamble($package)}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters