From f72b0db0446788a867c5115845b28371ab5f0e9b Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Tue, 9 Jun 2009 14:24:04 +0300 Subject: Implement source directory switching support (Closes: #530597). * New optional option --sourcedirectory/-d. * New Buildsystem API methods for getting source directory/path (since sourcedir may no longer be topdir), source 2 build directory convertions, doit_in_sourcedir() etc. * clean_builddir() -> rmdir_builddir() rename. --- Debian/Debhelper/Buildsystem/perl_makemaker.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Debian/Debhelper/Buildsystem/perl_makemaker.pm') diff --git a/Debian/Debhelper/Buildsystem/perl_makemaker.pm b/Debian/Debhelper/Buildsystem/perl_makemaker.pm index 36586e43..ebce9a58 100644 --- a/Debian/Debhelper/Buildsystem/perl_makemaker.pm +++ b/Debian/Debhelper/Buildsystem/perl_makemaker.pm @@ -7,7 +7,6 @@ package Debian::Debhelper::Buildsystem::perl_makemaker; use strict; -use Debian::Debhelper::Dh_Lib; use base 'Debian::Debhelper::Buildsystem::makefile'; sub DESCRIPTION { @@ -20,7 +19,7 @@ sub check_auto_buildable { # Handles configure, install; the rest - next class if ($step eq "install" || $step eq "configure") { - return -e "Makefile.PL"; + return -e $this->get_sourcepath("Makefile.PL"); } else { return 0; @@ -42,9 +41,9 @@ sub configure { # This prevents Module::Install from interactive behavior. $ENV{PERL_AUTOINSTALL}="--skipdeps"; - doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", - "create_packlist=0", - @_); + $this->doit_in_sourcedir("perl", "Makefile.PL", "INSTALLDIRS=vendor", + "create_packlist=0", + @_); } sub install { -- cgit v1.2.3