File: Makefile.PL

package info (click to toggle)
libpdl-ccs-perl 1.24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 612 kB
  • sloc: perl: 2,720; makefile: 3; ansic: 3
file content (61 lines) | stat: -rw-r--r-- 1,697 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
use ExtUtils::MakeMaker;
require 5.10.0;  ##-- for the `//=` operator
require "./pdlmaker.plm";
pdlmaker_init();

##-- prerequisites (for PREREQ_PM)
my %prereq = (
  'PDL' => '2.081',
  'PDL::VectorValued' => '1.0.4',
  'File::Basename' => 0,
);

##-- read in user variables
do "./Config.PL";
die "$0: reading './Config.PL' failed: $@" if ($@);

##-- put 'realclean_files' in a variable: avoid MakeMaker puking with:
##     ERROR from evaluation of .../ccsutils/Makefile.PL:
##     Modification of a read-only value attempted at /usr/share/perl/5.8/Carp/Heavy.pm line 45.
my $realclean_files = join(' ',
                           qw(*~ *.tmp),
                           (-e 'README.rpod' ? qw(README.txt README.html) : qw()),
                           (-e 'Config.PL' ? qw(CCS/Config.pm) : qw()),
                          );
WriteMakefile(
  NAME   =>'PDL::CCS',
  AUTHOR => 'Bryan Jurish',
  ABSTRACT =>'Sparse N-dimensional PDLs with compressed column storage',
  ##
  VERSION_FROM => 'CCS.pm',
  LICENSE => 'perl',
  ##
  #PM => { (map {$_=>"\$(INST_LIBDIR)/CCS/$_"} <*.pm>), },
  DIR =>[
    'CCS',
  ],
  realclean=>{ FILES=>$realclean_files, },
  PREREQ_PM => {%prereq},
  TEST_REQUIRES => {
    'Test::More' => '0.88',
  },
  CONFIGURE_REQUIRES => {
    %prereq,
    'ExtUtils::MakeMaker'=>0,
    'Data::Dumper' => 0,
  },
  ##
  META_MERGE => {
    "meta-spec" => { version => 2 },
    resources => {
      repository => {
        url => 'git://github.com/moocow-the-bovine/PDL-CCS.git',
        type => 'git',
        web => 'https://github.com/moocow-the-bovine/PDL-CCS',
      },
    },
  },
);

##-- avoid applying 'processPL' rules to 'Config.PL'
sub MY::processPL { return ''; }