1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 05_fix_MakeMaker_use.dpach.dpatch by <noahm@cygnus>
4 ## All lines beginning with `## DP:' are a description of the patch.
8 diff -urNad Mail-SpamAssassin-3.2.5~/Makefile.PL Mail-SpamAssassin-3.2.5/Makefile.PL
9 --- Mail-SpamAssassin-3.2.5~/Makefile.PL 2008-06-10 05:21:07.000000000 -0400
10 +++ Mail-SpamAssassin-3.2.5/Makefile.PL 2009-10-06 17:27:33.000000000 -0400
15 -# MakeMaker prior to 6.11 doesn't support DESTDIR which is needed for
16 -# packaging with builddir!=destdir. See bug 2388.
17 -$mm_knows_destdir = $ExtUtils::MakeMaker::Recognized_Att_Keys{DESTDIR};
18 +$mm_knows_destdir = 1;
19 $mm_has_good_destdir = $mm_version >= 6.11;
20 # Add DESTDIR hack only if it's requested (and necessary)
21 $mm_needs_destdir = $opt{'destdir'} && !$mm_has_good_destdir;