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
|
use 5.006_001;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $from_file = 'lib/Config/Scoped.pm';
WriteMakefile(
NAME => 'Config::Scoped',
ABSTRACT_FROM => $from_file,
VERSION_FROM => $from_file,
AUTHOR => 'Karl Gaissmaier <karl.gaissmaier at uni-ulm.de>',
NORECURS => 1,
LICENSE => 'perl',
PREREQ_PM => {
'Parse::RecDescent' => '1.94',
Error => 0,
Storable => 0,
Safe => 0,
Carp => 0,
'File::Spec' => 0,
'File::Basename' => 0,
'Digest::MD5' => 0,
},
macro => {
GRAMMAR => 'lib/Config/Scoped/Grammar.prd',
PRECOMP => 'lib/Config/Scoped/Precomp.pm',
PRECOMPILE_SCRIPT => 'script/precompile.pl',
P_RD => 'patched/Parse/RecDescent.pm',
PRD_TGZ => 'patched-prd.tgz',
UNPACK => '$(TAR) -zxvf $(PRD_TGZ)',
},
);
# just for developers, precompiling new grammar's
sub MY::depend {
return <<'EOT';
$(PRECOMP) : Makefile.PL $(GRAMMAR) $(PRECOMPILE_SCRIPT)
$(UNPACK)
$(PERL) $(PRECOMPILE_SCRIPT) $(VERSION);
precompile : $(GRAMMAR) $(P_RD) $(PRECOMPILE_SCRIPT)
$(PERL) $(PRECOMPILE_SCRIPT) $(VERSION);
$(P_RD) :
$(UNPACK)
EOT
}
|