Changeset e4b8f93 for perl/lib/Module


Ignore:
Timestamp:
Jun 20, 2013, 9:25:24 AM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
cf2ebde, 1b17f50, 10c32c9
Parents:
1c22155
git-author:
Anders Kaseorg <andersk@mit.edu> (04/10/13 06:23:40)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/20/13 09:25:24)
Message:
Really support building Perl modules from a separate builddir

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/Module/Install/BarnOwl.pm

    rb8a3e00 re4b8f93  
    4141    my $class = ref $self;
    4242
     43    my $srcdir = $ENV{BARNOWL_SRCDIR} || '.';
     44
    4345    $self->name("BarnOwl-Module-$name");
    44     $self->all_from("lib/BarnOwl/Module/$name.pm");
     46    $self->all_from("$srcdir/lib/BarnOwl/Module/$name.pm");
     47    $self->makemaker_args(PMLIBDIRS => ["$srcdir/lib"],
     48                          PMLIBPARENTDIRS => ["$srcdir/lib"]);
    4549
    4650    $self->postamble(<<"END_MAKEFILE");
    4751
    4852# --- $class section:
     53
     54BARNOWL_SRCDIR = $srcdir
     55export BARNOWL_SRCDIR
    4956
    5057$name.par: pm_to_blib
Note: See TracChangeset for help on using the changeset viewer.