-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.PL
112 lines (102 loc) · 4.13 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
##############################################################################
# #
# Copyright 2013 TripAdvisor, LLC #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
# #
##############################################################################
use strict;
use warnings;
use ExtUtils::MakeMaker;
##############################################################################
#
# If you are unfamiliar with this file, Makefile.PL, it is one of the primary
# means by which Perl software is configured, built, and installed. If you are
# attempting to build this software and the errors you are experiencing have
# led you here, and you are in unfamiliar territory, you should stop now and
# instead file a bug report at the site where you got this software, or email
# the authors. (bug report preferred, please)
#
##############################################################################
# Minimum compatible version of perl:
BEGIN {
eval { use 5.010001; 1 } or do {
my $e = $@;
my $pver = $^V || $];
die join " ",
"Caught the following error checking the version of perl: $e\n",
"This software requires Perl v5.10.1 or newer. This Makefile.PL is being",
"run using $^X which is version $pver. Please find a newer version of",
"perl to install and run this software\n";
};
}
# creates a makefile to build, test, and install the HQT
WriteMakefile(
NAME => 'App-HiveQueryTool',
# version of the HQT being installed
VERSION => '0.01',
# specify the modules that the HQT uses.
PREREQ_PM => {
# If the version matters, put it here. By default, the specified version
# is the lowest that will be accepted. If a higher one is available, *it*
# will be installed instead. If you need to be more specific, see this:
# https://metacpan.org/module/CPAN::Meta::Spec#Version-Formats
'Mojolicious' => '3.87', # minimum supported version
'IO::Socket::IP' => '0.21', # contains fix for cpan RT81549
'Email::Sender::Simple' => '1.300006', # v1.3 now uses Moo instead of Moose
# if the version doesn't matter, put it in the list below.
# the "required version" will be set to 0 which means "whatever"
(map { $_ => 0 } qw(
AnyEvent
AnyEvent::HTTPD
autodie
CGI::Expand
CLASS
DateTime
DateTime::Format::Strptime
DBM::Deep
File::Slurp
File::Which
Hash::Merge::Simple
IO::Compress::Gzip
IO::Socket::SSL
IPC::System::Simple
JSON
List::MoreUtils
MIME::Entity
Mojolicious::Lite
Mojolicious::Plugin::RenderFile
Mojolicious::Plugin::YamlConfig
Moo
MooX::Types::MooseLike::Email
namespace::sweep
Net::LDAP
Package::Alias
Params::Util
Scalar::Util
Storable
String::ShellQuote
syntax
Syntax::Feature::Qwa
Sys::Hostname
Text::CSV
Text::Template
Text::Trim
Time::HiRes
Try::Tiny
YAML::Any
), ),
},
# where to look for HQT test scripts when running "make test"
test => {TESTS => 't/*.t'},
);