summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorheinz <heinz>2007-04-30 21:36:24 +0000
committerheinz <heinz>2007-04-30 21:36:24 +0000
commit7f56ba53e177b38b42cbc35a1ddfe49bc332de26 (patch)
tree6b70b3d7b0de0ec4b016e330dc1f03fb3cfb497d /www
parentb5870f2ac6242f5bb935b3908421590bc662583d (diff)
downloadpkgsrc-7f56ba53e177b38b42cbc35a1ddfe49bc332de26.tar.gz
Updated to version 3.0501.
Pkgsrc changes: - Suffix changed from the default (.tar.gz) to .tgz. - Marked the package as supporting installation to DESTDIR. Changes since version 3.0302: ============================= VERSION 3.0501 Bugfix release to repair a memory leak and a few "other" field edge cases. VERSION 3.05 Just a short time after 3.04, several new features evolved very quickly: Fieldset support A new "fieldsets" option to "new()" and a "fieldset" option to the "field()" method can be used to organize your form into sections. Currently works with the built-in "<table>" and new "<div>" renderer only, but template support is in the works. Div rendering In addition to the builtin "<table>" rendering module, a new "Div" rendering template has been included as well. If you select this, you get a table-free form which you can manipulate using stylesheets: $form->new(template => {type => 'div'}); This provides a couple additional benefits, like separate divs for every submit button. Additional classes A couple additional CSS classes were added, wrapping around the fields as a unit for better styling. The "<form>" tag now gets a ".fb_form" style as well. Fixed HTML::Template support A couple bugs were introduced in 3.04 that have been fixed, and more tests added. VERSION 3.04 In addition to the below features, a new Catalyst FormBuilder plugin is available on CPAN, "Catalyst::Plugin::FormBuilder". New $form->prepare() method You can now use "$form->prepare()" to get back an expanded hashref just before "$form->render()" is called. This allows you to use FormBuilder with Catalyst or other frameworks more easily, where the rendering is done elsewhere: my %expansion = $form->prepare; This could be passed directly to, say, Template Toolkit without having to use FormBuilder's Template Toolkit support. New "inflate" option to field() This is used the convert fields on the fly into objects or other values. For example, you could convert a "date" field into a DateTime object. Nice patch from Mark Hedges, check it out. Turkish messages Thanks to Recai Oktas. Added "missing" property for fields This can be queried in templates. To see if a field is missing altogether, you can check "field.missing" or "missing-field" depending on your template engine of choice. Removal of custom "puke" and "belch" FormBuilder now uses "Carp" and @CARP_NOT to handle its errors. As such, you will probably notice some differences in error output. The benefit is that setting "debug" will give you a stack trace on fatal errors. CGI::FormBuilder::Template::Builtin Moved the "render_builtin()" method to the above module, to unify the rendering schemes. New FORMBUILDER_DEBUG environment variable Setting this has the same effect as using the "debug" option. Removal of excess documentation Removed all the stub docs from "Field::*" and "Messages::*" to make CPAN happy.
Diffstat (limited to 'www')
-rw-r--r--www/p5-CGI-FormBuilder/Makefile7
-rw-r--r--www/p5-CGI-FormBuilder/distinfo8
2 files changed, 9 insertions, 6 deletions
diff --git a/www/p5-CGI-FormBuilder/Makefile b/www/p5-CGI-FormBuilder/Makefile
index 4ce3afe36d1..debccd17e28 100644
--- a/www/p5-CGI-FormBuilder/Makefile
+++ b/www/p5-CGI-FormBuilder/Makefile
@@ -1,14 +1,17 @@
-# $NetBSD: Makefile,v 1.11 2007/03/16 20:35:21 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2007/04/30 21:36:24 heinz Exp $
-DISTNAME= CGI-FormBuilder-3.0302
+DISTNAME= CGI-FormBuilder-3.0501
PKGNAME= p5-${DISTNAME}
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=CGI/}
+EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Perl5 module for building HTML forms
HOMEPAGE= http://www.formbuilder.org/
+PKG_DESTDIR_SUPPORT= user-destdir
+
PERL5_PACKLIST= auto/CGI/FormBuilder/.packlist
DEPENDS+= p5-HTML-Template>=2.6:../../www/p5-HTML-Template
diff --git a/www/p5-CGI-FormBuilder/distinfo b/www/p5-CGI-FormBuilder/distinfo
index 4ae7b2be013..646cbf559e9 100644
--- a/www/p5-CGI-FormBuilder/distinfo
+++ b/www/p5-CGI-FormBuilder/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2007/03/16 20:35:21 wiz Exp $
+$NetBSD: distinfo,v 1.6 2007/04/30 21:36:24 heinz Exp $
-SHA1 (CGI-FormBuilder-3.0302.tar.gz) = 90fd850cfdc96fe3f4d271bd55c74dd0466fa791
-RMD160 (CGI-FormBuilder-3.0302.tar.gz) = 995efe463de9c9d789e3a9bf0c409adfe2d09e60
-Size (CGI-FormBuilder-3.0302.tar.gz) = 139828 bytes
+SHA1 (CGI-FormBuilder-3.0501.tgz) = f682cad5f66c7b545c31605d521340e3f0c15ac5
+RMD160 (CGI-FormBuilder-3.0501.tgz) = 94e2dd395b87071c8dc72276026770e565016463
+Size (CGI-FormBuilder-3.0501.tgz) = 167585 bytes