-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.PL
64 lines (59 loc) · 1.99 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
use strict;
use warnings FATAL => 'all';
use ExtUtils::MakeMaker;
use Cwd;
use lib qw(lib);
use Tephra::Config::Install;
use Getopt::Long;
my %opts;
GetOptions(\%opts, 'debug|d');
if (eval ($ExtUtils::MakeMaker::VERSION) <= 6.55) {
print "\n[[ERROR]]: ExtUtils::MakeMaker >= 6.5503 is required to build the package correctly.\n";
print "The installed version is $ExtUtils::MakeMaker::VERSION.\n";
print "Install the latest ExtUtils::MakeMaker and try again. Exiting.\n";
exit(1);
}
WriteMakefile(
NAME => 'Tephra',
AUTHOR => q{S. Evan Staton <[email protected]>},
VERSION_FROM => 'bin/tephra',
LICENSE => 'MIT',
PL_FILES => {},
MIN_PERL_VERSION => 5.014,
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 6.5503,
},
BUILD_REQUIRES => {
'Test::More' => 0,
},
PREREQ_PM => {
'Moose' => 0,
'MooseX::Types::Path::Class' => 0,
'Parallel::ForkManager' => 0,
'IPC::System::Simple' => 0,
'Sort::Naturally' => 0,
'List::MoreUtils' => 0,
'List::UtilsBy' => 0,
'Number::Range' => 0,
'Set::IntervalTree' => 0,
'Statistics::Descriptive' => 0,
'App::Cmd' => 0,
'Log::Any' => 0,
'Try::Tiny' => 0,
'Capture::Tiny' => 0,
'HTTP::Tiny' => 0,
'HTML::TreeBuilder' => 0,
'autodie' => 0,
},
INST_SCRIPT => 'blib/bin',
EXE_FILES => [ 'bin/tephra', 'bin/tephra-getphmm' ],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
test => { TESTS => 't/*.t' },
clean => { FILES => [ 't/test_data/*.fai', 'src/*.o', 'src/tephra-*', 't/test_data/TAIR*' ] },
);
{
print STDERR "=====> Configuring Tephra, this may take some time...";
my $cwd = getcwd();
my $confobj = Tephra::Config::Install->new( workingdir => $cwd, debug => $opts{debug} );
my $config = $confobj->configure_root;
}