Module-CPANfile-1.0001 > 1.0002 との差分

cpanfile 1.0002 と 1.0001 の差分

11=encoding utf8
22
33=head1 NAME
44
55=begin original
66
77cpanfile - A format for describing CPAN dependencies for Perl applications
88
99=end original
1010
1111cpanfile - PerlアプリケーションのためにCPANの依存性を記述するためのフォーマット
1212
1313=head1 SYNOPSIS
1414
1515 requires 'Catalyst', '5.8000'; # 5.8000 or newer
1616 requires 'Catalyst::View::JSON', '>= 0.30, < 0.40';
1717
1818 recommends 'JSON::XS', '2.0';
1919 conflicts 'JSON', '< 1.0';
2020
2121 on 'test' => sub {
2222 requires 'Test::More', '>= 0.96, < 2.0';
2323 recommends 'Test::TCP', '1.12';
2424 };
2525
2626 on 'develop' => sub {
2727 recommends 'Devel::NYTProf';
2828 };
2929
3030 feature 'sqlite', 'SQLite support' => sub {
3131 recommends 'DBD::SQLite';
3232 };
3333
3434=head1 VERSION
3535
3636=begin original
3737
3838This doucment describes cpanfile format version 1.0.
3939
4040=end original
4141
4242このドキュメントは cpanfile フォーマット バージョン 1.0 について書いています。
4343
4444=head1 DESCRIPTION
4545
4646=begin original
4747
4848C<cpanfile> describes CPAN dependencies required to execute associated
4949Perl code.
5050
5151=end original
5252
5353C<cpanfile> は、関連する Perl のコードを実行するために必要とされている CPAN の依存について記述します。
5454
5555=head1 シンタックス
5656
5757=over 4
5858
5959=item requires, recommends, suggests, conflicts
6060
6161 requires $module, $version_requirement;
6262
6363=begin original
6464
6565Describes the requirement for a module. See L<CPAN::Meta::Spec> for
6666the meanings of each requirement type.
6767
6868=end original
6969
7070モジュールの要求を記述します。それぞれの要求のタイプの意味については、L<CPAN::Meta::Spec>
7171を見てください。
7272
7373=begin original
7474
7575When version requirement is omitted, it is assumed that C<0> is
7676passed, meaning any version of the module would satisfy the
7777requirement.
7878
7979=end original
8080
8181バージョンの要求が省略された場合、C<0>が渡されたと想定します。
8282どのバージョンでも要求を満たすことを意味します。
8383
8484=begin original
8585
8686Version requirement can either be a version number or a string that
8787satisfies L<CPAN::Meta::Spec/Version Ranges>, such as C<< >= 1.0, !=
88881.1 >>.
8989
9090=end original
9191
9292バージョンの要求はバージョン番号か、L<CPAN::Meta::Spec/Version Ranges>を満たす
9393C<< >=1.0, !=1.1 >>のような文字列のいずれも可能です。
9494
95=begin original
96
97Note that, per L<CPAN::Meta::Spec>, when a plain version number is
98given, it means the version I<or newer> is required. If you want a
99specific version for a module, use the specific range syntax, i.e.
100C< == 2.1 >.
101
102=end original
103
104次のことに注意してください。L<CPAN::Meta::Spec>によって、単純なバージョン番号
105が与えらた場合、そのバージョンかI<より新しいもの>が必要であることを意味します。
106もしモジュールの特定のバージョンが欲しければ、特定の範囲シンタックスを使ってください。
107i.e. C< == 2.1 >。
108
10995=item on
11096
11197 on $phase => sub { ... };
11298
11399=begin original
114100
115101Describe requirements for a specific phase. Available phases are
116102C<configure>, C<build>, C<test>, C<runtime> and C<develop>.
117103
118104=end original
119105
120106特定のフェーズ用の要求を記述できます。利用可能なフェーズは、
121107
122108C<configure>、C<build>、C<test>、C<runtime> と C<develop> です。
123109
124110=item feature
125111
126112 feature $identifier, $description => sub { ... };
127113
128114=begin original
129115
130116Group requirements with features. Description can be omitted, when it
131117is assumed to be the same as identifier. See
132118L<CPAN::Meta::Spec/optional_features> for more details.
133119
134120=end original
135121
136122機能に対する要求をグループ化します。識別子と同じと想定できるときは
137123説明は省くことができます。詳細は
138124L<CPAN::Meta::Spec/optional_features> を見てください。
139125
140126=item configure_requires, build_requires, test_requires, author_requires
141127
142128 configure_requires $module, $version;
143129 # on 'configure' => sub { requires $module, $version }
144130
145131 build_requires $module, $version;
146132 # on 'build' => sub { requires $module, $version };
147133
148134 test_requires $module, $version;
149135 # on 'test' => sub { requires $module, $version };
150136
151137 author_requires $module, $version;
152138 # on 'develop' => sub { requires $module, $version };
153139
154140=begin original
155141
156142Shortcut for C<requires> in specific phase. This is mainly provided
157143for compatibilities with L<Module::Install> DSL.
158144
159145=end original
160146
161147特定のフェーズのC<requires>のショートカットです。主に、L<Module::Install>のDSL
162148と互換性をもたせるために提供されています。
163149
164150=back
165151
166152=head1 USAGE
167153
168154=begin original
169155
170156C<cpanfile> is a format to describe dependencies. How to use this file
171157is dependent on the tools reading/writing it.
172158
173159=end original
174160
175161C<cpanfile> は、依存を記述するためのフォーマットです。このファイルの使い方は
176162それを読む/書くツールに依存します。
177163
178164=begin original
179165
180166Usually, you're expected to place the C<cpanfile> in the root of the
181167directory containing the associated code.
182168
183169=end original
184170
185171普通、C<cpanfile>を関連するコードが含まれているルートディレクトリに置くと
186172予期します。
187173
188174=begin original
189175
190176Tools supporting C<cpanfile> format (e.g. L<cpanm> and L<carton>) will
191177automatically detect the file and install dependencies for the code to
192178run.
193179
194180=end original
195181
196182C<cpanfile>フォーマットをサポートするツール(例: L<cpanm>やL<carton>)は、
197183ファイルを自動的に見つけ、実行するコードのために依存をインストールします。
198184
199185=begin original
200186
201187There are also tools to support converting cpanfile to CPAN toolchain
202188compatible formats, such as L<Module::CPANfile>,
203189L<Dist::Zilla::Plugin::Prereqs::FromCPANfile>,
204190L<Module::Install::CPANfile>, so that C<cpanfile> can be used to
205191describe dependencies for a CPAN distribution as well.
206192
207193=end original
208194
209195cpanfileをCPANツールチェインと互換性のあるフォーマットに変換するツールも
210196あります。L<Module::CPANfile>、
211197L<Dist::Zilla::Plugin::Prereqs::FromCPANfile>、
212198L<Module::Install::CPANfile>などです。 そのため、C<cpanfile>は、
213199CPANディストリビューションの依存性を記述するためにも使えます。
214200
215201=head1 AUTHOR
216202
217203Tatsuhiko Miyagawa
218204
219205=head1 ACKNOWLEDGEMENTS
220206
221207=begin original
222208
223209The format (DSL syntax) is inspired by L<Module::Install> and
224210L<Module::Build::Functions>.
225211
226212=end original
227213
228214このフォーマット(DSLシンタックス)は、L<Module::Install> と
229215L<Module::Build::Functions>にインスパイアされています。
230216
231217=begin original
232218
233219C<cpanfile> specification (this document) is based on Ruby's
234220L<Gemfile|http://bundler.io/v1.3/man/gemfile.5.html> specification.
235221
236222=end original
237223
238224C<cpanfile> の仕様(このドキュメント) は Ruby の
239225L<Gemfile|http://bundler.io/v1.3/man/gemfile.5.html> の仕様に基づいています。
240226
241227=head1 SEE ALSO
242228
243229L<CPAN::Meta::Spec> L<Module::Install> L<Carton>
244230
245231
246232=cut