[Midnightbsd-cvs] mports: www/p5-HTML-Mason: Add HTML::Mason, a very useful web framework.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Tue Sep 11 22:54:37 EDT 2007
Log Message:
-----------
Add HTML::Mason, a very useful web framework.
Added Files:
-----------
mports/www/p5-HTML-Mason:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
-------------- next part --------------
--- /dev/null
+++ www/p5-HTML-Mason/pkg-descr
@@ -0,0 +1,23 @@
+Mason is a tool for building, serving and managing large web
+sites. Its features make it an ideal backend for high load sites
+serving dynamic content, such as online newspapers or database driven
+e-commerce sites.
+
+Mason's various pieces revolve around the notion of "components''. A
+component is a mix of HTML, Perl, and special Mason commands, one
+component per file. So-called "top-level" components represent entire
+web-pages, while smaller components typically return HTML snippets for
+embedding in top-level components. This object-like architecture
+greatly simplifies site maintenance: change a shared component, and
+you instantly changed all dependant pages that refer to it across a
+site (or across many virtual sites).
+
+Mason's component syntax lets designers separate a web page into
+programmatic and design elements. This means the esoteric Perl bits
+can be hidden near the bottom of a component, preloading simple
+variables for use above in the HTML. In our own experience, this frees
+content managers (i.e., non-programmers) to work on the layout without
+getting mired in programming details. Techies, however, still enjoy
+the full power of Perl.
+
+WWW: http://www.masonhq.com/
--- /dev/null
+++ www/p5-HTML-Mason/pkg-plist
@@ -0,0 +1,45 @@
+bin/mason.pl
+%%SITE_PERL%%/Apache/Mason.pm
+%%SITE_PERL%%/Bundle/HTML/Mason.pm
+%%SITE_PERL%%/HTML/Mason.pm
+%%SITE_PERL%%/HTML/Mason/Admin.pod
+%%SITE_PERL%%/HTML/Mason/ApacheHandler.pm
+%%SITE_PERL%%/HTML/Mason/CGIHandler.pm
+%%SITE_PERL%%/HTML/Mason/Cache/BaseCache.pm
+%%SITE_PERL%%/HTML/Mason/Compiler.pm
+%%SITE_PERL%%/HTML/Mason/Compiler/ToObject.pm
+%%SITE_PERL%%/HTML/Mason/Component.pm
+%%SITE_PERL%%/HTML/Mason/Component/FileBased.pm
+%%SITE_PERL%%/HTML/Mason/Component/Subcomponent.pm
+%%SITE_PERL%%/HTML/Mason/ComponentSource.pm
+%%SITE_PERL%%/HTML/Mason/Devel.pod
+%%SITE_PERL%%/HTML/Mason/Escapes.pm
+%%SITE_PERL%%/HTML/Mason/Exceptions.pm
+%%SITE_PERL%%/HTML/Mason/FakeApache.pm
+%%SITE_PERL%%/HTML/Mason/Handler.pm
+%%SITE_PERL%%/HTML/Mason/Interp.pm
+%%SITE_PERL%%/HTML/Mason/Lexer.pm
+%%SITE_PERL%%/HTML/Mason/MethodMaker.pm
+%%SITE_PERL%%/HTML/Mason/Params.pod
+%%SITE_PERL%%/HTML/Mason/Parser.pm
+%%SITE_PERL%%/HTML/Mason/Plugin.pm
+%%SITE_PERL%%/HTML/Mason/Plugin/Context.pm
+%%SITE_PERL%%/HTML/Mason/Request.pm
+%%SITE_PERL%%/HTML/Mason/Resolver.pm
+%%SITE_PERL%%/HTML/Mason/Resolver/File.pm
+%%SITE_PERL%%/HTML/Mason/Resolver/Null.pm
+%%SITE_PERL%%/HTML/Mason/Subclassing.pod
+%%SITE_PERL%%/HTML/Mason/Tests.pm
+%%SITE_PERL%%/HTML/Mason/Tools.pm
+%%SITE_PERL%%/HTML/Mason/Utils.pm
+ at dirrm %%SITE_PERL%%/HTML/Mason/Cache
+ at dirrm %%SITE_PERL%%/HTML/Mason/Compiler
+ at dirrm %%SITE_PERL%%/HTML/Mason/Component
+ at dirrm %%SITE_PERL%%/HTML/Mason/Plugin
+ at dirrm %%SITE_PERL%%/HTML/Mason/Resolver
+ at dirrm %%SITE_PERL%%/HTML/Mason
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML
+ at dirrmtry %%SITE_PERL%%/Bundle/HTML
+ at dirrmtry %%SITE_PERL%%/Bundle
+ at dirrmtry %%SITE_PERL%%/HTML
+ at dirrmtry %%SITE_PERL%%/Apache
--- /dev/null
+++ www/p5-HTML-Mason/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for: HTML-Mason
+# Date created: 31 May 2000
+# Whom: Denis Shaposhnikov <dsh at vlink.ru>
+#
+# $FreeBSD: ports/www/p5-HTML-Mason/Makefile,v 1.58 2007/09/08 01:11:28 linimon Exp $
+# $MidnightBSD: mports/www/p5-HTML-Mason/Makefile,v 1.1 2007/09/12 02:54:37 ctriv Exp $
+#
+
+PORTNAME= HTML-Mason
+PORTVERSION= 1.35
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= HTML
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ctriv at MidnightBSD.org
+COMMENT= High-performance, dynamic web site authoring system
+LICENSE= perl
+
+BUILD_DEPENDS= p5-Module-Build>=0.28:${PORTSDIR}/devel/p5-Module-Build
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
+ ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \
+ ${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
+ ${SITE_PERL}/Class/Container.pm:${PORTSDIR}/devel/p5-Class-Container \
+ ${SITE_PERL}/Cache/Cache.pm:${PORTSDIR}/devel/p5-Cache-Cache \
+ ${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser
+
+PERL_MODBUILD= yes
+CONFIGURE_ARGS+= --noprompts
+
+MAN3= Bundle::HTML::Mason.3 \
+ HTML::Mason.3 \
+ HTML::Mason::Admin.3 \
+ HTML::Mason::ApacheHandler.3 \
+ HTML::Mason::CGIHandler.3 \
+ HTML::Mason::Cache::BaseCache.3 \
+ HTML::Mason::Compiler.3 \
+ HTML::Mason::Compiler::ToObject.3 \
+ HTML::Mason::Component.3 \
+ HTML::Mason::Component::FileBased.3 \
+ HTML::Mason::Component::Subcomponent.3 \
+ HTML::Mason::ComponentSource.3 \
+ HTML::Mason::Devel.3 \
+ HTML::Mason::Escapes.3 \
+ HTML::Mason::Exceptions.3 \
+ HTML::Mason::FakeApache.3 \
+ HTML::Mason::Interp.3 \
+ HTML::Mason::Lexer.3 \
+ HTML::Mason::MethodMaker.3 \
+ HTML::Mason::Params.3 \
+ HTML::Mason::Parser.3 \
+ HTML::Mason::Plugin.3 \
+ HTML::Mason::Plugin::Context.3 \
+ HTML::Mason::Request.3 \
+ HTML::Mason::Resolver.3 \
+ HTML::Mason::Resolver::File.3 \
+ HTML::Mason::Resolver::Null.3 \
+ HTML::Mason::Subclassing.3 \
+ HTML::Mason::Tests.3 \
+ HTML::Mason::Tools.3 \
+ HTML::Mason::Utils.3
+
+OPTIONS= MOD_PERL "with mod_perl dependency" off
+
+post-build:
+ ${MV} -f ${WRKSRC}/bin ${WRKSRC}/bin.orig
+ ${MV} -f ${WRKSRC}/blib/script ${WRKSRC}/blib/script.orig
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/blib/script.orig/mason.pl ${PREFIX}/bin
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MOD_PERL)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Apache2/Request.pm:${PORTSDIR}/www/p5-libapreq2
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ www/p5-HTML-Mason/distinfo
@@ -0,0 +1,3 @@
+MD5 (HTML-Mason-1.35.tar.gz) = c09f77e2af500b51d22e0238c0534994
+SHA256 (HTML-Mason-1.35.tar.gz) = 01c75ebc523b77b88d5754fa93a283eeff77bcf799536db8697b61daf42f36bd
+SIZE (HTML-Mason-1.35.tar.gz) = 386408
More information about the Midnightbsd-cvs
mailing list