aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-Gantry
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-09-12 13:53:46 +0800
committerclsung <clsung@FreeBSD.org>2007-09-12 13:53:46 +0800
commitd2aa94b3331e7cfa469c0dae85989fd9691bddce (patch)
tree47fcc53e3a4d81504efdd0e12cb00bafcc534792 /www/p5-Gantry
parent780d641dc72300a4e03e8d0bd7af009fe3a9ed38 (diff)
downloadfreebsd-ports-gnome-d2aa94b3331e7cfa469c0dae85989fd9691bddce.tar.gz
freebsd-ports-gnome-d2aa94b3331e7cfa469c0dae85989fd9691bddce.tar.zst
freebsd-ports-gnome-d2aa94b3331e7cfa469c0dae85989fd9691bddce.zip
- files/patch-Build.PL erroneously omits much of the original Build.PL.
In particular, the part that copies template files to /usr/local/www/gantry and allow Gantry to work. - bump PORTREVISION PR: ports/115772 Submitted by: Warren Block <wblock_AT_wonkity dot com> Reviewed by: clsung
Diffstat (limited to 'www/p5-Gantry')
-rw-r--r--www/p5-Gantry/Makefile12
-rw-r--r--www/p5-Gantry/files/patch-Build.PL116
-rw-r--r--www/p5-Gantry/pkg-plist69
3 files changed, 87 insertions, 110 deletions
diff --git a/www/p5-Gantry/Makefile b/www/p5-Gantry/Makefile
index 6fbdb82577b1..4e85e4af06ff 100644
--- a/www/p5-Gantry/Makefile
+++ b/www/p5-Gantry/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Gantry
PORTVERSION= 3.50
+PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= Gantry
@@ -31,6 +32,8 @@ BUILD_DEPENDS+= ${SITE_PERL}/Test/Exception.pm:${PORTSDIR}/devel/p5-Test-Excepti
PERL_MODBUILD= 5.8.0+
+WWWDIR= ${PREFIX}/www/${PORTNAME:L}
+
MAN3= Gantry.3 \
Gantry::Build.3 \
Gantry::Conf.3 \
@@ -110,4 +113,13 @@ MAN3= Gantry.3 \
Gantry::Utils::Threeway.3 \
Template::Plugin::GantryAuthCookie.3
+pre-configure:
+ @${MKDIR} ${WWWDIR}
+
+post-build:
+ @${RMDIR} ${WWWDIR}
+
+pre-install:
+ @${MKDIR} ${WWWDIR}
+
.include <bsd.port.mk>
diff --git a/www/p5-Gantry/files/patch-Build.PL b/www/p5-Gantry/files/patch-Build.PL
index 1997163baae7..3eee7159a90b 100644
--- a/www/p5-Gantry/files/patch-Build.PL
+++ b/www/p5-Gantry/files/patch-Build.PL
@@ -1,5 +1,5 @@
---- Build.PL.orig Tue May 1 05:49:23 2007
-+++ Build.PL Wed May 2 09:23:17 2007
+--- 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',
@@ -8,10 +8,10 @@
- 'prod' => '/home/httpd/html/gantry',
- 'dev' => '/home/httpd/html/gantry',
- 'tim' => '/home/tkeefer/httpd/html/gantry'
-+ 'default' => '/usr/local/www/data/gantry',
-+ 'prod' => '/usr/local/www/data/gantry',
-+ 'dev' => '/usr/local/www/data/gantry',
-+ 'tim' => '/usr/local/www/data/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',
@@ -24,107 +24,3 @@
);
if ( $make_path ) {
-@@ -139,103 +139,6 @@
-
- }
-
-- sub ACTION_install {
-- my $self = shift;
--
-- my $p = $self->{properties};
--
-- my $initf = "$p->{install_sets}{site}{lib}/$p->{dist_name}/Init.pm";
--
-- $self->SUPER::ACTION_install();
--
-- my $tmpl_dir = $self->notes( 'install_web_directory' );
--
-- if( $tmpl_dir && $tmpl_dir ne '__skip__' ) {
--
-- # write Init.pm file with install options
--
-- my $init_pkg = << "EO_INIT";
--package Gantry::Init;
--use strict;
--
--sub base_root {
-- return "$tmpl_dir";
--}
--1;
--
--=head1 NAME
--
--Gantry::Init - stores things the user provided to Build.PL during install
--
--=head1 SYNOPSIS
--
-- use Gantry::Init;
-- my \$base_root = Gantry::Init->base_root();
--
--=head1 Methods
--
--=head2 base_root
--
--Returns the local system path to Gantry's default templates. This usually
--becomes the last item in the Template Toolkit template path.
--
--=head1 AUTHOR
--
--Auto-generated by Build.PL
--
--=cut
--
--EO_INIT
--
-- for my $dst ("blib/lib/Gantry/Init.pm", $initf) {
-- my $orig_mode = (stat $dst)[2];
-- my $rw_mode = 0666;
-- chmod $rw_mode, $dst or die "Can't chmod $rw_mode $dst: $!";
-- open( INIT_FILE, "> $dst" ) or die "$!";
-- print INIT_FILE $init_pkg;
-- close INIT_FILE;
--
-- # restore the perms
-- chmod $orig_mode, $dst or die "Can't chmod $orig_mode $dst: $!";
-- }
--
-- eval {
-- # this should have been done during perl Build.PL
-- if ( not -d $tmpl_dir ) {
-- File::Path::mkpath( $tmpl_dir );
-- }
-- };
-- if ( $@ ) {
-- print "Error: unable to create directory $tmpl_dir\n";
-- $@ =~ s/ at .+?$//;
-- die( "$@\n" );
-- }
--
-- my $blib_tmpl_dir = File::Spec->catdir(
-- $self->blib, 'web', $p->{build_web_directory}
-- );
--
-- eval {
-- require File::Copy::Recursive;
-- import File::Copy::Recursive 'dircopy';
--
-- $num = dircopy($blib_tmpl_dir, $tmpl_dir) || 0;
-- };
-- if ( $@ ) {
-- print "\nError coping templates:\n";
-- print $@ . "\n";
-- }
-- else {
-- print "\n$num Gantry templates copied to $tmpl_dir\n";
-- }
-- }
-- else {
-- print "SKIPPING WEB CONTENT INSTALL\n";
-- }
--
-- print "\n";
--
-- } # end ACTION_install
-
- sub process_web_files {
- my $self = shift;
diff --git a/www/p5-Gantry/pkg-plist b/www/p5-Gantry/pkg-plist
index 23cf64503f7c..5e0f6cb3a3df 100644
--- a/www/p5-Gantry/pkg-plist
+++ b/www/p5-Gantry/pkg-plist
@@ -1,4 +1,67 @@
@comment $FreeBSD$
+%%WWWDIR%%/control_wrapper.tt
+%%WWWDIR%%/data.tt
+%%WWWDIR%%/default.tt
+%%WWWDIR%%/delete.tt
+%%WWWDIR%%/editor_init.ttc
+%%WWWDIR%%/form.tt
+%%WWWDIR%%/form_ajax.tt
+%%WWWDIR%%/gantry_site.html
+%%WWWDIR%%/gantrybookcode.tar.gz
+%%WWWDIR%%/login.tt
+%%WWWDIR%%/main.tt
+%%WWWDIR%%/paging.ttc
+%%WWWDIR%%/pod.tt
+%%WWWDIR%%/pod_wrapper.tt
+%%WWWDIR%%/results.tt
+%%WWWDIR%%/sample_wrapper.tt
+%%WWWDIR%%/search.tt
+%%WWWDIR%%/session.tt
+%%WWWDIR%%/threeway.tt
+%%WWWDIR%%/wrapper.tt
+%%WWWDIR%%/wsdl.tt
+%%WWWDIR%%/css/default.css
+%%WWWDIR%%/css/gantry_datepicker.css
+%%WWWDIR%%/css/gantry_forms.css
+%%WWWDIR%%/css/gantry_layout.css
+%%WWWDIR%%/css/gantry_site.css
+%%WWWDIR%%/css/pod_style.css
+%%WWWDIR%%/images/blc-gray-block.gif
+%%WWWDIR%%/images/bookcover.gif
+%%WWWDIR%%/images/brc-gray-block.gif
+%%WWWDIR%%/images/form.png
+%%WWWDIR%%/images/gantry_gears.jpg
+%%WWWDIR%%/images/gantry_logo.png
+%%WWWDIR%%/images/mainlist.png
+%%WWWDIR%%/images/pdf.gif
+%%WWWDIR%%/images/tlc-gray-block.gif
+%%WWWDIR%%/images/trc-gray-block.gif
+%%WWWDIR%%/images/tenttut/appbody.png
+%%WWWDIR%%/images/tenttut/appconfig.png
+%%WWWDIR%%/images/tenttut/appstat.png
+%%WWWDIR%%/images/tenttut/backends.png
+%%WWWDIR%%/images/tenttut/controledit.png
+%%WWWDIR%%/images/tenttut/dataedit.png
+%%WWWDIR%%/images/tenttut/fieldedit.png
+%%WWWDIR%%/images/tenttut/fieldedit2.png
+%%WWWDIR%%/images/tenttut/formedit.png
+%%WWWDIR%%/images/tenttut/joiner.png
+%%WWWDIR%%/images/tenttut/main_listingout.png
+%%WWWDIR%%/images/tenttut/mainlistedit.png
+%%WWWDIR%%/images/tenttut/optionsedit.png
+%%WWWDIR%%/images/tenttut/quickedit.png
+%%WWWDIR%%/images/tenttut/stubmethedit.png
+%%WWWDIR%%/images/tenttut/tableedit.png
+%%WWWDIR%%/images/tenttut/tentopening.png
+%%WWWDIR%%/js/datePicker.js
+%%WWWDIR%%/js/gantry-yui-calendar.js
+%%WWWDIR%%/js/gantry.js
+%%WWWDIR%%/js/jquery.js
+%%WWWDIR%%/moxie/delete.tt
+%%WWWDIR%%/moxie/form.tt
+%%WWWDIR%%/moxie/gantry_wrapper.tt
+%%WWWDIR%%/moxie/results.tt
+%%WWWDIR%%/moxie/threeway.tt
%%SITE_PERL%%/Gantry.pm
%%SITE_PERL%%/Gantry/Build.pm
%%SITE_PERL%%/Gantry/Conf.pm
@@ -100,6 +163,12 @@
%%SITE_PERL%%/Gantry/Utils/Threeway.pm
%%SITE_PERL%%/Gantry/Utils/Validate.pm
%%SITE_PERL%%/Template/Plugin/GantryAuthCookie.pm
+@dirrmtry %%WWWDIR%%/moxie
+@dirrmtry %%WWWDIR%%/js
+@dirrmtry %%WWWDIR%%/images/tenttut
+@dirrmtry %%WWWDIR%%/images
+@dirrmtry %%WWWDIR%%/css
+@dirrmtry %%WWWDIR%%
@dirrmtry %%SITE_PERL%%/Template/Plugin
@dirrmtry %%SITE_PERL%%/Template
@dirrmtry %%SITE_PERL%%/Gantry/Utils/Model