Makefile.PL: add custom build parameters
authorPhilipp A. Hartmann <philipp.hartmann@offis.de>
Tue, 28 Aug 2012 16:49:00 +0000 (18:49 +0200)
committerPhilipp A. Hartmann <philipp.hartmann@offis.de>
Tue, 28 Aug 2012 16:49:00 +0000 (18:49 +0200)
commit8b0bd69272cedefb77501b74bd4ad851c389eea9
tree551b6228116d86957d5de6763db6c8ace0e227f1
parent1a72acfbb5176df011a0126727e4711fc270f6e5
Makefile.PL: add custom build parameters

This patch introduces three custom build parameters

 * PERL_SHEBANG
     Configure the #! line in the installed perl scripts.
     May be needed on some passwords, in case MakeMaker
     does not get the installation right
 * TAR_PROGRAM, XDELTA_PROGRAM
     Set a custom name (or location) for the required (GNU) tar and
     xdelta programs, in case they are not callable through their
     default names from the $PATH

If set, the variables are used to munge the corresponding parts of
the scripts.  The $tar_program and $xdelta_program variables in
pristine-tar are now marked as such.

The patch itself extends the "macro" section of the MakeMaker generated
Makefile.  To call the inherited function, the package needs to be set
explicitly.

This patch is an updated version, incorporating a spacing fix when
using multiple replacements, as discovered by Torsten Maehne during
his review.

Signed-off-by: Philipp A. Hartmann <philipp.hartmann@offis.de>
Reviewed-by: Torsten Maehne <Torsten.Maehne@gmx.de>
Makefile.PL
pristine-tar