|
NAMEcpanfile - A format for describing CPAN dependencies for Perl applicationsSYNOPSISrequires 'Plack', '1.0'; # 1.0 or newer requires 'JSON', '>= 2.00, < 2.80'; recommends 'JSON::XS', '2.0'; conflicts 'JSON', '< 1.0'; on 'test' => sub { requires 'Test::More', '>= 0.96, < 2.0'; recommends 'Test::TCP', '1.12'; }; on 'develop' => sub { recommends 'Devel::NYTProf'; }; feature 'sqlite', 'SQLite support' => sub { recommends 'DBD::SQLite'; }; VERSIONThis document describes cpanfile format version 1.0.DESCRIPTION"cpanfile" describes CPAN dependencies required to execute associated Perl code.SYNTAX
USAGE"cpanfile" is a format to describe dependencies. How to use this file is dependent on the tools reading/writing it.Usually, you're expected to place the "cpanfile" in the root of the directory containing the associated code. Tools supporting "cpanfile" format (e.g. cpanm and carton) will automatically detect the file and install dependencies for the code to run. There are also tools to support converting cpanfile to CPAN toolchain compatible formats, such as Module::CPANfile, Dist::Zilla::Plugin::Prereqs::FromCPANfile, Module::Install::CPANfile, so that "cpanfile" can be used to describe dependencies for a CPAN distribution as well. The cpanfile-dump tool can be used to dump dependencies. AUTHORTatsuhiko MiyagawaACKNOWLEDGEMENTSThe format (DSL syntax) is inspired by Module::Install and Module::Build::Functions."cpanfile" specification (this document) is based on Ruby's Gemfile <http://bundler.io/v1.3/man/gemfile.5.html> specification. SEE ALSOCPAN::Meta::Spec Module::Install Carton
Visit the GSP FreeBSD Man Page Interface. |