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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
use ExtUtils::MakeMaker;
unless (eval { require Test::More; 1 }) {
print STDERR "*** Test::More is not installed, you will not be able to run the tests\n";
}
unless ($] >= 5.006001) {
print STDERR "*** This Perl version ($]) is not supported\n";
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'Set::Object',
'VERSION_FROM' => 'lib/Set/Object.pm',
'AUTHOR' => 'Jean-Louis Leroy and Sam Vilain',
'LICENSE' => 'Artistic_2',
'ABSTRACT' => "Unordered collections (sets) of Perl Objects",
'PREREQ_PM' => {
'Scalar::Util' => 0,
'Test::More' => 0,
},
"SIGN" => 1,
($ExtUtils::MakeMaker::VERSION gt '6.46' ?
('META_MERGE' =>
{
recommends => {
# deps of t/misc/more_leaks.t
'Test::LeakTrace' => 0,
'Moose' => 0,
},
resources => {
license => 'http://dev.perl.org/licenses/',
repository => 'git://github.com/rurban/Set-Object.git',
}
}) : ()
),
test => { TESTS => join(' ', glob('t/*/*.t')) },
);
package MY;
#use Config;
sub depend {
"
release : dist
-git commit -am\"release \$(VERSION)\"
echo -n continue?
read y
git tag \$(VERSION)
cpan-upload \$(DISTVNAME).tar\$(SUFFIX)
git push
git push --tags
test_cover :: pure_all
\$(RM_RF) cover_db
\$(PERLRUNINST) -S cover -test
test_coveralls :: pure_all
\$(PERLRUNINST) -S cover -test -report coveralls
gcov : \$(BASEEXT).c.gcov \$(BASEEXT).gcov cover_db/\$(BASEEXT)-xs.html
\$(BASEEXT).c.gcov \$(BASEEXT).xs.gcov : \$(BASEEXT).xs
\$(MAKE) CCFLAGS=\"\$(CCFLAGS) -fprofile-arcs -ftest-coverage\" LDDLFLAGS=\"\$(LDDLFLAGS) -fprofile-arcs -ftest-coverage\"
gcov \$(BASEEXT).c \$(BASEEXT).xs
cover_db/\$(BASEEXT)-xs.html : \$(BASEEXT).xs.gcov
PERL5OPT=-MDevel::Cover make test
-$^X -S gcov2perl \$(BASEEXT).c.gcov \$(BASEEXT).xs.gcov
$^X -S cover
gprof :
\$(MAKE) CCFLAGS=\"\$(CCFLAGS) -pg\" LDDLFLAGS=\"\$(LDDLFLAGS) -pg\"
"
}
|