1Module::Install::BundleU(s3e)r Contributed Perl DocumentaMtoidounle::Install::Bundle(3)
2
3
4

NAME

6       Module::Install::Bundle - Bundle distributions along with your distri‐
7       bution
8

SYNOPSIS

10       Have your Makefile.PL read as follows:
11
12         use inc::Module::Install;
13
14         name      'Foo-Bar';
15         all_from  'lib/Foo/Bar.pm';
16         requires  'Baz' => '1.60';
17
18         # one of either:
19         bundle    'Baz' => '1.60';
20         # OR:
21         auto_bundle;
22
23         WriteAll;
24

DESCRIPTION

26       Module::Install::Bundle allows you to bundle a CPAN distribution within
27       your distribution. When your end-users install your distribution, the
28       bundled distribution will be installed along with yours, unless a newer
29       version of the bundled distribution already exists on their local
30       filesystem.
31
32       While bundling will increase the size of your distribution, it has sev‐
33       eral benefits:
34
35         Allows installation of bundled distributions when CPAN is unavailable
36         Allows installation of bundled distributions when networking is unavailable
37         Allows everything your distribution needs to be packaged in one place
38
39       Bundling differs from auto-installation in that when it comes time to
40       install, a bundled distribution will be installed based on the distri‐
41       bution bundled with your distribution, whereas with auto-installation
42       the distibution to be installed will be acquired from CPAN and then
43       installed.
44

METHODS

46       * auto_bundle()
47           Takes no arguments, will bundle every distribution specified by a
48           "requires()".  When you, as a module author, do a "perl Make‐
49           file.PL" the latest versions of the distributions to be bundled
50           will be acquired from CPAN and placed in inc/BUNDLES/.
51
52       * bundle($name, $version)
53           Takes a list of key/value pairs specifying a distribution name and
54           version number. When you, as a module author, do a perl Makefile.PL
55           the distributions that you specified with "bundle()" will be
56           acquired from CPAN and placed in inc/BUNDLES/.
57
58       * bundle_deps($name, $version)
59           Same as "bundle", except that all dependencies of the bundled mod‐
60           ules are also detected and bundled.  To use this function, you need
61           to declare the minimum supported perl version first, like this:
62
63               requires( perl => 5.005 );
64
65       * auto_bundle_deps
66           Same as "auto_bundle", except that all dependencies of the bundled
67           modules are also detected and bundled. This function has the same
68           constraints as bundle_deps.
69

BUGS

71       Please report any bugs to (patches welcome):
72
73           http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Install
74

AUTHORS

76       Audrey Tang <autrijus@autrijus.org>
77
78       Documentation by Adam Foxson <afoxson@pobox.com>
79
81       Copyright 2003, 2004, 2005 by Audrey Tang <autrijus@autrijus.org>.
82
83       This program is free software; you can redistribute it and/or modify it
84       under the same terms as Perl itself.
85
86
87
88perl v5.8.8                       2007-03-05        Module::Install::Bundle(3)
Impressum