summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/perl_build.pm
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2009-06-09 14:24:04 +0300
committerModestas Vainius <modestas@vainius.eu>2009-06-09 14:24:04 +0300
commitf72b0db0446788a867c5115845b28371ab5f0e9b (patch)
tree2029151f33a00592f9ad27faa61e91799567fb56 /Debian/Debhelper/Buildsystem/perl_build.pm
parent299cb17e2a2a2524c628c0581ba2a85b2d9b2bed (diff)
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.
Diffstat (limited to 'Debian/Debhelper/Buildsystem/perl_build.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/perl_build.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm
index 929d9e9..525b0e1 100644
--- a/Debian/Debhelper/Buildsystem/perl_build.pm
+++ b/Debian/Debhelper/Buildsystem/perl_build.pm
@@ -7,7 +7,6 @@
package Debian::Debhelper::Buildsystem::perl_build;
use strict;
-use Debian::Debhelper::Dh_Lib;
use base 'Debian::Debhelper::Buildsystem';
sub DESCRIPTION {
@@ -18,9 +17,9 @@ sub check_auto_buildable {
my ($this, $step) = @_;
# Handles everything
- my $ret = -e "Build.PL";
+ my $ret = -e $this->get_sourcepath("Build.PL");
if ($step ne "configure") {
- $ret &&= -e "Build";
+ $ret &&= -e $this->get_sourcepath("Build");
}
return $ret;
}
@@ -28,7 +27,7 @@ sub check_auto_buildable {
sub do_perl {
my $this=shift;
$ENV{MODULEBUILDRC} = "/dev/null";
- doit("perl", @_);
+ $this->doit_in_sourcedir("perl", @_);
}
sub new {