On Wed Jun 13 07:25:32 2007, ANDREMAR wrote:
Show quoted text> The thing is I have some modules that depend on C-libraries, and
> manually packed packages like templates etc. It would be great if it was
> easy to somehow specify this.
I've added 2 bits of code to CPANPLUS and CPANPLUS::Dist::Deb;
1) a callback in CPANPLUS that can be called when writing metafiles:
=item munge_dist_metafile
Is called when the C<CPANPLUS::Dist::*> metafile is created, like
C<control> for C<CPANPLUS::Dist::Deb>, giving the user a chance to
programatically alter it. Should return the (munged) text to be
written to the metafile.
=back
2) an option to cpan2dist to use this callback to pop up an editor to
allow you to edit any metafiles that are being written:
--edit-metafile Edit the distributions metafile(s) before the distribution
is built. Requires a configured editor.
So now you can do things like:
$ cpan2dist --format=CPANPLUS::Dist::Deb --edit-metafile My::Module
and edit any dependencies, descriptions, etc to your liking.
These changes will be part of CPANPLUS > 0.80 and CPANPLUS::Dist::Deb > 0.06