2 # This file is part of App::CPAN2Pkg.
3 # Copyright (c) 2009 Jerome Quelin, all rights reserved.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the same terms as Perl itself.
10 package App
::CPAN2Pkg
;
17 our $VERSION = '0.0.1';
20 my ($class, $opts) = @_;
22 my $session = POE
::Session
->create(
25 _stop
=> sub { warn "stop"; },
35 # - computing dependencies
36 # - installing dependencies
37 # - check cooker availability
40 # - check local availability
43 # - wait for kenobi build
47 my ($k,$opts) = @_[KERNEL
, ARG0
];
49 my $modules = $opts->{modules
};
50 warn "$_\n" for @
$modules;
62 App::CPAN2Pkg - generating native linux packages from cpan
69 $ cpan2pkg Module::Foo Module::Bar ...
75 Don't use this module directly, refer to the C<cpan2pkg> script instead.
77 C<App::CPAN2Pkg> is the controller for the C<cpan2pkg> application. It
78 implements a POE session, responsible to schedule and advance module
81 It is spawned by the poe session responsible for the user interface.
85 =head1 PUBLIC PACKAGE METHODS
87 =head2 my $id = App::CPAN2Pkg->spawn( \%params )
89 This method will create a POE session responsible for coordinating the
92 It will return the POE id of the session newly created.
94 You can tune the session by passing some arguments as a hash
95 reference, where the hash keys are:
99 =item * modules => \@list_of_modules
101 A list of modules to start packaging.
110 Please report any bugs or feature requests to C<app-cpan2pkg at
111 rt.cpan.org>, or through the web interface at
112 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-CPAN2Pkg>. I will
113 be notified, and then you'll automatically be notified of progress on
114 your bug as I make changes.
120 Our git repository is located at L<git://repo.or.cz/app-cpan2pkg.git>,
121 and can be browsed at L<http://repo.or.cz/w/app-cpan2pkg.git>.
124 You can also look for information on this module at:
128 =item * AnnoCPAN: Annotated CPAN documentation
130 L<http://annocpan.org/dist/App-CPAN2Pkg>
134 L<http://cpanratings.perl.org/d/App-CPAN2Pkg>
138 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-CPAN2Pkg>
146 Jerome Quelin, C<< <jquelin@cpan.org> >>
150 =head1 COPYRIGHT & LICENSE
152 Copyright (c) 2009 Jerome Quelin, all rights reserved.
154 This program is free software; you can redistribute it and/or modify
155 it under the same terms as Perl itself.