diff options
Diffstat (limited to 'www/p5-Gantry/files')
-rw-r--r-- | www/p5-Gantry/files/patch-Build.PL | 71 | ||||
-rw-r--r-- | www/p5-Gantry/files/patch-lib__Gantry__Build.pm | 22 |
2 files changed, 69 insertions, 24 deletions
diff --git a/www/p5-Gantry/files/patch-Build.PL b/www/p5-Gantry/files/patch-Build.PL index 3eee7159a90b..f247d54b9424 100644 --- a/www/p5-Gantry/files/patch-Build.PL +++ b/www/p5-Gantry/files/patch-Build.PL @@ -1,26 +1,49 @@ ---- Build.PL.orig 2007-06-20 03:11:06.000000000 +0800 -+++ Build.PL 2007-09-12 09:34:41.000000000 +0800 -@@ -36,10 +36,10 @@ - web_files => \@web_dirs, - build_web_directory => 'root', - install_web_directories => { -- 'default' => '/home/httpd/html/gantry', -- 'prod' => '/home/httpd/html/gantry', -- 'dev' => '/home/httpd/html/gantry', -- 'tim' => '/home/tkeefer/httpd/html/gantry' -+ 'default' => '/usr/local/www/gantry', -+ 'prod' => '/usr/local/www/gantry', -+ 'dev' => '/usr/local/www/gantry', -+ 'tim' => '/usr/local/www/gantry' - }, - create_makefile_pl => 'passthrough', - license => 'perl', -@@ -105,7 +105,7 @@ - if ( not -d $template_path ) { - my $make_path = $build->y_n( - "$template_path does not exist, should I make it?", +--- ./Build.PL.orig 2009-07-14 17:08:45.608765850 -0400 ++++ ./Build.PL 2009-07-14 17:40:19.239457739 -0400 +@@ -106,27 +106,6 @@ + + $build->notes( install_web_directory => $template_path ); + +-if ( not -d $template_path ) { +- my $make_path = $ENV{'GANTRY_TEMPLATE_PATH'} || $build->y_n( +- "$template_path does not exist, should I make it?", - 'y' -+ 'n' - ); +- ); +- +- if ( $make_path ) { +- eval { +- File::Path::mkpath( $template_path ); +- }; +- if ( $@ ) { +- $@ =~ s/ at .+?$//; +- print "Error: unable to create directory $template_path @_\n"; +- $build->notes( install_web_directory => '__skip__' ); +- } +- } +- else { +- $build->notes( install_web_directory => '__skip__' ); +- } +-} +- + $build->create_build_script; + + sub _custom_code { +@@ -157,7 +136,6 @@ + + my $tmpl_dir = $self->notes( 'install_web_directory' ); + +- if( $tmpl_dir && $tmpl_dir ne '__skip__' ) { + + # write Init.pm file with install options + +@@ -235,10 +213,6 @@ + else { + print "\n$num Gantry templates copied to $tmpl_dir\n"; + } +- } +- else { +- print "SKIPPING WEB CONTENT INSTALL\n"; +- } + + print "\n"; - if ( $make_path ) { diff --git a/www/p5-Gantry/files/patch-lib__Gantry__Build.pm b/www/p5-Gantry/files/patch-lib__Gantry__Build.pm new file mode 100644 index 000000000000..cc0261f1c67d --- /dev/null +++ b/www/p5-Gantry/files/patch-lib__Gantry__Build.pm @@ -0,0 +1,22 @@ +--- ./lib/Gantry/Build.pm.orig 2009-07-14 17:44:09.567989717 -0400 ++++ ./lib/Gantry/Build.pm 2009-07-14 17:44:24.917686676 -0400 +@@ -115,8 +115,6 @@ + + my $tmpl_dir = $p->{web_dir}; + +- if( $tmpl_dir && $tmpl_dir ne '__skip__' ) { +- + if ( not -d $tmpl_dir and $p->{ create_web_dir } =~ /^n/i ) { + exit; + } +@@ -145,10 +143,6 @@ + else { + print "Web content copied: $num\n"; + } +- } +- else { +- print "SKIPPING WEB CONTENT INSTALL\n"; +- } + print "-" x 80; + print "\n"; + |