From 0ea1b848c57790e7f6de9b09b62714222ed4c264 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Thu, 8 Apr 2004 18:27:19 +0000 Subject: Add p5-Maypole 1.3, mVC web application framework. Maypole is an MVC-based web application framework, built around Class::DBI and Template Toolkit. WWW: http://search.cpan.org/~simon/Maypole/ PR: ports/65328 Submitted by: Lars Thegler --- www/Makefile | 1 + www/p5-Maypole/Makefile | 44 ++++++++++++++++++++++++++++++++++ www/p5-Maypole/distinfo | 2 ++ www/p5-Maypole/files/patch-Makefile.PL | 22 +++++++++++++++++ www/p5-Maypole/pkg-descr | 4 ++++ www/p5-Maypole/pkg-plist | 11 +++++++++ 6 files changed, 84 insertions(+) create mode 100644 www/p5-Maypole/Makefile create mode 100644 www/p5-Maypole/distinfo create mode 100644 www/p5-Maypole/files/patch-Makefile.PL create mode 100644 www/p5-Maypole/pkg-descr create mode 100644 www/p5-Maypole/pkg-plist diff --git a/www/Makefile b/www/Makefile index 8f0ffb0686f4..b9899d3d5afa 100644 --- a/www/Makefile +++ b/www/Makefile @@ -434,6 +434,7 @@ SUBDIR += p5-HTTPD-Tools SUBDIR += p5-IMDB-Movie SUBDIR += p5-MasonX-Request-WithApacheSession + SUBDIR += p5-Maypole SUBDIR += p5-PHP-Session SUBDIR += p5-ParallelUA SUBDIR += p5-PodToHTML diff --git a/www/p5-Maypole/Makefile b/www/p5-Maypole/Makefile new file mode 100644 index 000000000000..c9dfa039be82 --- /dev/null +++ b/www/p5-Maypole/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: p5-Maypole +# Date created: Apr 2 2004 +# Whom: Lars Thegler +# +# $FreeBSD$ + +PORTNAME= Maypole +PORTVERSION= 1.3 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../by-authors/id/S/SI/SIMON/ +PKGNAMEPREFIX= p5- + +MAINTAINER= lars@thegler.dk +COMMENT= MVC web application framework + +BUILD_DEPENDS= ${SITE_PERL}/Class/DBI/Loader.pm:${PORTSDIR}/databases/p5-Class-DBI-Loader \ + ${SITE_PERL}/Class/DBI/AbstractSearch.pm:${PORTSDIR}/databases/p5-Class-DBI-AbstractSearch \ + ${SITE_PERL}/Class/DBI/Pager.pm:${PORTSDIR}/databases/p5-Class-DBI-Pager \ + ${SITE_PERL}/Class/DBI/Plugin/RetrieveAll.pm:${PORTSDIR}/databases/p5-Class-DBI-Plugin-RetrieveAll \ + ${SITE_PERL}/Class/DBI/AsForm.pm:${PORTSDIR}/databases/p5-Class-DBI-AsForm \ + ${SITE_PERL}/Class/DBI/FromCGI.pm:${PORTSDIR}/databases/p5-Class-DBI-FromCGI \ + ${SITE_PERL}/Class/DBI/Loader/Relationship.pm:${PORTSDIR}/databases/p5-Class-DBI-Loader-Relationship \ + ${SITE_PERL}/CGI/Untaint.pm:${PORTSDIR}/www/p5-CGI-Untaint \ + ${SITE_PERL}/UNIVERSAL/moniker.pm:${PORTSDIR}/devel/p5-UNIVERSAL-moniker \ + ${SITE_PERL}/UNIVERSAL/require.pm:${PORTSDIR}/devel/p5-UNIVERSAL-exports \ + ${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \ + ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit + +PERL_CONFIGURE= yes + +MAN3= Apache::MVC.3 \ + Maypole.3 \ + Maypole::Model::Base.3 \ + Maypole::Model::CDBI.3 \ + Maypole::Workflow.3 + +.include + +.if ${PERL_LEVEL} < 500600 +IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again." +.endif + +.include diff --git a/www/p5-Maypole/distinfo b/www/p5-Maypole/distinfo new file mode 100644 index 000000000000..4866681d14b8 --- /dev/null +++ b/www/p5-Maypole/distinfo @@ -0,0 +1,2 @@ +MD5 (Maypole-1.3.tar.gz) = 541fb9dd1718c8e92c6edec9b1d9bf64 +SIZE (Maypole-1.3.tar.gz) = 22504 diff --git a/www/p5-Maypole/files/patch-Makefile.PL b/www/p5-Maypole/files/patch-Makefile.PL new file mode 100644 index 000000000000..4bdad7ea3015 --- /dev/null +++ b/www/p5-Maypole/files/patch-Makefile.PL @@ -0,0 +1,22 @@ +--- Makefile.PL.orig Thu Mar 25 13:33:42 2004 ++++ Makefile.PL Thu Apr 8 18:13:57 2004 +@@ -20,14 +20,17 @@ + Template => 0, + }, # e.g., Module::Name => 1.1 + ($] >= 5.005 ? ## Add these new keywords supported since 5.005 +- (ABSTRACT_FROM => 'lib/Apache/MVC.pm', # retrieve abstract from module ++ (ABSTRACT_FROM => 'lib/Maypole.pm', # retrieve abstract from module + AUTHOR => 'Simon Cozens ') : ()), + ); + + if (!-e "t/beerdb.db") { + print "Making SQLite DB\n"; + eval { require DBD::SQLite }; +- die "No, wait, we don't have SQLite installed. Never mind\n" if $@; ++ if ($@) { ++ warn "No, wait, we don't have SQLite installed. Never mind\n"; ++ exit; ++ } + require DBI; + my $dbh = DBI->connect("dbi:SQLite:dbname=t/beerdb.db"); + diff --git a/www/p5-Maypole/pkg-descr b/www/p5-Maypole/pkg-descr new file mode 100644 index 000000000000..c319da03a1e5 --- /dev/null +++ b/www/p5-Maypole/pkg-descr @@ -0,0 +1,4 @@ +Maypole is an MVC-based web application framework, built around +Class::DBI and Template Toolkit. + +WWW: http://search.cpan.org/~simon/Maypole/ diff --git a/www/p5-Maypole/pkg-plist b/www/p5-Maypole/pkg-plist new file mode 100644 index 000000000000..90af9b0f2093 --- /dev/null +++ b/www/p5-Maypole/pkg-plist @@ -0,0 +1,11 @@ +%%SITE_PERL%%/Apache/MVC.pm +%%SITE_PERL%%/Maypole.pm +%%SITE_PERL%%/Maypole/Workflow.pod +%%SITE_PERL%%/Maypole/Model/CDBI.pm +%%SITE_PERL%%/Maypole/Model/Base.pm +%%SITE_PERL%%/Maypole/View/TT.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Maypole/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Maypole +@unexec rmdir %D/%%SITE_PERL%%/Maypole/Model 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Maypole/View 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Maypole 2>/dev/null || true -- cgit v1.2.3