bernd / fpm-cookery

A tool for building software packages with fpm.
Other
459 stars 88 forks source link

Add support for CPAN packages #87

Closed mlafeldt closed 10 years ago

mlafeldt commented 10 years ago

Example recipe:

class PerlLinguaJARomanizeJapanese < FPM::Cookery::CPANRecipe
  name       "Lingua::JA::Romanize::Japanese"
  version    "0.23"
  maintainer "Mathias Lafeldt <mathias.lafeldt@jimdo.com>"

  build_depends "liblocal-lib-perl"
  depends       "perl"

  fpm_attributes :no_auto_depends?   => true,
                 :cpan_perl_lib_path => "/usr/share/perl5",
                 :cpan_mirror        => "http://artfiles.org/cpan.org/"
end

Note that I decided to use the new fpm_attributes helper to pass any attributes to FPM instead of implementing them in FPM::Cookery::Package::CPAN. Not sure what's the preferred way here though.

bernd commented 10 years ago

I think it would be nice to have wrappers for often used options and leave more esoteric ones for fpm_attributes. But we can add those wrappers later.