File: Makefile.PL

package info (click to toggle)
appconfig 1.71-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 304 kB
  • ctags: 62
  • sloc: perl: 1,950; makefile: 2
file content (70 lines) | stat: -rw-r--r-- 1,842 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
67
68
69
70
use ExtUtils::MakeMaker;

my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) { # dev version
    $mm_ver = eval $mm_ver;
    die $@ if $@;
}

my %config = (
    'NAME'	   => 'AppConfig',
    'VERSION_FROM' => 'lib/AppConfig.pm', # finds $VERSION
    'PMLIBDIRS'    => [ 'lib' ],
    'PREREQ_PM'    => {
        'Test::More'    => 0,
    },
    'MAN3PODS' => {
        # We must explicitly name AppConfig.pm et al as manifyable files.
        # MakeMaker ignores files that match  /(config|setup).*\.pm/i;
        'lib/AppConfig.pm'  => '$(INST_MAN3DIR)/AppConfig.$(MAN3EXT)',
        map {
            ( "lib/AppConfig/${_}.pm",
              "\$(INST_MAN3DIR)/AppConfig::${_}.\$(MAN3EXT)" ) ;
        } qw( Args CGI File Getopt State Sys ),
    },
    'dist' => {
        'COMPRESS' => 'gzip',
        'SUFFIX'   => 'gz',
    },

    ($mm_ver <= 6.45
        ? ()
        : (META_MERGE => {
            'meta-spec' => { version => 2 },
            resources => {
                repository  => {
                    type => 'git',
                    web  => 'https://github.com/neilbowers/AppConfig',
                    url  => 'git://github.com/neilbowers/AppConfig.git',
                },
            },
          })
    ),

    ($mm_ver <= 6.45
        ? ()
        : (TEST_REQUIRES => {
            # optional modules only required for testing
            'Test::Pod' => '1.0',
        })
    ),

    ($mm_ver < 6.48
        ? ()
        : (MIN_PERL_VERSION => '5.8.8',)
    ),

    ($mm_ver <= 6.31
        ? ()
        : (LICENSE => 'perl_5')
    ),

);

## for PPD on win32
if ($] ge '5.005') {
    $config{ AUTHOR   } = 'Andy Wardley <abw@wardley.org>',
    $config{ ABSTRACT } = 'AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments.';
}

WriteMakefile(%config);