-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathBuild.PL
81 lines (72 loc) · 2.3 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
###############################################################################
#
# Module::Build file for Image::Size
#
###############################################################################
use 5.006001;
use strict;
use warnings;
use File::Spec;
use Module::Build;
my $class = Module::Build->subclass(
class => 'Image::Size::Builder',
code => q|
sub ACTION_dist
{
my $self = shift;
# Create the text ChangeLog
$self->do_system('changelog2x',
qw(--template text
--input ChangeLog.xml
--output ChangeLog));
# Create the text README
$self->do_system('textile2x',
qw(--format plaintext
--input README.textile
--output README));
$self->SUPER::ACTION_manifest();
$self->SUPER::ACTION_dist();
}
|);
my $builder = $class->new(
module_name => 'Image::Size',
license => 'perl',
dist_author => 'Randy J. Ray <rjray@blackperl.com>',
dist_abstract => 'A library to extract height/width from images',
dist_version_from => 'lib/Image/Size.pm',
build_requires =>
{
'Module::Build' => '0.28',
'Test::More' => '0.80',
},
requires =>
{
'perl' => '5.006001',
'File::Spec' => '0.8',
},
recommends =>
{
'Compress::Zlib' => '2',
},
script_files => [ qw(imgsize) ],
add_to_cleanup => [ qw(Image-Size-*
ChangeLog
README
MANIFEST
MANIFEST.bak
META.yml
META.json
Makefile.PL) ],
meta_merge =>
{
resources =>
{
homepage => 'http://search.cpan.org/dist/Image-Size',
bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Image-Size',
repository => 'http://github.com/rjray/image-size',
}
},
create_makefile_pl => 'traditional',
);
$builder->create_build_script();
exit 0;