/
Makefile.PL
44 lines (40 loc) · 1.32 KB
/
Makefile.PL
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
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $BUILD_REQUIRES = {
'ExtUtils::MakeMaker' => 0,
'Test::More' => 0,
};
sub build_req {
my $tometa = ' >> $(DISTVNAME)/META.yml;';
my $build_req = 'echo "build_requires:" ' . $tometa;
foreach my $mod ( sort { lc $a cmp lc $b } keys %$BUILD_REQUIRES ) {
my $ver = $BUILD_REQUIRES->{$mod};
$build_req .= sprintf 'echo " %-30s %s" %s', "$mod:", $ver, $tometa;
}
return $build_req;
}
WriteMakefile(
NAME => 'CPANPLUS::Dist::Gentoo',
AUTHOR => 'Vincent Pit <perl@profvince.com>',
LICENSE => 'perl',
VERSION_FROM => 'lib/CPANPLUS/Dist/Gentoo.pm',
ABSTRACT_FROM => 'lib/CPANPLUS/Dist/Gentoo.pm',
PL_FILES => {},
PREREQ_PM => {
'Carp' => 0,
'CPANPLUS' => 0,
'Cwd' => 0,
'File::Copy' => 0,
'File::Path' => 0,
'File::Spec::Functions' => 0,
'IPC::Cmd' => 0,
},
dist => {
PREOP => 'pod2text lib/CPANPLUS/Dist/Gentoo.pm > $(DISTVNAME)/README; '
. build_req,
COMPRESS => 'gzip -9f', SUFFIX => 'gz'
},
clean => { FILES => 'CPANPLUS-Dist-Gentoo-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },
);