I use Debian/testing aka squeeze and I've got ~300 non-Debian CPAN packages installed, all as .deb's using dh-make-perl. FWIW my workflow{1} is:
- cd <<cpanplus build directory>>
- cpanp t Module::To::Install download & test the module and all dependencies
- dh-make-perl --version <<module-version>>-0.0 --build <<directory>> for each directory created by cpanp. (Some fail, and some succeed.)
- su -c 'dpkg -i *.deb' Install those that succeeded
- Repeat 3 & 4 until all the modules are installed
It's a long way from being perfect, but it works for me.
{1} Scripted, of course:
#!/usr/bin/perl
use 5.010;
use strict;
use warnings FATAL => 'all';
run();
sub run {
fetch_and_test($_)
for @ARGV;
for my $dir (grep -d, glob "*") {
system qw[rm -rf], "$dir/debian"
if -e "$dir/debian";
my ($module, $ver) = $dir =~ m/(.*)-(.*)/;
my $deb = lc "lib$module-perl";
system(qw/dh-make-perl --version/, "$ver-0.0", "--build", $dir
+) == 0
and system qw/rm -rf/, $dir; #created a deb
}
}
sub fetch_and_test {
my $module = shift;
system qw[
cpanp
s conf prereqs 1;
],
"t", $module;
}
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.