We consider to use Minilla or Dist::Milla for our perl development. Declaring dependencies is done via cpanfile. I expected to find an exact definintion of wha
I installed Module::CPANFile and perldoc cpanfile
and perldoc cpanfile-faq
were available.
The POD for cpanfile
states:
[the] cpanfile specification (this document) is based on Ruby's
Gemfile http://gembundler.com/man/gemfile.5.html specification.
The link in the cpanfile
manual page is broken. It should point to: http://bundler.io/v1.3/man/gemfile.5.html
cpanfile
is designed to "backwards compatible" with Module::Install DSL syntax and is "convertible to CPAN::Meta::Prereqs" and inspired by CPAN::Meta Spec v.2
etc.
As I understand it cpanfile
is somewhat of a "meta-format" and fits into a range of TIMTOWTDI approaches (see miyagawa's blog describing cpanfile), compatible with Module::Install
and mostly self-documenting. For example if you run mymeta-cpanfile
inside a directory with META
files it will build a cpanfile
for you; you can write a script that describes prerequisites from CPAN::Meta::Prereqs
and then $file->save('cpanfile');
to write a cpanfile
.
As for Dist::Milla
, in the tutorial (see the POD included with Dist::Milla
) miyagawa points out that
"If you decide to manually construct [a] new cpanfile
, the format is mostly compatible to Module::Install
's requirement DSL". The tutorial also gives a short example.
I think it would be fair to ask miyagawa to clarify the status and use cases of the cpanfile
specification/format in the documentation for the distribution. That and a few more examples would answer questions like yours. He has mostly done the work on this already - it is just not all in one place.