META.yml, Module::Build and dh-make-perl

IlyaM on 2003-09-07T17:47:57

Posting here just to keep this knowledge somewhere. To make dh-make-perl work with Module::Build based Perl module distros you need:

  • Apply this patch to enable dh-make-perl to retrieve module name and version information from META.yml.
  • After running dh-make-perl tweak file debian/rules. Replace
    $(PERL) Makefile.PL INSTALLDIRS=vendor
    $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
    
    with
    $(PERL) Build.PL installdirs=vendor
    OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH="" ./Build
    
    and
    $(MAKE) install PREFIX=$(TMP)/usr
    
    with
    ./Build install destdir=$(TMP)
    




I'd add native Module::Build support to dh-make-perl but this code badly needs refactoring before adding more code.