3 # Copyright PROCURA B.V. (c) 2008-2015 H.Merijn Brand
5 require 5.008; # <- also see postamble at the bottom for META.yml
8 use ExtUtils
::MakeMaker
;
12 DISTNAME
=> "Data-Peek",
13 ABSTRACT
=> "Extended/Modified debugging utilities",
14 AUTHOR
=> "H.Merijn Brand <h.merijn\@xs4all.nl>",
15 VERSION_FROM
=> "Peek.pm",
16 PREREQ_PM
=> { "DynaLoader" => 0,
19 "Test::NoWarnings" => 0,
21 clean
=> { FILES
=> join " ", qw(
30 macro
=> { TARFLAGS
=> "--format=ustar -c -v -f",
33 $ExtUtils::MakeMaker
::VERSION
> 6.30 and $wm{LICENSE
} = "perl";
35 unless (exists $ENV{AUTOMATED_TESTING
} and $ENV{AUTOMATED_TESTING
} == 1) {
36 if (prompt
("Do you want to install module DP as a shortcut for Data::Peek ?", "y") =~ m/[yY]/) {
38 open my $pm, "<", "Peek.pm" or die "CAnnot read Peek.pm: $!\n";
39 my $vsn = do { <$pm> =~ m/^\$VERSION\s*=\s*"([0-9._]+)/m; $1 };
42 (my $dp = <DATA
>) =~ s/::VERSION::/"$vsn"/;
43 open my $fh, ">", "DP.pm" or die "Cannot open DP.pm: $!\n";
47 "Peek.pm" => '$(INST_LIB)/Data/Peek.pm',
48 "DP.pm" => '$(INST_LIB)/DP.pm',
50 $wm{clean
}{FILES
} .= " DP.pm";
54 $ENV{NO_SV_PEEK
} and $wm{DEFINE
} = "-DNO_SV_PEEK";
56 my $rv = WriteMakefile
(%wm);
64 my $valgrind = join " ", qw(
65 PERL_DESTRUCT_LEVEL=2 PERL_DL_NONLAZY=1
67 --suppressions=sandbox/perl.supp
69 --leak-resolution=high
73 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e"
74 "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')"
75 $(TEST_FILES
) 3>valgrind
.log
78 my $min_vsn = ($] >= 5.010 && -d
"xt" && ($ENV{AUTOMATED_TESTING
} || 0) != 1)
81 ' -@env TEST_FILES="xt/*.t" make -e test_dynamic',
91 ' -@tail -5 valgrind.log',
94 q{ sandbox/leaktest $(FULLPERLRUN) "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)},
97 ' pod-spell-check --aspell --ispell',
99 'checkmeta: spellcheck',
100 ' perl sandbox/genMETA.pl -c',
103 ' perl sandbox/genMETA.pl',
105 'tgzdist: checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
106 ' -@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
107 ' -@cpants_lint.pl $(DISTVNAME).tgz',
108 ' -@rm -f Debian_CPANTS.txt',
116 BEGIN { *DP
:: = \
%Data::Peek
:: }
117 $VERSION = ::VERSION
::;
123 DP - Alias for Data::Peek
127 perl -MDP -wle'print DPeek for DDual ($?, 1)'
135 H.Merijn Brand <h.m.brand@xs4all.nl>
137 =head1 COPYRIGHT AND LICENSE
139 Copyright (C) 2008-2014 H.Merijn Brand
141 This library is free software; you can redistribute it and/or modify it
142 under the same terms as Perl itself.