-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.PL
75 lines (68 loc) · 1.86 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
use strict;
use warnings;
require 5.010;
use ExtUtils::MakeMaker;
my %wm = (
NAME => "App::SpeedTest",
DISTNAME => "App-SpeedTest",
ABSTRACT => "Command line interface to speedtest.net",
AUTHOR => "H.Merijn Brand <h.m.brand\@xs4all.nl>",
VERSION_FROM => "speedtest",
EXE_FILES => [ "speedtest" ],
PREREQ_FATAL => 0,
PREREQ_PM => {
"Data::Dumper" => 0,
"Data::Peek" => 0,
"Getopt::Long" => 0,
"HTML::TreeBuilder" => 0,
"LWP::UserAgent" => 0,
"List::Util" => 0,
"Math::Trig" => 0,
"Socket" => 0,
"Time::HiRes" => 0,
"XML::Simple" => 0,
},
macro => { TARFLAGS => "--format=ustar -c -v -f", },
);
$ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl";
my $rv = WriteMakefile (%wm);
package MY;
sub postamble {
my @pc;
$] >= 5.010 && -d "xt" && ($ENV{AUTOMATED_TESTING} || 0) != 1 and
push @pc,
'test :: lib/App/SpeedTest.pm',
' -@env TEST_FILES="xt/*.t" make -e test_dynamic',
'';
join "\n" =>
'spellcheck: lib/App/SpeedTest.pm doc',
' pod-spell-check --aspell',
'',
'checkmeta: spellcheck',
' perl sandbox/genMETA.pl -c',
'',
'fixmeta: lib/App/SpeedTest.pm distmeta',
' perl sandbox/genMETA.pl',
'',
'lib/App/SpeedTest.pm: speedtest',
' perl sandbox/make-pm',
'',
'tgzdist: checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
' -@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
' -@cpants_lint.pl $(DISTVNAME).tgz',
' -@rm -f Debian_CPANTS.txt',
'',
'doc docs: doc/speedtest.md doc/speedtest.html doc/speedtest.man',
' -@rm -f pod2html.tmp',
'doc/speedtest.md: speedtest',
' pod2markdown < $? > $@',
'doc/speedtest.html: speedtest',
' pod2html < $? 2>&1 | grep -v "^Cannot find" > $@',
'doc/speedtest.3: speedtest',
' pod2man < $? > $@',
'doc/speedtest.man: doc/speedtest.3',
' nroff2man < $? > $@',
'',
@pc;
} # postamble
1;