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 Debian::Debhelper::Dh_Lib;
11 use base 'Debian::Debhelper::Buildsystem::makefile';
14 "Perl ExtUtils::MakeMaker (Makefile.PL)"
17 sub check_auto_buildable {
21 # Handles configure, install; the rest - next class
22 if ($action eq "install" || $action eq "configure") {
23 return -e "Makefile.PL";
32 my $this=$class->SUPER::new(@_);
33 $this->enforce_in_source_building();
39 # If set to a true value then MakeMaker's prompt function will
40 # # always return the default without waiting for user input.
41 $ENV{PERL_MM_USE_DEFAULT}=1;
42 doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", @_);
48 $this->SUPER::install($destdir, "PREFIX=/usr", @_);