Re: [ANNOUNCE] automatic perl module building from CPAN
Paolo Molaro wrote:
> Been there, done that. A few months ago. We even discussed it on debian-perl.
Hm, I wonder how I missed it.
I do sorta prefer the way my method integrates with CPAN shell, but no
matter, CPAN is an ugly dog anyway.
A things you may want to incorporate:
* There is no need to include your own code to extract version info from
the makefile. CPAN can already do this. Get a CPAN::Module object and
calls its cpan_version method.
* Similarly for name, just use $module->id
* If you have a CPAN::Module, $module->{description} will occasionally
contain a useful description. But that's a nice job parsing the
pod docs doe the long description!
* I personally think it's a nice touch to drop the built deb in the
directory the command was run in. Much more convenient that way,
rather that having to dig around in .cpan/build. Just call dh_builddeb so:
DESTDIR=..
dh_builddeb --destdir=\$(DESTDIR)
Then override DESTDIR to set it to the pwd (which must be saved;
CPAN.pm will change it).
--
see shy jo
Reply to: