-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
69 lines (63 loc) · 1.5 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
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
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Mock::Config',
AUTHOR => q{Reini Urban <[email protected]>},
VERSION_FROM => 'lib/Mock/Config.pm',
ABSTRACT_FROM => 'lib/Mock/Config.pm',
LICENSE => 'artistic_2',
PL_FILES => {},
MIN_PERL_VERSION => 5.006,
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
BUILD_REQUIRES => {
'Test::More' => 0,
},
PREREQ_PM => {
#'ABC' => 1.6,
#'Foo::Bar::Module' => 5.0401,
},
clean => { FILES => 'Mock-Config-*' },
SIGN => 1,
dist => {
PREOP => 'pod2text \$(VERSION_FROM) | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
COMPRESS => 'gzip -9v',
SUFFIX => '.gz',
},
($ExtUtils::MakeMaker::VERSION gt '6.46' ?
('META_MERGE' =>
{suggests =>
{
'XSConfig' => '6.19',
},
resources =>
{
license => 'http://dev.perl.org/licenses/',
bugtracker => 'https://github.com/perl11/Mock-Config/issues',
repository => 'https://github.com/perl11/Mock-Config',
},
}
) : ()),
);
package MY;
sub top_targets {
local $_ = shift->SUPER::top_targets(@_);
s/\$\(FIRST_MAKEFILE\) blibdirs/\$(FIRST_MAKEFILE\) blibdirs README/;
$_
}
sub depend {
"
README : \$(VERSION_FROM)
pod2text \$(VERSION_FROM) > README
release : xtest dist
-git tag -f \$(VERSION)
cpan-upload \$(DISTVNAME).tar\$(SUFFIX)
git push
git push --tags
xtest :
\$(MAKE) test RELEASE_TESTING=1
"
}