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 Debian::Debhelper::Dh_Buildsystem_Bases;
12 use base 'Debian::Debhelper::Dh_Buildsystem_Basic';
15 "support for building Perl Build.PL based packages (in-source only)"
19 my ($self, $action) = @_;
20 my $ret = (-e "Build.PL");
21 if ($action ne "configure") {
29 $ENV{MODULEBUILDRC} = "/dev/null";
30 return $self->SUPER::invoke_impl(@_);
35 my $self= $cls->SUPER::new(@_);
36 $self->enforce_in_source_building();
42 # XXX JEH I think the below comment is inherited from elsewhere;
43 # doesn't really make sense now.
44 $ENV{PERL_MM_USE_DEFAULT}=1; # Module::Build can also use this.
45 doit("perl", "Build.PL", "installdirs=vendor", @_);
50 doit("perl", "Build", @_);
55 doit(qw/perl Build test/, @_);
61 doit("perl", "Build", "install", "destdir=$destdir", "create_packlist=0", @_);
66 doit("perl", "Build", "--allow_mb_mismatch", 1, "distclean", @_);