App::CPAN2Pkg - generating native linux packages from cpan
$ cpan2pkg $ cpan2pkg Module::Foo Module::Bar ...
Don't use this module directly, refer to the cpan2pkg script instead.
cpan2pkg
App::CPAN2Pkg is the controller for the cpan2pkg application. It implements a POE session, responsible to schedule and advance module packagement.
App::CPAN2Pkg
It is spawned by the poe session responsible for the user interface.
This method will create a POE session responsible for coordinating the package(s) creation.
It will return the POE id of the session newly created.
You can tune the session by passing some arguments as a hash reference, where the hash keys are:
modules => \@list_of_modules
A list of modules to start packaging.
The following events are the module's API.
Sent when $module has been cpan2dist-ed, with $success being true if everything went fine.
$module
cpan2dist
$success
Sent when $module has been installed locally, with $success return value.
Sent when $module knows whether it is installed locally ($is_installed set to true) or not.
$is_installed
Sent when $module has been spawned successfully.
Request the application to package (if needed) the perl $module. Note that the module can be either the top-most module of a distribution or deep inside said distribution.
Inform main application that $module needs some @prereqs (possibly empty).
@prereqs
Sent after trying to install $module from upstream dist. Result is passed along with $success.
Sent when $module knows whether it is available upstream ($is_available set to true) or not.
$is_available
Please report any bugs or feature requests to app-cpan2pkg at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-CPAN2Pkg. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
app-cpan2pkg at rt.cpan.org
Our git repository is located at git://repo.or.cz/app-cpan2pkg.git, and can be browsed at http://repo.or.cz/w/app-cpan2pkg.git.
You can also look for information on this module at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/App-CPAN2Pkg
CPAN Ratings
http://cpanratings.perl.org/d/App-CPAN2Pkg
Open bugs
http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-CPAN2Pkg
Jerome Quelin, <jquelin@cpan.org>
<jquelin@cpan.org>
Copyright (c) 2009 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::CPAN2Pkg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::CPAN2Pkg
CPAN shell
perl -MCPAN -e shell install App::CPAN2Pkg
For more information on module installation, please visit the detailed CPAN module installation guide.