Skip to content

Commit

Permalink
This module now depends on PerlGSL::DiffEq
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed May 9, 2012
1 parent e4d3f4e commit a7034c4
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 7,870 deletions.
48 changes: 3 additions & 45 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,19 @@ use warnings;
use 5.008000;
use Module::Build;

my $min_gsl_version = 1.15;

sub exit_early {
my $message = shift || "";

print "Math::GSLx::ODEIV2 requires GSL version >= $min_gsl_version" . $message . "\n";
exit 0;
}

my $gsl_version = qx/ gsl-config --version /;
exit_early("\n [gsl-config --version: $!]") if ($?);

chomp($gsl_version);

if ($gsl_version < $min_gsl_version) {
exit_early(", but you only have $gsl_version");
}

my $gsl_libs = qx! gsl-config --libs !;

my $have_pdl = Module::Build->check_installed_status('PDL')->{ok};
my $extra_compiler_flags .=
'-Iinc' . ( $have_pdl ? ' -DMATH_GSLX_ODEIV2_USE_PDL' : '' );

my $build = Module::Build->new(
module_name => 'Math::GSLx::ODEIV2',
dist_version_from => 'lib/Math/GSLx/ODEIV2.pm',
dist_abstract => 'Solve ODEs using Perl and GSL v1.15+',
dist_author => 'Joel Berger <joel.a.berger@gmail.com>',
license => 'perl',
requires => {
'perl' => '5.008',
parent => 0,
'perl' => '5.008',
parent => 0,
'PerlGSL::DiffEq' => 0.08,
},
configure_requires => {
'Module::Build' => 0.38,
},
build_requires => {
'ExtUtils::CBuilder' => 0,
},
c_source => 'src',
extra_compiler_flags => $extra_compiler_flags,
extra_linker_flags => $gsl_libs,
#meta_merge => {
# resources => {
# repository => {
# type => "git",
# url => "git://github.com/jberger/Math-GSLx-ODEIV2.git",
# web => "http://github.com/jberger/Math-GSLx-ODEIV2",
# },
# },
#},
);

$build->config_data('have_pdl', $have_pdl);

$build->create_build_script;

14 changes: 4 additions & 10 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
Changes
Build.PL
MANIFEST
Changes
lib/Math/GSLx/ODEIV2.pm
MANIFEST This list of files
README
t/00-use.t
t/odes_simple.t
t/ode_system.t
t/odes_simple.t
t/sine.t
t/sine_bad.t
t/sine_jacobian.t
lib/Math/GSLx/ODEIV2.pm
lib/Math/GSLx/ODEIV2.xs
src/common.c
src/container.c
inc/common.h
inc/container.h
inc/ppport.h
24 changes: 0 additions & 24 deletions inc/common.h

This file was deleted.

3 changes: 0 additions & 3 deletions inc/container.h

This file was deleted.

Loading

0 comments on commit a7034c4

Please sign in to comment.