-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.PL
72 lines (65 loc) · 2.04 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
70
71
72
#!/usr/bin/perl
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::Find;
my %recommended = (
'SVG' => '0',
'Math::Random' => '0',
'Math::CDF' => '0',
'XML::XML2JSON' => '0',
'XML::Twig' => '0',
'XML::LibXML' => '0',
'List::Util' => '0',
'SWF::Builder' => '0',
'PDF::API2' => '0',
'GD' => '0',
'JSON' => '0',
'Archive::Zip' => '0',
'RDF::Trine' => '0',
'RDF::Query' => '0',
);
check_prereq( keys %recommended );
my %parms = (
'NAME' => 'Bio::Phylo', # EU::MM apparently now wants Package::Name
'AUTHOR' => 'Rutger Vos',
'PL_FILES' => {},
'EXE_FILES' => [],
'VERSION_FROM' => 'lib/Bio/Phylo.pm',
'LICENSE' => 'perl',
'ABSTRACT' => 'An object-oriented Perl toolkit for analyzing and manipulating phyloinformatic data.',
'clean' => {},
'dist' => {
'COMPRESS' => 'gzip -9f',
'SUFFIX' => 'gz',
'TARFLAGS' => '-c -v -f',
},
);
if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
$parms{META_MERGE} = {
resources => {
homepage => 'http://biophylo.blogspot.com/',
bugtracker => 'https://github.com/rvosa/bio-phylo/issues',
repository => 'git://github.com/rvosa/bio-phylo.git',
license => 'http://dev.perl.org/licenses/',
MailingList => 'mailto:[email protected]',
},
'recommends' => \%recommended,
};
}
if ( $ExtUtils::MakeMaker::VERSION ge '6.48' ) {
$parms{MIN_PERL_VERSION} = '5.8.0';
}
WriteMakefile( %parms );
sub check_prereq {
my @classes = @_;
for my $class ( @classes ) {
eval "require $class";
if ( $@ ) {
print "*** The optional dependency \"$class\" can't be loaded.\n";
print " I will continue, but some functionality will not be \n";
print " available. Refer to the Bio::Phylo README file for\n";
print " more information.\n\n";
}
}
}