Skip Menu |
 

This queue is for tickets about the CPANPLUS-Dist-Deb CPAN distribution.

Report information
The Basics
Id: 27562
Status: resolved
Priority: 0/
Queue: CPANPLUS-Dist-Deb

People
Owner: Nobody in particular
Requestors: andreas.marienborg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: A way to specify external dependencies would be grand
Download (untitled) / with headers
text/plain 383b
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. The most golden way would be in Makefile.PL, but if not there, on the commandline could also be a good start, like: cpan2dist --format CPANPLUS::Dist::Deb --dep libxapian15 --dep mytemplates or something like that
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.