DhMakePerl::Command::Packaging - common routines for 'make' and 'refresh' dh-make-perl commands
Constructs a file name relative to the main source directory, "main_dir"
Constructs a file name relative to the debian/ sub-directory of the main source directory.
Adds the list of dependencies to $dependencies and shows $reason if in verbose mode.
Used to both bump a dependency and tell the user why.
$dependencies is an instance of Debian::Dependencies class, and @dependencies is a list of Debian::Dependency instances or strings.
The message printed looks like $reason needs @dependencies.
$reason needs @dependencies
Configure CPAN module. It is safe to call this method more than once, it will do nothing if CPAN is already configured.
Just a wrapper around $self->control->discover_dependencies which provides the right parameters to it.
Returns a list of missing modules.
Determines whether certain versions of debhelper(1) and other packages are needed by the build process.
The following special cases are detected:
if Module::Build::Tiny is present in the build-dependencies, debhelper dependency is raised to 9.20140227~.
dh --with=quilt needs quilt.
dh --with=quilt
If /usr/share/quilt/quilt.make is included in debian/rules, a build-dependency on quilt is added.
quilt
The proper build-dependency in this case is
perl
The on perl without a version is set as Lenny has already 5.10 which includes first Module::Build.
Checks if Makefile.PL is a compatibility wrapper around Build.PL provided by Module::Build::Compat.
Creates a backup copy of the specified file by adding .bak to its name. If the backup already exists, it is overwritten.
.bak
Does nothing unless the backups option is set.
backups
Runs its argument through Text::Balanced's extract_quotelike method and returns the extracted content with quotes removed. Dies if extract_quotelike can't find quoted string.
extract_quotelike
Populates debian/upstream/metadata with information from META.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
To install DhMakePerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DhMakePerl
CPAN shell
perl -MCPAN -e shell install DhMakePerl
For more information on module installation, please visit the detailed CPAN module installation guide.