{"thread":{"id":"5225","subject":"[PATCH] pass DESTDIR to the generated perl/Makefile","startedAt":"2006-08-13T11:13:25Z","lastAt":"2006-08-13T11:13:25Z","messageCount":1,"participants":["Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"25181","messageId":"11554676054185-git-send-email-normalperson@yhbt.net","threadId":"5225","inReplyTo":null,"subject":"[PATCH] pass DESTDIR to the generated perl/Makefile","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2006-08-13T11:13:25Z","receivedAt":"2006-08-13T11:13:25Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Makes life for binary packagers easier, as the Perl modules will\nbe installed inside DESTDIR.\n\nSigned-off-by: Eric Wong <normalperson@yhbt.net>\n---\n perl/Makefile.PL |    4 ++++\n 1 files changed, 4 insertions(+), 0 deletions(-)\n\ndiff --git a/perl/Makefile.PL b/perl/Makefile.PL\nindex 97ee9af..8df46a4 100644\n--- a/perl/Makefile.PL\n+++ b/perl/Makefile.PL\n@@ -22,10 +22,14 @@ if ($@) {\n \t$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';\n }\n \n+my %o;\n+$o{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};\n+\n WriteMakefile(\n \tNAME            => 'Git',\n \tVERSION_FROM    => 'Git.pm',\n \tPM\t\t=> \\%pm,\n \tMYEXTLIB        => '../libgit.a',\n \tINC             => '-I. -I..',\n+\t%o\n );\n-- \n1.4.2.GIT\n"}]}