3 # Copyright PROCURA B.V. (c) 2008-2008 H.Merijn Brand
5 require 5.006; # <- also see postamble at the bottom for META.yml
8 use ExtUtils
::MakeMaker
;
12 ABSTRACT
=> "Extended/Modified debugging utilities",
13 AUTHOR
=> "H.Merijn Brand <h.merijn\@xs4all.nl>",
14 VERSION_FROM
=> "Peek.pm",
15 PREREQ_PM
=> { "DynaLoader" => 0,
20 clean
=> { FILES
=> join " ", qw(
30 $ExtUtils::MakeMaker
::VERSION
> 6.30 and $wm{LICENSE
} = "perl";
32 unless (exists $ENV{AUTOMATED_TESTING
} and $ENV{AUTOMATED_TESTING
} == 1) {
33 if (prompt
("Do you want to install module DP as a shortcut for Data::Peek ?", "y") =~ m/[yY]/) {
34 open my $fh, ">", "DP.pm" or die "Cannot open DP.pm: $!\n";
37 $wm{clean
}{FILES
} .= " DP.pm";
41 my $rv = WriteMakefile
(%wm);
49 my $valgrind = join " ", qw(
50 PERL_DESTRUCT_LEVEL=2 PERL_DL_NONLAZY=1
52 --suppressions=sandbox/perl.supp
54 --leak-resolution=high
58 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e"
59 "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')"
60 $(TEST_FILES
) 3>valgrind
.log
63 my $min_vsn = ($] >= 5.010 && -d
"xt" && ($ENV{AUTOMATED_TESTING
} || 0) != 1)
66 ' -@env TEST_FILES="xt/*.t" make -e test_dynamic',
76 ' -@tail -5 valgrind.log',
79 q{ sandbox/leaktest $(FULLPERLRUN) "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)},
82 ' perl sandbox/genMETA.pl -c',
85 ' perl sandbox/genMETA.pl',
87 'tgzdist: checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
88 ' -@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
89 ' -@cpants_lint.pl $(DISTVNAME).tgz',
90 ' -@rm -f Debian_CPANTS.txt',
98 BEGIN { *DP
:: = \
%Data::Peek
:: }
99 $VERSION = $DP::VERSION
;
105 DP - Alias for Data::Peek
109 perl -MDP -wle'print DPeek for DDual ($?, 1)'
117 H.Merijn Brand <h.m.brand@xs4all.nl>
119 =head1 COPYRIGHT AND LICENSE
121 Copyright (C) 2008-2008 H.Merijn Brand
123 This library is free software; you can redistribute it and/or modify it
124 under the same terms as Perl itself.