Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id: 33798
Status: resolved
Priority: 0/
Queue: Module-Install

People
Owner: PJF [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.68
Fixed in: (no value)



Subject: Provide installdirs=perl|site
Download (untitled) / with headers
text/plain 259b
Module::Install needs the equivalent of ExtUtils::MakeMaker INSTALLDIRS variable, probably for both command line usage and hardcoded in the Makefile.PL. (Or if it's already there, then the documentation is either hidden or non-existent) Regards, Slaven
G'day Slaven, On Tue Mar 04 11:10:37 2008, SREZIC wrote: Show quoted text
> Module::Install needs the equivalent of ExtUtils::MakeMaker INSTALLDIRS > variable, probably for both command line usage and hardcoded in the > Makefile.PL. > > (Or if it's already there, then the documentation is either hidden or > non-existent)
Module::Install has provided this for quite some time, but until about 10 minutes ago, it wasn't documented. It will be in the next release of Module::Install, or if you're impatient you can grab the dev release with: svn co http://svn.ali.as/cpan/trunk/Module-Install/ Module-Install I've included the relevant patch below so you don't have to go looking about for the documentation. On the assumption that this does what you need, I'm marking this ticket as resolved. Feel free to reply (which will re-open the ticket) if I've missed anything. All the best, Paul Index: lib/Module/Install.pod =================================================================== --- lib/Module/Install.pod (revision 3968) +++ lib/Module/Install.pod (working copy) @@ -421,6 +421,24 @@ To summarize, if you can see it on L<http://search.cpan.org/> and you shouldn't be able to, you need a C<no_index> entry to remove it. +=head2 installdirs, install_as_* + + installdirs 'site'; # the default + + install_as_core; # alias for installdirs 'perl' + install_as_cpan; # alias for installdirs 'site' + install_as_site; # alias for installdirs 'site' + install_as_vendor; # alias for installdirs 'vendor' + +The C<installdirs> and C<install_as> commands specify the location +where the module should be installed; this is the equivalent to +L<ExtUtils::MakeMaker>'s C<INSTALLDIRS> option. For almost all +regular modules, the default is recommended, and need not be +changed. Dual-life (core and CPAN) modules, as well as +vendor-specific modules, may need to use the other options. + +If unsure, do not use this option. + =head2 WriteAll The C<WriteAll> command is generally the last command in the file;


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.