-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
66 lines (60 loc) · 1.91 KB
/
Build.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
use strict;
use warnings;
use lib "inc";
#### we need the platform-specific module
my %platforms =(
# Unix = default, thus not listing all UNIX like systems
MSWin32 => 'Windows',
);
my $package = 'My::Builder::' . ($platforms{$^O} || 'Unix');
print "Gonna use '$package' class ...\n";
eval "require $package" or die "Require '$package' failed: $@\n";
my $builder = $package->new(
module_name => 'Alien::AntTweakBar',
dist_version_from => 'lib/Alien/AntTweakBar.pm',
dist_author => 'DMOL, dmol@cpan.org',
license => 'perl',
configure_requires => {
'perl' => '5.008',
'Archive::Extract' => 0,
'Devel::CheckLib' => '1.01',
'Digest::SHA' => 0,
'File::chdir' => 0.1008,
'File::Basename' => 0,
'File::Copy' => 0,
'File::Fetch' => 0,
'File::Path' => 0,
'File::ShareDir' => 0,
'ExtUtils::Command' => 0,
'ExtUtils::CBuilder' => 0,
'ExtUtils::Liblist' => 0,
'Module::Build' => 0,
'Text::Patch' => 0,
},
requires => {
'perl' => 5.008,
'Carp' => 0,
'File::ShareDir' => 0,
'File::Spec' => 0,
'Text::ParseWords' => 0,
},
test_requires => {
'Test::More' => 0,
},
share_dir => 'sharedir',
add_to_cleanup => [ 'Alien-AntTweakBar-*', 'build_done' ],
meta_merge => {
resources => {
bugtracker => 'https://github.com/PerlGameDev/Alien-AntTweakBar/issues',
repository => 'https://github.com/PerlGameDev/Alien-AntTweakBar',
}
},
# option: Build.PL --srctarball=<url_or_filename>
get_options => { srctarball => { type => '=s' } },
);
$builder->create_build_script;
unlink 'build_done';
$builder->notes(src_url =>
'http://downloads.sourceforge.net/project/anttweakbar/AntTweakBar_116.zip'
);
$builder->notes('sha1', '5743321df3b074f9a82b5ef3e6b54830a715b938');