forked from mbarbon/apache2-camelcadedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
65 lines (57 loc) · 1.91 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
#!perl
use 5.008;
use ModPerl::MM ();
use Apache::TestMM qw(test clean);
use Apache::TestRunPerl ();
my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) {
$mm_ver = eval $mm_ver;
die $@ if $@;
}
my %test_requires = (
'Test::More' => 0,
'JSON::XS' => 0,
);
my %configure_requires = (
'mod_perl2' => 0,
'Apache::TestMM' => 0,
);
# configure tests based on incoming arguments
Apache::TestMM::filter_args();
# provide the test harness
Apache::TestRunPerl->generate_script();
ModPerl::MM::WriteMakefile(
NAME => 'Apache2::Camelcadedb',
AUTHOR => 'Mattia Barbon <[email protected]>',
VERSION_FROM => 'lib/Apache2/Camelcadedb.pm',
ABSTRACT_FROM => 'lib/Apache2/Camelcadedb.pm',
PREREQ_PM => {
'mod_perl2' => 0,
'Devel::Camelcadedb' => 0,
$mm_ver < 6.5503 ? %test_requires : (),
},
( $mm_ver >= 6.48 ? ( MIN_PERL_VERSION => 5.008 ) :
() ),
( $mm_ver >= 6.64 ? ( TEST_REQUIRES => \%test_requires ) :
$mm_ver >= 6.5503 ? ( BUILD_REQUIRES => \%test_requires ) :
() ),
( $mm_ver >= 6.52 ? ( CONFIGURE_REQUIRES => \%configure_requires ) :
() ),
( $mm_ver >= 6.31 ? ( LICENSE => 'perl' ) :
() ),
( $mm_ver >= 6.46 ?
( META_MERGE => {
"meta-spec" => { version => 2 },
resources => {
bugtracker => {
web => 'https://github.com/mbarbon/apache2-camelcadedb/issues',
},
repository => {
url => '[email protected]:mbarbon/apache2-camelcadedb.git',
web => 'https://github.com/mbarbon/apache2-camelcadedb',
type => 'git',
},
},
},
) : () ),
);