This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
56 lines (48 loc) · 1.4 KB
/
Build.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
use strict;
use warnings;
use Module::Build 0.28;
use File::Spec;
use FindBin;
## External Dependencies
my $REMIND = 'remind';
my $TEST_REMINDERS = File::Spec->catfile($FindBin::Bin, 't', '000_reminders');
print "Checking for `$REMIND`... ";
my $rem = `$REMIND -n $TEST_REMINDERS`;
if ($? || ! defined $rem) {
die "Failed to run a test $REMIND command. Is remind installed?";
}
if ($rem !~ qr#^\d{4}/\d\d/\d\d it works!$#) {
die "Remind output didn't look right; got: $rem";
}
print "ok.\n";
## Build config
my $build = Module::Build->new(
module_name => 'Remind::Client',
license => 'perl',
sign => 1,
configure_requires => {
'Module::Build' => 0.28, # for meta_merge
},
build_requires => {
'File::Temp' => 0.14, # for tests
'Module::Build' => 0.28,
'POSIX' => 0, # for tests
'Test::More' => 0.81_01, # for note()
'Test::NoWarnings' => 0,
'Test::Warn' => 0,
},
requires => {
'Carp' => 0,
'File::HomeDir' => 0.50,
'IO::Handle' => 0,
'IPC::Open2' => 0,
},
meta_merge => {
resources => {
repository => 'http://git.pioto.org/gitweb/Remind-Client.git',
license => 'http://dev.perl.org/licenses/',
bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Remind-Client',
},
},
);
$build->create_build_script();