Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (31 sloc) 1.096 kB
4f42589 @kmx the first working version
authored
1 use strict;
2 use warnings;
3 use Module::Build;
4
5 BEGIN {
6 unless (`gsl-config --version` || `pkg-config --modversion gsl`) {
7 warn "\n###FATAL### GSL library not found on your system\n";
8 exit 0;
9 }
10 }
11
12 my $builder = Module::Build->new(
0b85ba3 @kmx patch for README
authored
13 module_name => 'Math::EasyGSL',
14 license => 'perl',
15 dist_author => q{KMX <kmx@cpan.org>},
16 dist_version_from => 'lib/Math/EasyGSL.pm',
17 build_requires => { #need to have for running: ./Build (install|test)
18 'Test::More' => 0,
19 'Test::Number::Delta' => 0,
20 },
21 c_source => 'src', # ppport.h
22 create_readme => 1,
23 extra_linker_flags => `gsl-config --libs` || `pkg-config --libs gsl`,
24 extra_compiler_flags=> `gsl-config --cflags` || `pkg-config --cflags gsl`,
25 add_to_cleanup => [ 'Math-EasyGSL-*' ],
26 meta_merge => {
27 resources => {
28 bugtracker => 'https://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-EasyGSL',
29 repository => 'https://github.com/kmx/perl-math-easygsl'
4f42589 @kmx the first working version
authored
30 },
0b85ba3 @kmx patch for README
authored
31 },
4f42589 @kmx the first working version
authored
32 );
33
34 $builder->create_build_script();
Something went wrong with that request. Please try again.