Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

debian::control::fromcpan(3pm) [debian man page]

Debian::Control::FromCPAN(3pm)				User Contributed Perl Documentation			    Debian::Control::FromCPAN(3pm)

NAME
Debian::Control::FromCPAN - fill debian/control from unpacked CPAN distribution SYNOPSIS
my $c = Debian::Control::FromCPAN->new(); $c->discover_dependencies( { ... } ); $c->prune_perl_deps; Debian::Control::FromCPAN inherits from L<Debian::Control>. METHODS
discover_dependencies( [ { options hash } ] ) Discovers module dependencies and fills the dependency fields in debian/control accordingly. Options: apt_contents An instance of Debian::AptContents to be used when locating to which package a required module belongs. dir The directory where the cpan distribution was unpacked. intrusive A flag indicating permission to use Module::Depends::Intrusive for discovering dependencies in case Module::Depends fails. Sinse this requires loading all Perl modules in the distribution (and running their BEGIN blocks (and the BEGIN blocks of their dependencies, recursively), it is recommended to use this only when dealing with trusted sources. require_deps If true, causes the method to die if some a package for some dependency cannot be found. Otherwise only a warning is issued. verbose wnpp_query An instance of Debian::WNPP::Query to be used when checking for WNPP bugs of depeended upon packages. Returns a list of module names for which no suitable Debian packages were found. find_debs_for_modules dep hash[, APT contents[, verbose ]] Scans the given hash of dependencies ( module => version ) and returns matching Debian package dependency specification (as an instance of Debian::Dependencies class) and a list of missing modules. Installed packages are searched first, then the APT contents, then the perl core. prune_simple_perl_dep Input: dependency object shall be a simple dependency (no alternatives) (optional) build dependency flag true value indicates the dependency is a build-time one The following checks are made dependencies on "perl-modules" These are replaced with "perl" as per Perl policy. dependencies on "perl-base" and build-dependencies on "perl" or "perl-base" These are removed, unless they specify a version greater than the one available in "oldstable" or the dependency relation is not ">=" or ">>". Return value: undef if the dependency is redundant. pruned dependency otherwise. "perl-modules" replaced with "perl". prune_perl_dep Similar to "prune_simple_perl_dep", but supports alternative dependencies. If any of the alternatives is redundant, the whole dependency is considered redundant. prune_perl_deps Remove redundant (build-)dependencies on perl, perl-modules and perl-base. COPYRIGHT &; LICENSE Copyright (C) 2009, 2010 Damyan Ivanov dmn@debian.org 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. perl v5.14.2 2012-01-15 Debian::Control::FromCPAN(3pm)

Check Out this Related Man Page

DhMakePerl::Command::Packaging(3pm)			User Contributed Perl Documentation		       DhMakePerl::Command::Packaging(3pm)

NAME
DhMakePerl::Command::Packaging - 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/ subdurectory 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 a certain version of debhelper(1) or quilt(1) is needed by the build process. The following special cases are detected: Module::AutoInstall If Module::AutoInstall is discovered in "" in inc, debhelper dependency is raised to 7.2.13. dh --with=quilt "dh --with=quilt" needs debhelper 7.0.8 and quilt 0.46-7. dh --with=bash-completion "dh --with=bash-completion" needs debhelper 7.0.8 and bash-completion 1:1.0-3. dh --with=perl_dbi "dh --with=perl_dbi" needs debhelper 7.0.8 and libdbi-perl 1.612. dh --buildsystem=buildsystem "dh --buildsystem=buildsystem" needs debhelper 7.3.7. quilt.make If /usr/share/quilt/quilt.make is included in debian/rules, a build-dependency on "quilt" is added. debhelper override targets Targets named "override_dh_..." are supported by debhelper since 7.0.50 Makefile.PL created by Module::Build::Compat Building such packages requires debhelper 7.0.17 (see <http://bugs.debian.org/496157>) =back Module::Build The proper build-dependency in this case is perl The unversioned dependency on perl is set as Lenny has already 5.10 which includes first Module::Build. 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. COPYRIGHT &; LICENSE Copyright (C) 2000, 2001 Paolo Molaro <lupus@debian.org> Copyright (C) 2002, 2003, 2008 Ivan Kohler <ivan-debian@420.am> Copyright (C) 2003, 2004 Marc 'HE' Brockschmidt <he@debian.org> Copyright (C) 2005-2007 Gunnar Wolf <gwolf@debian.org> Copyright (C) 2006 Frank Lichtenheld <djpig@debian.org> Copyright (C) 2007-2011 Gregor Herrmann <gregoa@debian.org> Copyright (C) 2007-2010 Damyan Ivanov <dmn@debian.org> Copyright (C) 2008, Roberto C. Sanchez <roberto@connexer.com> Copyright (C) 2009-2011, Salvatore Bonaccorso <carnil@debian.org> Copyright (C) 2011, Nicholas Bamber <nicholas@periapt.co.uk> 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. perl v5.14.2 2012-01-15 DhMakePerl::Command::Packaging(3pm)
Man Page