aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-Gantry/files/patch-Build.PL
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-Gantry/files/patch-Build.PL')
-rw-r--r--www/p5-Gantry/files/patch-Build.PL71
1 files changed, 47 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 ) {