1 # A buildsystem plugin for handling Perl Build based projects.
3 # Copyright: © 2008-2009 Joey Hess
4 # © 2008-2009 Modestas Vainius
7 package Debian::Debhelper::Buildsystem::perl_makefile;
10 use Debian::Debhelper::Dh_Lib;
11 use Debian::Debhelper::Dh_Buildsystem_Bases;
12 use base 'Debian::Debhelper::Dh_Buildsystem_Basic';
15 "support for building Perl Makefile.PL based packages (in-source only)"
19 my ($self, $action) = @_;
20 return ($action eq "configure") && (-e "Makefile.PL");
25 my $self=$cls->SUPER::new(@_);
26 $self->enforce_in_source_building();
32 # If set to a true value then MakeMaker's prompt function will
33 # # always return the default without waiting for user input.
34 $ENV{PERL_MM_USE_DEFAULT}=1;
35 doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", @_);