3
use ExtUtils::MakeMaker;
5
$DIST_VERSION = "0.9932";
6
$is_devel_host = defined $ENV{USER} && $ENV{USER} eq 'eserte' && $^O =~ /bsd/i && -f "../../perl.release.mk";
8
open(P, "Pod.pm") or die "Can't open Pod.pm: $!";
9
SEARCH_FOR_DIST_VERSION: {
11
if (/DIST_VERSION\s*=\s*\"(.*)\"/) {
12
if ($DIST_VERSION ne $1) {
13
die "Please adjust DIST_VERSION in Makefile.PL";
15
last SEARCH_FOR_DIST_VERSION;
18
die "Cannot find DIST_VERSION definition in Pod.pm";
21
if (!eval { require YAML; 1 }) {
22
warn "Please install YAML, otherwise no META.yml check could be done!";
24
my $meta = YAML::LoadFile("META.yml");
25
if ($meta->{version} ne $DIST_VERSION) {
26
die "Please fix version in META.yml!\n";
32
'PREREQ_PM' => { 'Tk' => 800.004,
33
'Pod::Simple' => 2.05, # there at least in 2.03 bugs when processing "-f ..." output
35
# the following are really only COREQUISITES
37
'Tk::HistEntry' => 0.40,
39
'DISTNAME' => 'Tk-Pod',
41
'VERSION' => $DIST_VERSION,
44
'DIR' => [], # Tk-Pod dist build dir is ignored
46
'EXE_FILES' => [ 'tkpod', 'tkmore' ],
48
'dist' => {'POSTOP'=>'-$(CHMOD) 644 $(DISTVNAME).tar$(SUFFIX)'},
52
my $postamble = <<'EOF';
54
$(FULLPERL) -w -Mblib tkpod -tree -nodebug
59
$postamble .= <<'EOF';
61
.include "../../perl.release.mk"
62
.include "../../perl.cvs.mk"