01 Mar 2012 13:21:47 UTC
- Distribution: Module-Install
- Module version: 1.06
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (75)
- Testers (4784 / 59 / 0)
- KwaliteeBus factor: 5
- License: perl_5
- Perl: v5.5.0
- Activity24 month
- Download (132.29KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Module::Install::Bundle - Bundle distributions along with your distribution
Have your Makefile.PL read as follows:
use inc::Module::Install; name 'Foo-Bar'; all_from 'lib/Foo/Bar.pm'; requires 'Baz' => '1.60'; # one of either: bundle 'Baz' => '1.60'; # OR: auto_bundle; WriteAll;
Module::Install::Bundle allows you to bundle a CPAN distribution within your distribution. When your end-users install your distribution, the bundled distribution will be installed along with yours, unless a newer version of the bundled distribution already exists on their local filesystem.
While bundling will increase the size of your distribution, it has several benefits:
Allows installation of bundled distributions when CPAN is unavailable Allows installation of bundled distributions when networking is unavailable Allows everything your distribution needs to be packaged in one place
Bundling differs from auto-installation in that when it comes time to install, a bundled distribution will be installed based on the distribution bundled with your distribution, whereas with auto-installation the distibution to be installed will be acquired from CPAN and then installed.
Takes no arguments, will bundle every distribution specified by a
requires(). When you, as a module author, do a
perl Makefile.PLthe latest versions of the distributions to be bundled will be acquired from CPAN and placed in inc/BUNDLES/.
Takes a list of key/value pairs specifying a distribution name and version number. When you, as a module author, do a perl Makefile.PL the distributions that you specified with
bundle()will be acquired from CPAN and placed in inc/BUNDLES/.
bundle, except that all dependencies of the bundled modules are also detected and bundled. To use this function, you need to declare the minimum supported perl version first, like this:
perl_version( '5.005' );
auto_bundle, except that all dependencies of the bundled modules are also detected and bundled. This function has the same constraints as bundle_deps.
Please report any bugs to (patches welcome):
Audrey Tang <firstname.lastname@example.org>
Documentation by Adam Foxson <email@example.com>
Copyright 2003, 2004, 2005 by Audrey Tang <firstname.lastname@example.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Module::Install, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Module::Install
For more information on module installation, please visit the detailed CPAN module installation guide.