Algorithm-BinarySearch-Vec
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
##----------------------------------------------------------------------
## MAIN
##----------------------------------------------------------------------
WriteMakefile
(
NAME => 'Algorithm::BinarySearch::Vec',
AUTHOR => 'Bryan Jurish <moocow@cpan.org>',
ABSTRACT => 'binary search and basic set operations for vec() vectors, with fast XS implementations',
VERSION_FROM => 'Vec.pm',
##-- user variables
#CC => 'c++', ##-- your c++ compiler
#LIBS => "$MY_LDFLAGS $MY_LIBS", ##-- additional libraries
#DEFINE => '-DHAVE_CONFIG_H', ##-- additional defines
#INC => $MY_IFLAGS, ##-- additional includes
#CCFLAGS => '', ##-- additional flags
OPTIMIZE => '-O2 -pipe', ##-- optimization flags
#OBJECT => 'foo.o',
##-- install these
#EXE_FILES => [glob("*.perl")],
##-- DEBUG
#MAKEAPERL=>1,
##LINKTYPE=>'static',
#MAP_TARGET=>'ucperl',
##INCLUDE_EXT=>[qw(Encode DynaLoader Exporter)], ##-- ??? doesn't work ???
#CCFLAGS=>'-g',
##-- /DEBUG
##-- stuff that probably doesn't need to be changed
#XSOPT => '-C++',
#TYPEMAPS => ['perlobject.map', 'typemap'],
##-- prerequisites
#MIN_PERL_VERSION => '5.8.0', ##-- perl 5.6 chokes with "Can't declare another package's variables at t/01_ini.t line 22."
PREREQ_PM => {
#'Module' => $version,
'Test::More' => 0,
},
);
#-----------------------------------------------------------------------
# Extensions
#-----------------------------------------------------------------------
##---------------------------------------------------------------
sub MY::constants {
package MY;
my $inherited = shift->SUPER::constants(@_);
return $inherited;
}
##---------------------------------------------------------------
sub MY::depend {
package MY;
my $inherited = shift->SUPER::depend(@_);
$inherited .= (
###-- depends -> README.txt
"\n\n"
.join('',
map {
"$_: README.txt\n\n"
} qw(dist create_distdir distdir_am distcheck))
);
return $inherited;
}
##---------------------------------------------------------------
sub MY::special_targets {
package MY;
my $inherited = shift->SUPER::special_targets(@_);
$inherited .=
"
.SUFFIXES: .pm .pod .rpod .man .txt .html
.pm.html:
\tpod2html --css=\$(CSS) --infile=\$< --outfile=\$@
.pm.txt:
\tpod2text \$< \$@
.pod.html:
\tpod2html --css=\$(CSS) --infile=\$< --outfile=\$@
.pod.txt:
\tpod2text \$< \$@
.rpod.html:
\tpod2html --css=\$(CSS) --infile=\$< --outfile=\$@
.rpod.txt:
\tpod2text \$< \$@
";
return $inherited;
}
##---------------------------------------------------------------
sub MY::postamble {
package MY;
my $inherited = shift->SUPER::postamble(@_);
return $inherited;
}
( run in 1.306 second using v1.01-cache-2.11-cpan-39bf76dae61 )