Makefile.PL 1.25 KB
Newer Older
1
use ExtUtils::MakeMaker;
Xavier Guimard's avatar
Xavier Guimard committed
2

3 4
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
5 6

sub MY::top_targets {
Xavier Guimard's avatar
Xavier Guimard committed
7 8 9
    my $self = shift;
    my $r    = $self->MM::top_targets(@_);
    if ( my $cf = $ENV{LMNGCONFFILE} ) {
10 11 12 13 14 15 16 17 18 19 20
        $r =~ s/^(all.*)$/$1 my_target/m;
        $cf = quotemeta($cf);
        $r .= <<"EOT";

my_target:
	perl -i -pe 's/^(use constant DEFAULTCONFFILE =>).*\$\$/\$\$1 "$cf";/' blib/lib/Lemonldap/NG/Common/Conf.pm
EOT
    }
    return $r;
}

21
WriteMakefile(
Xavier Guimard's avatar
Xavier Guimard committed
22 23 24 25
    NAME         => 'Lemonldap::NG::Common',
    VERSION_FROM => 'lib/Lemonldap/NG/Common.pm',    # finds $VERSION
    PREREQ_PM    => {
        'CGI'              => 3.08,
26 27 28
        'DBI'              => 0,
        'Storable'         => 0,
        'Regexp::Assemble' => 0,
Xavier Guimard's avatar
Xavier Guimard committed
29
	'Cache::Cache'     => 0,
30
        'SOAP::Lite'       => 0,
Xavier Guimard's avatar
Xavier Guimard committed
31
    },                                               # e.g., Module::Name => 1.1
32
    #EXE_FILES => [ 'scripts/lmConfig_File2MySQL', ],
Xavier Guimard's avatar
Xavier Guimard committed
33 34 35 36 37 38 39 40 41 42
    (
        $] >= 5.005
        ?    ## Add these new keywords supported since 5.005
          (
            ABSTRACT_FROM =>
              'lib/Lemonldap/NG/Common.pm',    # retrieve abstract from module
            AUTHOR => 'guimard <guimard@>'
          )
        : ()
    ),
43
);