-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.PL
More file actions
148 lines (133 loc) · 5.47 KB
/
Copy pathMakefile.PL
File metadata and controls
148 lines (133 loc) · 5.47 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
BEGIN { require 5.012 }
use strict;
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'Para::Frame',
#'PMLIBDIRS' => [],
#'SKIP' => ['all','install'],
'VERSION_FROM' => 'lib/Para/Frame.pm', # finds $VERSION
'ABSTRACT_FROM' => 'lib/Para/Frame.pm',
'AUTHOR' => 'Jonas Liljegren <jonas@paranormal.se>',
'PREREQ_PM' =>
{
'BerkeleyDB' => 0.26,
'Captcha::reCAPTCHA' => 0.99,
'Carp' => 1.04,
'CGI' => 3.46,
'CGI::Cookie' => 1.25,
#'Crypt::OpenPGP' => 1.03,
'Data::Dump' => 1.08,
'Data::Validate::Domain' => 0.08,
'Date::Manip' => 6.30,
'DateTime' => 0.2901,
'DateTime::Format::HTTP' => 0.00,
'DateTime::Format::Pg' => 0.16003,
'DateTime::Format::Strptime' => 0.00,
'DateTime::Format::MySQL' => 0.00,
'DateTime::Set' => 0.22,
'DateTime::TimeZone' => 0.37,
'DateTime::Incomplete' => 0.02,
'DBI' => 1.48,
'Digest::MD5' => 2.33,
'Email::MIME' => 1.902,
'Encode' => 2.10,
'Encode::Detect::Detector' => 1.00,
'Encode::InCharset' => 0.03,
'File::Basename' => 2.73,
'File::MimeInfo' => 0.13,
'File::Remove' => 0.31,
'File::Slurp' => 9999.09,
'File::Spec' => 3.05,
'File::stat' => 1.00,
'FreezeThaw' => 0.43,
'HTTP::BrowserDetect' => 1.25,
'HTTP::Request' => 1.40,
'IDNA::Punycode' => 0.02,
'Image::Magick' => 6.002004,
'IO' => 1.21,
'IO::Socket' => 1.29,
'List::Uniq' => 0.10,
'LWP::UserAgent' => 2.03,
'Mail::Address' => 1.62,
'MIME::Lite' => 3.01,
'MIME::Words' => 5.41,
'Net::DNS' => 0.48,
'Net::SCP' => 0.07,
'Net::SMTP' => 2.29,
'Net::Domain::TLD' => 1.67,
'Number::Bytes::Human' => 0.04,
'Proc::ProcessTable' => 0.39,
'Socket' => 1.77,
'Sys::CpuLoad' => 0.02,
'Template' => 2.15,
'Text::Autoformat' => 1.12,
'Time::HiRes' => 1.66,
'Time::Piece' => 1.08,
'Unicode::MapUTF8' => 1.09,
'URI' => 1.59,
'URI::QueryParam' => 0.00,
'Test::Pod::Coverage' => 1.08,
'Linux::SysInfo' => 0.10,
'JSON' => 2.17,
'XML::Simple' => 2.18,
'Email::MIME::CreateHTML' => 1.03,
'HTML::FormatText::WithLinks'=> 0.14,
'jQuery::File::Upload' => 0.16,
'Number::Format' => 1.73,
'HTTP::Parser::XS' => 0.14,
'Data::GUID' => 0.046,
# Testing
'Test::More' => 0.61,
'Test::Warn' => 0.08,
'Test::Perl::Critic' => 1.01,
'Test::Distribution' => 2.00,
'Test::Pod' => 1.26,
'Test::Strict' => 0.09,
},
'dist' =>
{
'COMPRESS' => 'gzip',
'SUFFIX' => 'gz',
}
);
package MY; # so that "SUPER" works right
sub test
{
my $inherited = shift->SUPER::test(@_);
$inherited =~ s/test_dynamic :: pure_all/test_dynamic ::/;
return $inherited;
}
sub test_via_harness
{
my($self, $perl, $tests) = @_;
return qq{\t$perl "-MExtUtils::Command::MM" }.
qq{"-e" "test_harness(\$(TEST_VERBOSE), 'lib')" $tests\n};
}
sub postamble
{
my ($mm, %args) = @_;
my $postamble = "";
# first, we must add a target in install::
for my $makeline (@{ $mm->{RESULT} }) {
$makeline =~ s/(install *::.+)\n/$1 priv_data_files\n/;
}
# then, declare the target with the files
$postamble .= "\nINSTALL = install -p -D\n\npriv_data_files:\n";
# $postamble .= "\tpwd\n";
# $postamble .= "\techo \$(DISTVNAME)\n";
use File::Find;
find(\&wanted, 'share');
sub wanted
{
next if -d;
$File::Find::name =~ m/^share\/(.*)/ or next;
my $file = $1;
$postamble .= "\tcd share && \$(INSTALL) $file \$(SITEPREFIX)/share/paraframe/$file\n";
}
return $postamble
# die $mm->dist_target;
# die "INSTALL!?!?";
}
1;