1use ExtUtils::MakeMaker; #-*-cperl-*- 2 3my @scripts = grep {-f } glob("scripts/*.pl "); # Ripped from Text::PDF 4 5my %make; 6if ($ExtUtils::MakeMaker::VERSION > 6.64) { 7 $make{META_MERGE} = { 8 'meta-spec' => { version => 2 }, 9 resources => { 10 repository => { 11 type => 'git', 12 url => 'https://github.com/JJ/Algorithm-Evolutionary.git', 13 web => 'https://github.com/JJ/Algorithm-Evolutionary', 14 }, 15 }, 16 }; 17} 18 19WriteMakefile( 20 NAME => 'Algorithm::Evolutionary', 21 AUTHOR => 'JJ Merelo <jj /at/ merelo.net>', 22 VERSION_FROM => 'lib/Algorithm/Evolutionary.pm', 23 ABSTRACT_FROM => 'lib/Algorithm/Evolutionary.pm', 24 EXE_FILES => \@scripts, 25 LICENSE => 'gpl', 26 PL_FILES => {}, 27 PREREQ_PM => {'Algorithm::Permute' => 0.01, 28 'Bit::Vector' => 0, 29 'Clone' => 0.31, 30 constant => 0, 31 'GD' => 2.17, 32 'Math::Random' => 0.63, 33 'Memoize' => 0, 34 'Object::Array' => 0, 35 'Pod::Escapes' => '0', #Dependence from Test::Pod, but produces failure in 1 platform 36 'Sort::Key' => 0, 37 'Statistics::Basic' => 1.6, 38 'String::Random' => 0, 39 'Test::More' => 0, 40 'Test::Pod' => 0, 41 'Time::HiRes' => 0, 42 'Tree::DAG_Node' => 1.04, 43 'version' => 0, 44 'XML::Parser' => 2.40, 45 'XML::Parser::Style::EasyTree' => 0, 46 YAML => 0 47 }, 48 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, 49 clean => { FILES => 'Algorithm-Evolutionary-*' }, 50 %make, 51 ); 52 53#Add new targets 54sub MY::postamble { 55 return <<'MAKE_FRAG'; 56docs: 57 pod2html --verbose --htmlroot .. --podpath=Evolutionary/Individual:Evolutionary/Op:Evolutionary --outfile index.html Evolutionary.pm; \ 58 cd examples; for i in *.pl; do pod2html --verbose --htmlroot ../.. --podpath=../Evolutionary/Individual:../Evolutionary/Op:../Evolutionary --outfile $$i.html $$i; done ; \ 59 cd ../Evolutionary; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../.. --podpath=Individual:Op --outfile $$base.html $$i; done ; \ 60 for i in *.pod; do base=`basename $$i .pod`; echo $$base; pod2html --verbose --htmlroot ../.. --podpath=Individual:Op --outfile $$base.html $$i; done; \ 61 cd Op; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../../.. --podroot .. --outfile $$base.html $$i; done ; \ 62 cd ../Individual; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../../.. --podroot .. --outfile $$base.html $$i; done 63 64$(DISTVNAME)-examples.tar$(SUFFIX) : distdir 65 $(PREOP) 66 $(TO_UNIX) 67 $(TAR) $(TARFLAGS) $(DISTVNAME)-examples.tar $(DISTVNAME)/examples 68 $(RM_RF) $(DISTVNAME) 69 $(COMPRESS) $(DISTVNAME)-examples.tar 70 $(POSTOP) 71 72examplesdist : $(DISTVNAME)-examples.tar$(SUFFIX) 73 $(NOECHO) $(NOOP) 74 75MAKE_FRAG 76} 77 78#Version 3.8 79