DhMakePerl::Command::Packaging(3pm)

DhMakePerl::Command::Packaging3pm

Common routines for 'make' and 'refresh' dh-make-perl commands

Methods

main_file(file_name)

Constructs a file name relative to the main source directory, "main_dir"

debian_file(file_name)

Constructs a file name relative to the debian/ sub-directory of the main source directory.

explained_dependency $reason, $dependencies, @dependencies

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".

configure_cpan

Configure CPAN module. It is safe to call this method more than once, it will do nothing if CPAN is already configured.

discover_dependencies

Just a wrapper around $self->control->discover_dependencies which provides the right parameters to it.

Returns a list of missing modules.

discover_utility_deps

Determines whether certain versions of debhelper(1) and other packages are needed by the build process.

The following special cases are detected:

Module::Build::Tiny

if Module::Build::Tiny is present in the build-dependencies, debhelper dependency is raised to 9.20140227~ in case it was lower before.

dh --with=quilt

"dh --with=quilt" needs quilt.

quilt.make

If /usr/share/quilt/quilt.make is included in debian/rules, a build-dependency on "quilt" is added.

dh --with=perl_dbi

A build dependency on "libdbi-perl" is added.

dh --with=perl_openssl

A build dependency on "perl-openssl-defaults" is added.

makefile_pl_is_MBC

Checks if Makefile.PL is a compatibility wrapper around Build.PL provided by Module::Build::Compat.

backup_file(file_name)

Creates a backup copy of the specified file by adding ".bak" to its name. If the backup already exists, it is overwritten.

Does nothing unless the "backups" option is set.

unquote(string)

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.

create_upstream_metadata

Populates debian/upstream/metadata with information from META, using Debian::Upstream::Metadata::Perl.

cme_fix_dpkg_control

The equivalent of letting cme(1) reformat and fix debian/control.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From dh-make-perl 0.128 in Debian 13 (Trixie). Parsed by carta from the page's man source.