threads / patch / 5225

patchpass DESTDIR to the generated perl/Makefile

Subject: [PATCH] pass DESTDIR to the generated perl/Makefile

## tl;dr

One message between Aug 13, 2006 and Aug 13, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Eric Wong· Aug 13, 2006, 11:13 UTC · lore

Makes life for binary packagers easier, as the Perl modules will be installed inside DESTDIR.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 perl/Makefile.PL |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Show changes to perl/Makefile.PL +4 −0
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 97ee9af..8df46a4 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -22,10 +22,14 @@ if ($@) {
 	$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
 }
 
+my %o;
+$o{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
+
 WriteMakefile(
 	NAME            => 'Git',
 	VERSION_FROM    => 'Git.pm',
 	PM		=> \%pm,
 	MYEXTLIB        => '../libgit.a',
 	INC             => '-I. -I..',
+	%o
 );
-- 
1.4.2.GIT

← back to recent threads