Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (41 sloc) 1.212 kb
33625cda »
2012-05-10 added PerlGSL::DiffEq conditionally if GSL >= 1.15 is available
1 use strict;
2 use warnings;
3
4 use 5.008000;
5 use Module::Build;
6
7 chomp( my $gsl_version = qx/ gsl-config --version / );
8
9 my $can_diffeq = 0;
10 if ( defined $gsl_version and $gsl_version >= 1.15 ) {
11 $can_diffeq = 1;
12 } else {
13 print "PerlGSL::DiffEq requires GSL version >= $min_gsl_version\n"
14 }
15
16 my $build = Module::Build->new(
17 module_name => 'PerlGSL::DiffEq',
18 dist_version_from => 'lib/PerlGSL/DiffEq.pm',
19 dist_abstract => 'A Collection of Perlish Interfaces to the GSL',
20 dist_author => 'Joel Berger <joel.a.berger@gmail.com>',
21 license => 'perl',
22 requires => {
23 'perl' => '5.008',
24 parent => 0,
25 'PerlGSL::Integration::SingleDim' => 0.001,
81b0b2bd »
2012-05-10 use specific versions of the imported modules
26 'PerlGSL::Integration::MultiDim' => 0.002,
33625cda »
2012-05-10 added PerlGSL::DiffEq conditionally if GSL >= 1.15 is available
27 $can_diffeq ? ( 'PerlGSL::DiffEq' => 0.08 ) : (),
28 },
29 recommends => {
30 'PerlGSL::DiffEq' => 0.08,
31 }
32 configure_requires => {
33 'Module::Build' => 0.38,
34 },
35 meta_merge => {
36 resources => {
37 repository => "http://github.com/jberger/PerlGSL",
38 bugtracker => "http://github.com/jberger/PerlGSL/issues",
39 },
40 no_index => {
41 file => [ 'README.pod' ],
42 },
43 },
44 );
45
46 $build->create_build_script;
47
Something went wrong with that request. Please try again.