pkgsrc-wip/p5-HTML-Widget/Makefile

29 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.7 2008/07/20 23:34:45 absd Exp $
Update p5-HTML-Widget to 1.11, and remove PLIST. Changes from previous: 1.11 2007-03-01 - New Bool constraint. - New SingleValue constraint. - New $w->filter_all() and $w->constraint_all() methods add the named filters/constraints to all current form elements. - $w->find_elements() now supports the same arguments as $w->get_elements(). - New render_errors() method on constraints, accepts a list of element names for which errors should be displayed by $r->as_xml. - Elements are allowed to have no name. No id or name will be displayed in the xml output . - When an Equal constraint fails, the first named element's value is no longer considered valid. - All elements associated with a failing Equal constraint receive an error. Use render_errors() to override this behaviour. - New HTML::Widget::Error method no_render(), used internally by $constraint->render_errors(). - New F.A.Q. documentation section. - $result->param() carps if called with more than 1 argument (it's documented readonly). - element() called on a block element now accepts the same \%attributes argument as $widget->element(). - Submit and Reset elements now inherit from Button element, so they share the same methods (value, content, src, type). - Fixed Range constraint bug when min/max is 0 (zero). - Fixed $widget->get_elements() bug, now both 'name' and 'type' arguments can be used together to limit the elements returned. - In constraint fixed so empty/missing values pass. - HTML::Element now escapes unicode properly - require v3.22 and stop skipping test - HTMLEscape filter test skipped due to incompatible changes in HTML::Element - Deprecated Maybe constraint 1.10 2006-09-29 - RadioGroup elements are now wrapped in a fieldset tag. - HTML::Widget->new() and $w->element() now accepts a hash-ref of attributes as an argument, after the name argument. - $w->attributes() and $e->attributes() now accepts either a list or a hash-ref. Returns the object-ref for method chaining. A hash-ref no longer overwrites existing attributes, it is now added to the existing attributes. As a special-case, the attributes hash-ref is returned if no arguments are passed. - All fields elements (except Upload) have a $e->retain_default method, which if true overrides the default behaviour, so that after a field is missing from the form submission, the xml output will contain the default value, rather than be empty. - $widget has new methods get_elements_ref(), get_filters_ref() and get_constraints_ref() which return an arrayref. - $result has new method elements_ref() which returns an arrayref. 1.09 2006-09-21 - Embedding completely refactored by Michael Gray. - $w->embed( $e, @widgets) embeds into the supplied element. - New Fieldset element. - Can add elements to Fieldset elements, as an alternative to using embed. - New $w->xhtml_strict accessor. When true, doesn't allow non-block elements at the top-level of a form. - New $w->legend accessor. Sets the label for the top-level fieldset. - process() is now called for embedded widgets. - After form submission, $result->as_xml() no longer uses an elements' default value if that field wasn't submitted. - Removed In constraint change added in v1.08 (in which validate automatically passed an empty in() list) - Select elements no longer automatically get an implicit In constraint added. Set constrain_options() to true to get the old behaviour. - RadioGroup elements no longer automatically get an implicit In constraint added. Set constrain_values to true to get the old behaviour. - New $w->explicit_ids( 1 ) method, stops auto-generation of id's in the xml output. - New CallbackOnce constraint - New HTML::Widget::Manual::Developer.pod - Added checked() as an alias for value() in RadioGroup elements. - Fixed many bugs when submitted values are 0 (zero) - particularly with $result->as_xml output. - Fixed bug when element names contain regex characters. - Fixed Range constraints handling of missing and empty values. 1.08 2006-08-10 16:07 - Changed $widget->action(). Instead of defaulting to "/" it is left empty. This causes browsers to submit the form to the current URI. - Fixed fatal bug on an empty Select options() list - Fixed bug where $result->error(..., $type) would return all errors but those of $type - $e->containerize now requires the container_class and dies with a more helpful message if require of class fails - new methods $widget->get_element(), $widget->get_constraint(), $widget->get_filter() - In constraint no longer fails when the in() list is empty - When multiple Checkbox elements share the same name, the element ids are given the form 'name_1', 'name_2', etc. This ensures unique ids. - Regex and Number constraints now allow the empty string, for consistency with other constraints. If you need to ensure the value is present, also use the All constraint. - Constraint, Element and Filter names can be prefixed with a unary plus '+' to specify a fully-qualified module name, rather than one beginning with HTML::Widget::Constraint::, etc. - Fixed bug with ASCII constraint not allowing the space character. 1.07 2006-04-26 10:53 - Added a Button element - Submit and Reset values no longer default to "1" (this was causing the browser to display the button label as "1" instead of "Submit" or "Reset") - Added height() and width() accessors for image submit buttons - Added support for <button> tags, with new content() method - Added ability to customize HTML produced via H::W::Element::container_class. - Can specify container_class on a per widget basis via - $w->element_container_class() - Overloaded "" on Container to return as_xml - All constraint counted empty strings as values - AllOrNone constraint didn't treat 0 as a value 1.06 2006-04-06 10:44 - Added Module::Pluggable::Fast preloading for PAR packaging and the like - Make HTML::Widget::Container->element support arrayrefs - New method add_error() in HTML::Widget::Result - Select elements automatically get an In constraint added, corresponding to the element's option keys - RadioGroup elements automatically get an In constraint added, corresponding to the element's values - New Number constraint - New 'multiple' attribute supported on Select elements - Multiple input values for a Select element is an error if the multiple attribute is not true - Bug fixes: - Hidden element now accepts false but defined input values - Fixed bug with $result->params() not returning correct results when a field had multiple values - Regex constraint skipped when input param not defined (stops 'uninitialized value' warning) 1.05 2006-03-13 10:52 - New methods get_constraints(), get_elements(), get_filters - add value alias for checkbox - Fixed element values set to zero or the empty string not being set in the xml output - Added DependOn constraint - Fix textarea with description. - Add a src option to Submit to make it a image submit.
2007-11-07 07:39:02 +01:00
DISTNAME= HTML-Widget-1.11
PKGNAME= p5-${DISTNAME}
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=HTML/}
MAINTAINER= hiramatu@boreas.dti.ne.jp
HOMEPAGE= http://search.cpan.org/dist/HTML-Widget/
COMMENT= HTML Widget And Validation Framework
PKG_INSTALLATION_TYPES= overwrite pkgviews
DEPENDS+= p5-Module-Pluggable-Fast>=0.18:../../wip/p5-Module-Pluggable-Fast
DEPENDS+= p5-Class-Data-Accessor>=0.04001:../../devel/p5-Class-Data-Accessor
DEPENDS+= p5-Test-NoWarnings>=0.084:../../devel/p5-Test-NoWarnings
DEPENDS+= p5-HTML-Tree>=3.19.01:../../www/p5-HTML-Tree
DEPENDS+= p5-Class-Accessor>=0.22:../../devel/p5-Class-Accessor
DEPENDS+= p5-Class-Accessor-Chained>=0.01:../../devel/p5-Class-Accessor-Chained
DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber
DEPENDS+= p5-Test-MockObject>=1.02:../../devel/p5-Test-MockObject
DEPENDS+= p5-Email-Valid>=0.15:../../mail/p5-Email-Valid
DEPENDS+= p5-Date-Calc>=5.4:../../devel/p5-Date-Calc
PERL5_PACKLIST= auto/HTML/Widget/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"