Index: head/www/p5-Catalyst-Plugin-Server/Makefile =================================================================== --- head/www/p5-Catalyst-Plugin-Server/Makefile (revision 365554) +++ head/www/p5-Catalyst-Plugin-Server/Makefile (revision 365555) @@ -1,27 +1,27 @@ # Created by: Sergey Skvortsov # $FreeBSD$ PORTNAME= Catalyst-Plugin-Server PORTVERSION= 0.28 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- -MAINTAINER= perl@FreeBSD.org +MAINTAINER= des@FreeBSD.org COMMENT= Catalyst Server Plugin: Base & XMLRPC LICENSE= ART10 GPLv1 LICENSE_COMB= dual BUILD_DEPENDS= p5-Catalyst-Runtime>=5.7000:${PORTSDIR}/www/p5-Catalyst-Runtime \ p5-Class-Data-Inheritable>=0:${PORTSDIR}/devel/p5-Class-Data-Inheritable \ p5-MRO-Compat>=0:${PORTSDIR}/devel/p5-MRO-Compat \ p5-Clone-Fast>=0:${PORTSDIR}/devel/p5-Clone-Fast \ p5-RPC-XML>=0:${PORTSDIR}/net/p5-RPC-XML RUN_DEPENDS:= ${BUILD_DEPENDS} USES= perl5 USE_PERL5= configure .include Index: head/www/p5-Catalyst-Plugin-Server/files/patch-lib-Catalyst-Plugin-Server-XMLRPC.pm =================================================================== --- head/www/p5-Catalyst-Plugin-Server/files/patch-lib-Catalyst-Plugin-Server-XMLRPC.pm (nonexistent) +++ head/www/p5-Catalyst-Plugin-Server/files/patch-lib-Catalyst-Plugin-Server-XMLRPC.pm (revision 365555) @@ -0,0 +1,44 @@ +--- lib/Catalyst/Plugin/Server/XMLRPC.pm.orig ++++ lib/Catalyst/Plugin/Server/XMLRPC.pm +@@ -512,7 +512,7 @@ Alias of $c->req->parameters + + __PACKAGE__->mk_accessors( + qw/ path prefix separator attribute convert_params +- show_errors xml_encoding ++ show_errors xml_encoding allow_nil + / + ); + +@@ -532,6 +532,8 @@ Alias of $c->req->parameters + || $DefaultShowErrors ); + $self->xml_encoding( $c->config->{xmlrpc}->{xml_encoding} ) + if $c->config->{xmlrpc}->{xml_encoding}; ++ $self->allow_nil( $c->config->{xmlrpc}->{allow_nil} ) ++ if $c->config->{xmlrpc}->{allow_nil}; + $self->attribute($DefaultAttr); + $self->convert_params( 1 ); + +@@ -690,6 +692,9 @@ Alias of $c->req->parameters + local $RPC::XML::ENCODING = $c->server->xmlrpc->config->xml_encoding + if $c->server->xmlrpc->config->xml_encoding; + ++ local $RPC::XML::ALLOW_NIL = $c->server->xmlrpc->config->allow_nil ++ if $c->server->xmlrpc->config->allow_nil; ++ + local $Clone::Fast::BREAK_REFS = 1; + + my $res = RPC::XML::response->new(clone($status)); +@@ -808,6 +813,13 @@ default encoding to C for instance. + + Defaults to C which is the default of C. + ++=item allow_nil ++ ++Allow undefined values to be encoded as a C<< nil >> element of an empty ++string. ++ ++Defaults to false which is the default of C. ++ + =back + + =head1 DIAGNOSTICS Property changes on: head/www/p5-Catalyst-Plugin-Server/files/patch-lib-Catalyst-Plugin-Server-XMLRPC.pm ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property