Subject: | Bigtop 0.30 Build.PL does not honour destdir |
Like bug http://rt.cpan.org/Public/Bug/Display.html?id=39607 for Gantry,
Bigtop does not build cleanly with dh-make-perl (and any other tools
which set/respect destdir) when importing templates.
The below patch fixes this problem.
diff --git a/Build.PL b/Build.PL
index e36cff1..8c58837 100644
--- a/Build.PL
+++ b/Build.PL
@@ -168,7 +168,11 @@ sub _custom_code {
my $props = $self->{properties};
my $files = $props->{tentmaker_files};
- my $path = $self->notes( 'tentmaker_template_path' );
+ my $path = File::Spec->catfile(
+ $props->{destdir},
+ $self->notes( 'tentmaker_template_path' )
+ );
+
foreach my $file ( @{ $files } ) {
$self->copy_if_modified( $file, $path );
}