Changeset 615


Ignore:
Timestamp:
Jan 7, 2005, 1:27:56 PM (17 years ago)
Author:
kake
Message:

Add Plucene as a pre-req is they're using it, Search::InvertedIndex? only if they're not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r614 r615  
    7070
    7171my $install_directory; # used to suggest template paths
     72my $use_plucene; # keep track of this so we know what to put in prereqs
    7273foreach my $var ( qw(
    7374   dbname dbuser dbpass dbhost script_name
     
    128129    $install_directory = $val if $var eq "install_directory";
    129130
     131    # Keep track of chosen search method so we know what to put in prereqs.
     132    # From Module::Build docs: ->y_n returns a Perl boolean true or false.
     133    $use_plucene = 1 if $var eq "use_plucene" and $val;
     134
    130135    # Make sure that script_url ends in a /
    131136    if ( $var eq "script_url" and $val !~ /\/$/ ) {
     
    199204##### When updating the prereqs PLEASE REMEMBER to update PREREQUISITES.
    200205#####
     206
     207my $search_module = $use_plucene ? "Plucene" : "Search::InvertedIndex";
    201208
    202209# Create the build object.
     
    226233        'LWP::Simple'                     => 0,
    227234        'Parse::RecDescent'               => 0,
    228         'Search::InvertedIndex'           => 0,
     235        $search_module                    => 0,
    229236        'Template'                        => 0,
    230237        'Test::MockObject'                => '0.07', # earlier doesn't use 'mock'
Note: See TracChangeset for help on using the changeset viewer.