Skip to content
Newer
Older
100644 61 lines (40 sloc) 1.65 KB
8dd5b19 @miyagawa fix POD; added README
authored
1 # NAME
2
3 cpanfile - A format for describing CPAN dependencies for Perl applications
4
5 # SYNOPSIS
6
7 requires 'Catalyst', '5.8000';
8 requires 'CatalystX::Singleton', '>= 1.1000, < 2.000';
9
10 recommends 'JSON::XS', '2.0';
11 conflicts 'JSON', '< 1.0';
12
13 osname 'MSWin32' => sub {
14 requires 'Win32::File';
15 };
16
17 on 'test' => sub {
18 requires 'Test::More', '>= 0.96, < 2.0';
19 recommends 'Test::TCP', '1.12';
20 };
21
22 on 'develop' => sub {
23 recommends 'Devel::NYTProf';
24 };
25
26 perl '< v5.10' => sub {
27 requires 'Hash::Util::FieldHash::Compat';
28 };
29
30 # VERSION
31
32 0.9000
33
34 # DESCRIPTION
35
36 `cpanfile` describes CPAN dependencies required to execute associated
37 Perl code.
38
39 Place the `cpanfile` in the root of the directory containing the
40 associated code. For instance, in a Catalyst application, place the
41 `cpanfile` in the same directory as `myapp.conf`.
42
43 Tools supporting `cpanfile` format (e.g. [cpanm](http://search.cpan.org/perldoc?cpanm) and [carton](http://search.cpan.org/perldoc?carton)) will
44 automatically detect the file and install dependencies for the code to
45 run.
46
47 # AUTHOR
48
49 Tatsuhiko Miyagawa
50
51 # ACKNOWLEDGEMENTS
52
53 The format (DSL syntax) is inspired by [Module::Install](http://search.cpan.org/perldoc?Module::Install) and
54 [Module::Build::Functions](http://search.cpan.org/perldoc?Module::Build::Functions).
55
56 `cpanfile` specification (this document) is based on Ruby's
57 [Gemfile](http://gembundler.com/man/gemfile.5.html) specification.
58
59 # SEE ALSO
60
61 [CPAN::Meta::Spec](http://search.cpan.org/perldoc?CPAN::Meta::Spec) [Module::Install](http://search.cpan.org/perldoc?Module::Install) [Carton](http://search.cpan.org/perldoc?Carton)
Something went wrong with that request. Please try again.