Rechercher une page de manuel
Debian::Control::FromCPAN.3pm
Langue: en
Version: 2009-06-05 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Debian::Control::FromCPAN - fill debian/control from unpacked CPAN distributionSYNOPSIS
my $c = Debian::Control::FromCPAN->new_from_cpan_meta( $meta, {opts} ); # construct from unpacked CPAN dist META.yml Debian::Control::FromCPAN inherits from L<Debian::Control>.
CONSTRUCTOR
- new_from_cpan_meta( $meta[, $opts] )
- Accepts two arguments, a parsed META.yml file (i.e. a hash reference of file's content as returned by YAML) and a hash of options. These are given to the ``fill_from_cpan_meta'' method of the newly constructed instance.
METHODS
- fill_from_cpan_meta( meta, options )
- "meta" is the hash representation of CPAN's META.yml file. Its contents are converted to the relevant debian/control fields.
Options
-
- apt_contents
- An instance of Debian::AptContents class, used for finding packages corresponding to depended on modules.
-
- parse_meta_dep_list( src, apt_depends, missing )
- Convert the given CPAN META dependency list (src, hashref with module names for keys and versions for values) into an instance of the Debian::Dependencies class. Supplied apt_depends is used for finding Debian packages corresponfing to CPAN modules. Modules with no corresponding Debian packages are added to the missing parameter (which must be an instance of the Debian::Dependencies class).
- dependencies_from_cpan_meta( meta, apt_contents )
- Fills dependencies (build-time, run-time, recommends and conflicts) from given CPAN META.
COPYRIGHT & LICENSE
Copyright (C) 2009 Damyan Ivanov dmn@debian.orgThis 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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre