File: Makefile.PL

package info (click to toggle)
libpdl-stats-perl 0.855-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 468 kB
  • sloc: perl: 1,459; makefile: 3
file content (66 lines) | stat: -rw-r--r-- 1,726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
use strict;
use warnings;
use ExtUtils::MakeMaker;
use PDL::Core::Dev;

my $package_name = "PDL::Stats";
(my $repo = $package_name) =~ s#::#-#g;
$repo = "PDLPorters/$repo";
WriteMakefile(
    NAME                => $package_name,
    AUTHOR              => 'Maggie J. Xiong  <maggiexyz users.sourceforge.net>',
    VERSION_FROM        => 'lib/PDL/Stats.pm',
    ABSTRACT_FROM       => 'lib/PDL/Stats.pm',
    MIN_PERL_VERSION => '5.016', # https://github.com/Perl/perl5/issues/11835
    LICENSE=> 'perl',
    PREREQ_PM => {
        'PDL'  => '2.099', # badflag propagation fixed
    },
    CONFIGURE_REQUIRES => {
        'PDL'  => '2.099',
    },
    BUILD_REQUIRES => {
        'PDL'  => '2.099',
    },
    TEST_REQUIRES => {
        'Test::More' => '0.88', # done_testing
        'Test::PDL' => '0.21',
    },
    clean               => { FILES => ['PDL-Stats-*'] },
    META_MERGE          => {
      "meta-spec" => { version => 2 },
      prereqs => {
        develop => {
          requires => {
            'CPAN::Changes' => 0,
          },
        },
        runtime => {
          recommends => {
            'PDL::Graphics::Simple' => 0,
            'PDL::GSL' => 0,
          },
        },
      },
      resources => {
        bugtracker  => {web=>"https://github.com/$repo/issues"},
        repository  => {
          type => 'git',
          url => "git://github.com/$repo.git",
          web => "https://github.com/$repo",
        },
        x_IRC => 'irc://irc.perl.org/#pdl',
      },
    },
);

{
my @pd_srcs;
package MY; # so that "SUPER" works right
sub init_PM {
  my ($self) = @_;
  $self->SUPER::init_PM;
  @pd_srcs = ::pdlpp_eumm_update_deep($self);
}
sub postamble { ::pdlpp_postamble(@pd_srcs) }
}