1 # A buildsystem plugin for handling Perl MakeMaker based projects.
3 # Copyright: © 2008-2009 Joey Hess
4 # © 2008-2009 Modestas Vainius
7 package Debian::Debhelper::Buildsystem::perl_makemaker;
10 use base 'Debian::Debhelper::Buildsystem::makefile';
13 "Perl ExtUtils::MakeMaker (Makefile.PL)"
16 sub check_auto_buildable {
20 # Handles configure, install; the rest - next class
21 if ($step eq "install" || $step eq "configure") {
22 return -e $this->get_sourcepath("Makefile.PL");
31 my $this=$class->SUPER::new(@_);
32 $this->enforce_in_source_building();
38 # If set to a true value then MakeMaker's prompt function will
39 # # always return the default without waiting for user input.
40 $ENV{PERL_MM_USE_DEFAULT}=1;
41 # This prevents Module::Install from interactive behavior.
42 $ENV{PERL_AUTOINSTALL}="--skipdeps";
44 $this->doit_in_sourcedir("perl", "Makefile.PL", "INSTALLDIRS=vendor",
52 $this->SUPER::install($destdir, "PREFIX=/usr", @_);