-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.PL
More file actions
73 lines (58 loc) · 2.06 KB
/
Copy pathMakefile.PL
File metadata and controls
73 lines (58 loc) · 2.06 KB
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
use strict;
use warnings;
use ExtUtils::MakeMaker;
use PDL::Core::Dev;
sub MY::libscan {
package MY;
my ($self, $file) = @_;
# Don't install the README.pod or any .pl file
return undef if $file =~ /\.pl$|^README.pod/;
return $self->SUPER::libscan ($file);
}
sub MY::postamble { pdldoc_add() }
WriteMakefile(
NAME => 'PDL::Transform::Color',
AUTHOR => 'Craig DeForest <craig@deforest.org>',
VERSION_FROM => 'lib/PDL/Transform/Color.pm',
ABSTRACT_FROM => 'lib/PDL/Transform/Color.pm',
LICENSE => 'perl',
MIN_PERL_VERSION => '5.010',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '6.48',
'PDL' => '2.105', # pdldoc_add
},
TEST_REQUIRES => {
'Test::More' => '0.88',
},
PREREQ_PM => {
'PDL' => '2.094', # Test::PDL
'PDL::Graphics::ColorSpace' => '0.203',
},
META_ADD => {
resources => {
homepage => 'http://github.com/PDLPorters/PDL-Transform-Color',
repository => 'git://github.com/PDLPorters/PDL-Transform-Color.git',
bugtracker => 'http://github.com/PDLPorters/PDL-Transform-Color/issues'
}
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'PDL-Transform-Color-* pdl_transform_color_test_* *~' },
);
# reroute the main POD into a separate README.pod if requested. This is here
# purely to generate a README.pod for the github front page
my $POD_header = <<EOF;
=head1 OVERVIEW
This module provides transformations for manipulating color. This repository
stores the history for the PDL::Transform::Color module on CPAN.
=cut
EOF
if(exists $ARGV[0] && $ARGV[0] eq 'README.pod')
{
open MOD, 'lib/PDL/Transform/Color.pm ' or die "Couldn't open main module";
open README, '>README.pod' or die "Couldn't open README.pod";
print README $POD_header;
while (<MOD>)
{
if (/^=/../^=cut/) { print README; }
}
}