From: Joey Hess Date: Thu, 14 May 2009 19:22:36 +0000 (-0400) Subject: merge master X-Git-Tag: 7.3.0~72 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=59c01ce2d0a90b116bb0ea5ffbdcc939b49fbbf8;p=debhelper.git merge master --- 59c01ce2d0a90b116bb0ea5ffbdcc939b49fbbf8 diff --cc Debian/Debhelper/Buildsystem/perl_makemaker.pm index a7bb5cc,0000000..46dda4f mode 100644,000000..100644 --- a/Debian/Debhelper/Buildsystem/perl_makemaker.pm +++ b/Debian/Debhelper/Buildsystem/perl_makemaker.pm @@@ -1,53 -1,0 +1,56 @@@ +# A buildsystem plugin for handling Perl MakeMaker based projects. +# +# Copyright: © 2008-2009 Joey Hess +# © 2008-2009 Modestas Vainius +# License: GPL-2+ + +package Debian::Debhelper::Buildsystem::perl_makemaker; + +use strict; +use Debian::Debhelper::Dh_Lib; +use base 'Debian::Debhelper::Buildsystem::makefile'; + +sub DESCRIPTION { + "Perl ExtUtils::MakeMaker (Makefile.PL)" +} + +sub check_auto_buildable { + my $this=shift; + my ($action)=@_; + + # Handles configure, install; the rest - next class + if ($action eq "install" || $action eq "configure") { + return -e "Makefile.PL"; + } + else { + return 0; + } +} + +sub new { + my $class=shift; + my $this=$class->SUPER::new(@_); + $this->enforce_in_source_building(); + return $this; +} + +sub configure { + my $this=shift; + # If set to a true value then MakeMaker's prompt function will + # # always return the default without waiting for user input. + $ENV{PERL_MM_USE_DEFAULT}=1; ++ # This prevents Module::Install from interactive behavior. ++ $ENV{PERL_AUTOINSTALL}="--skipdeps"; ++ + doit("perl", "Makefile.PL", "INSTALLDIRS=vendor", + "create_packlist=0", + @_); +} + +sub install { + my $this=shift; + my $destdir=shift; + $this->SUPER::install($destdir, "PREFIX=/usr", @_); +} + +1; diff --cc debian/changelog index 8a76e1c,08ed826..8d15878 --- a/debian/changelog +++ b/debian/changelog @@@ -1,20 -1,10 +1,27 @@@ +debhelper (7.3.0) UNRELEASED; urgency=low + + * Modular object oriented dh_auto_* buildsystem support, + contributed by Modestas Vainius + - dh_auto_* --builddirectory can now be used to specify a build + directory to use for out of source building, for build systems + that support it. Closes: #480577 + - dh_auto_* --buildsystem can now be used to override the autodetected + build system, or force use of a third-party class. + - dh_auto_* --list can be used to list available and selected build + systems. + - Adds support for cmake. + - Historical dh_auto_* behavior should be preserved despite these + large changes.. + + -- Joey Hess Mon, 20 Apr 2009 16:26:08 -0400 + + debhelper (7.2.13) unstable; urgency=low + + * dh_auto_configure: Pass --skipdeps safely via PERL_AUTOINSTALL. + Closes: #528235 + + -- Joey Hess Thu, 14 May 2009 15:21:21 -0400 + debhelper (7.2.12) unstable; urgency=low * dh_auto_configure: Revert --skipdeps change