Re: [Module-build-general] A mini-language for dependencies?
Status: Beta
Brought to you by:
kwilliams
|
From: <sc...@po...> - 2003-03-06 08:49:12
|
On Thu, Mar 06, 2003 at 11:51:12AM +0800, Autrijus Tang wrote:
> build_requires:
> Test::More: {}
> recommends:
> Acme::ComeFrom:
> alternate:
> Acme::ComeWith:
> version: 0.05
> reason: "I really likes it"
> version: 0.02
The 'alternate' syntax feels better handled like so
recommends:
Text::Bastardize: 0
Net Transport Agent:
LWP: 1.25
Net::FTP: 0.24
ie. what you need it for then those modules which will fulfill the need.
Its simple to read and write.
And then when you need all the extra information (arch, perl, etc...)
there's an optional rich syntax like you have below.
> requires:
> Some::Module:
> arch: MSWin32
> perl: 5.6.0
> version: 1.04
> Other::Module:
> version 1.53
> arch: '!Solaris'
> perl: 5.005
> features:
> - name: This is feature one
> requires:
> arch: MSWin32
> Module::Foo:
> perl: '<5.6.0'
> version: 2.04
> - name: Feature two
> requires:
> Lingua::ZH::TaBE: {}
> recommends:
> Lingua::EN::Inflect:
> arch: '!MSWin32'
> version: 3.03
--
|