| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Math::GSL::Alien; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
487139
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
91
|
|
|
4
|
2
|
|
|
2
|
|
15
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
109
|
|
|
5
|
2
|
|
|
2
|
|
34
|
use 5.008001; |
|
|
2
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.05'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
9
|
use base 'Alien::Base'; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
1063
|
|
|
10
|
2
|
|
|
2
|
|
51722
|
use Role::Tiny::With qw( with ); |
|
|
2
|
|
|
|
|
9097
|
|
|
|
2
|
|
|
|
|
162
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Alien::Role::Dino'; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=encoding UTF-8 |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Math::GSL::Alien - Easy installation of the GSL library |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# Build.PL |
|
25
|
|
|
|
|
|
|
use Math::GSL::Alien; |
|
26
|
|
|
|
|
|
|
use Module::Build 0.28; # need at least 0.28 |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $builder = Module::Build->new( |
|
29
|
|
|
|
|
|
|
configure_requires => { |
|
30
|
|
|
|
|
|
|
'Math::GSL::Alien' => '1.00', # first release |
|
31
|
|
|
|
|
|
|
}, |
|
32
|
|
|
|
|
|
|
... |
|
33
|
|
|
|
|
|
|
extra_compiler_flags => Alien::GSL->cflags, |
|
34
|
|
|
|
|
|
|
extra_linker_flags => Alien::GSL->libs, |
|
35
|
|
|
|
|
|
|
... |
|
36
|
|
|
|
|
|
|
); |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$builder->create_build_script; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# lib/MyLibrary/GSL.pm |
|
42
|
|
|
|
|
|
|
package MyLibrary::GSL; |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use Math::GSL::Alien; # dynaload gsl |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
... |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Provides the Gnu Scientific Library (GSL) for use by Perl modules, installing it if necessary. |
|
51
|
|
|
|
|
|
|
This module relies heavily on the L system to do so. |
|
52
|
|
|
|
|
|
|
To avoid documentation skew, the author asks the reader to learn about the capabilities provided by that module rather than repeating them here. |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
The difference between this module and L |
|
55
|
|
|
|
|
|
|
is that this module will download and install a shared version of the GSL library, |
|
56
|
|
|
|
|
|
|
whereas C will install a static version of the GSL library. |
|
57
|
|
|
|
|
|
|
The shared version is needed by L, |
|
58
|
|
|
|
|
|
|
see L. |
|
59
|
|
|
|
|
|
|
It will also reduce the size of the generated Perl XS libraries (C<.so>, C<.xs.dll>). |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=over |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
L |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item * |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
L |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
L |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=back |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 SOURCE REPOSITORY |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 AUTHOR |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=over 4 |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item Joel Berger, Ejoel.a.berger@gmail.comE |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item Håkon Hægland, Ehakon.hagland@gmail.comE |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Copyright (C) 2011-2015 by Joel Berger |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
102
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
|