You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/04/09 15:39:58 UTC
[lucy-commits] svn commit: r1311226 - /lucy/trunk/perl/buildlib/Lucy/Build.pm
Author: nwellnhof
Date: Mon Apr 9 13:39:58 2012
New Revision: 1311226
URL: http://svn.apache.org/viewvc?rev=1311226&view=rev
Log:
LUCY-215 Custom Module::Build property for extra build params
Untested with Module::Build 0.30 and below. Should be tested with a stock
Perl 5.10.0 installation.
Modified:
lucy/trunk/perl/buildlib/Lucy/Build.pm
Modified: lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/lucy/trunk/perl/buildlib/Lucy/Build.pm?rev=1311226&r1=1311225&r2=1311226&view=diff
==============================================================================
--- lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ lucy/trunk/perl/buildlib/Lucy/Build.pm Mon Apr 9 13:39:58 2012
@@ -37,6 +37,19 @@ use Fcntl;
use Carp;
use Cwd qw( getcwd );
+# Add a custom Module::Build hashref property to pass additional build
+# parameters
+if ( $Module::Build::VERSION <= 0.30 ) {
+ __PACKAGE__->add_property( clownfish_params => {} );
+}
+else {
+ # TODO: add sub for property check
+ __PACKAGE__->add_property(
+ 'clownfish_params',
+ default => {},
+ );
+}
+
BEGIN { unshift @PATH, rel2abs( getcwd() ) }
=for Rationale