File: Makefile.PL

package info (click to toggle)
libstring-format-perl 1.18-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 132 kB
  • sloc: perl: 173; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 757 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
use strict;
use ExtUtils::MakeMaker;

my %clean = (
    'FILES' => '$(DISTVNAME).tar$(SUFFIX)'
);

my $eumm_recent_enough = $ExtUtils::MakeMaker::VERSION >= 6.54;

if (!$eumm_recent_enough) {
    *MY::dist_core = sub {
	<<'EOF';
dist :
	$(NOECHO) $(ECHO) "Sorry, use a newer EUMM!"

EOF
    };
}

WriteMakefile(
    'NAME'          => 'String::Format',
    'VERSION_FROM'  => 'Format.pm',
    'clean'         => \%clean,
    'PREREQ_PM'     => {
        'Test::More' => 0.00,
    },
    AUTHOR => ['Slaven Rezic <srezic@cpan.org>', 'darren chamberlain <darren@cpan.org>'],

    ($eumm_recent_enough
     ? (META_MERGE => {
        resources  => {
            repository => 'git://github.com/dlc/string--format.git',
        } }
       )
     : ()
    ),
);