forked from bucardo/bucardo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
50 lines (46 loc) · 1.98 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
use ExtUtils::MakeMaker;
use strict;
use warnings;
use 5.008003;
## No version.pm for this one, as the prereqs are not loaded yet.
my $VERSION = '3.2.2';
WriteMakefile(
NAME => 'Bucardo',
VERSION_FROM => 'Bucardo.pm',
PREREQ_PM => {
'DBD::Pg' => '2.0',
'DBI' => '1.51',
'DBIx::Safe' => '1.2.4',
'ExtUtils::MakeMaker' => '6.32',
'Test::More' => '0.61',
'Test::Harness' => '2.03',
'Mail::Sendmail' => '0.79',
'Moose' => '0.18',
'IO::Handle' => '1.24',
'Sys::Hostname' => '1.11',
'Sys::Syslog' => '0.13',
},
EXE_FILES => ['bucardo_ctl'],
PM => {'Bucardo.pm' => '$(INST_LIBDIR)/Bucardo.pm'},
ABSTRACT => 'Postgres asynchronous multi-master replication system',
AUTHOR => 'Greg Sabino Mullane <[email protected]>',
LICENSE => 'BSD',
NO_META => 1,
clean => { FILES => 'log.bucardo.* *~ *.tmp outgoingmail.*' },
);
package MY;
sub test {
my $original = shift->SUPER::test(@_);
my $PRECOM = q{$(ABSPERLRUN) t/bucardo.test.helper};
$original =~ s/^(.*test_harness)/\t$PRECOM\n$1/m;
return $original;
}
sub manifypods {
my $after = qq{\t\$(NOECHO) pod2html Bucardo.pm > Bucardo.pm.html\n};
$after .= qq{\t\$(NOECHO) pod2html bucardo_ctl > bucardo_ctl.html\n};
$after .= qq{\t\$(NOECHO) \$(RM_F) pod*.tmp pm_to_blib\n};
$after .= qq{\t\$(NOECHO) \$(PERL) -pi -e "s/<link.*?>//" Bucardo.pm.html bucardo_ctl.html\n};
$after .= qq{\t\$(NOECHO) \$(PERL) -pi -e "s~\\`\\`(.+?)''~"\\1"~g" Bucardo.pm.html bucardo_ctl.html\n};
$after .= qq{\t\$(NOECHO) \$(ECHO) Created Bucardo.pm.html and bucardo_ctl.html\n};
return shift->SUPER::manifypods(@_) . $after;
}