Changeset 5873


Ignore:
Timestamp:
07/06/09 01:17:33 (3 years ago)
Author:
CSJewell
Message:

Allow Alien::wxWidgets to be installed from a .par file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Perl-Dist-Padre/lib/Perl/Dist/Padre.pm

    r5726 r5873  
    2525use warnings; 
    2626use Perl::Dist::Strawberry (); 
    27  
    28 our $VERSION = '0.260_003'; 
     27use URI::file (); 
     28 
     29our $VERSION = '0.260_004'; 
    2930our @ISA     = 'Perl::Dist::Strawberry'; 
    3031 
     
    194195 
    195196    # Install the Alien module 
    196     $self->install_module( name => 'Alien::wxWidgets'        ); 
    197  
     197    if (defined $ENV{PERL_DIST_PADRE_ALIENWXWIDGETS_PAR_LOCATION}) { 
     198        my $filelist = $self->install_par( 
     199            name => 'Alien_wxWidgets',  
     200            url => URI::file->new($ENV{PERL_DIST_PADRE_ALIENWXWIDGETS_PAR_LOCATION})->as_string(), 
     201        ); 
     202        $self->insert_fragment( 'Alien_wxWidgets', $filelist->files ); 
     203    } else { 
     204        $self->install_module( name => 'Alien::wxWidgets'        ); 
     205    } 
    198206    # Install the Wx module over the top of alien module 
    199207    $self->install_module( name => 'Wx'                      ); 
Note: See TracChangeset for help on using the changeset viewer.