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_build;
10 use Debian::Debhelper::Dh_Lib;
11 use base 'Debian::Debhelper::Dh_Buildsystem';
14 "support for building Perl Build.PL based packages (in-source only)"
17 sub check_auto_buildable {
18 my ($this, $action) = @_;
21 my $ret = -e "Build.PL";
22 if ($action ne "configure") {
30 $ENV{MODULEBUILDRC} = "/dev/null";
36 my $this= $class->SUPER::new(@_);
37 $this->enforce_in_source_building();
43 $ENV{PERL_MM_USE_DEFAULT}=1;
44 $this->do_perl("Build.PL", "installdirs=vendor", @_);
49 $this->do_perl("Build", @_);
54 $this->do_perl("Build", "test", @_);
60 $this->do_perl("Build", "install", "destdir=$destdir", "create_packlist=0", @_);
65 $this->do_perl("Build", "--allow_mb_mismatch", 1, "distclean", @_);