forked from mgjv/GDGraph
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.PL
112 lines (92 loc) · 2.96 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This -*- perl -*- script makes the Makefile
# $Id: Makefile.PL,v 1.1 2005/12/14 04:21:45 ben Exp $
#--- Distribution section ---
use ExtUtils::MakeMaker 6.76;
use Config;
#use ExtUtils::Manifest;
#ExtUtils::Manifest::skipcheck();
my @clean = qw(*.old *.save tags);
push @clean, map { "*/$_" } @clean;
WriteMakefile(
'VERSION_FROM' => 'Graph.pm', #finds $VERSION
'DISTNAME' => 'GDGraph',
'NAME' => 'GD::Graph',
($] >= 5.005 ?
('ABSTRACT' => 'Produces charts with GD',
'AUTHOR' => [
'Martien Verbruggen <mgjv@tradingpost.com.au>',
'Benjamin Warfield <bwarfield@cpan.org>',
'Ruslan Zakirov <Ruslan.Zakirov@gmail.com>',
]
):()
),
BUILD_REQUIRES => {
'ExtUtils::MakeMaker' => '6.76',
},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '6.76',
},
TEST_REQUIRES => {
'Capture::Tiny' => '0.30',
'Test::Exception' => '0.40',
'FindBin' => '0',
'Test::More' => '0.88',
},
test => {
RECURSIVE_TEST_FILES => 1,
},
'PREREQ_PM' => {
'GD' => '1.18',
'GD::Text' => '0.80',
},
'dist' => {
'COMPRESS' => 'gzip -9f',
'SUFFIX' => 'gz',
},
LICENSE => 'perl',
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
bugtracker => {
web => 'http://rt.cpan.org/Public/Dist/Display.html?Name=GDGraph',
mailto => 'bug-GDGraph@rt.cpan.org',
},
repository => {
type => 'git',
url => 'git://github.com/ruz/GDGraph.git',
web => 'https://github.com/ruz/GDGraph',
},
},
},
'clean' => { 'FILES' => join(" ", @clean), },
);
sub MY::postamble
{
qq(
samples: all
\@(cd samples && make PERL=$Config{'perlpath'})
\@echo Samples have been created in samples directory
tags:
ptags lib/GD/*.pm lib/GD/Graph/*.pm
)
}
sub MY::libscan
{
my ($self, $path) = @_;
return if
$path =~ m:(^|/)\..+\.swp$: or
$path =~ m:(^|/)\.#.+\d$: or
$path =~ m:\b(RCS|CVS|SCCS)\b: ;
return $path;
}
print <<END;
The automatic tests for GDGraph are not really a solid workout of the
library. The best way to test the package is to run the examples
before installing it. You can run the examples in the samples
directory with `make samples` or by going into that directory, and
just running `make`.
If that fails, please read samples/Makefile.
UPDATE: Running the examples is part of the test procedure now. You
are still encouraged to run check them out to learn from them and
to see the ouput images.
END