diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2009-03-09 12:40:32 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2009-03-09 12:40:32 +0000 |
commit | c46fc1baad360022d8629a36a9f3768b71e3fc85 (patch) | |
tree | 93efdb6f6f9056923afbb605f0f32247f2b4a951 | |
parent | Update to 0.46. (diff) |
- Rename www/p5-Cookie-XS to www/p5-CGI-Cookie-XS
- Update to 0.16
Changes: http://cpansearch.perl.org/src/AGENT/CGI-Cookie-XS-0.16/Changes
Notes
Notes:
svn path=/head/; revision=229749
-rw-r--r-- | MOVED | 1 | ||||
-rw-r--r-- | www/Makefile | 2 | ||||
-rw-r--r-- | www/p5-CGI-Cookie-XS/Makefile | 9 | ||||
-rw-r--r-- | www/p5-CGI-Cookie-XS/distinfo | 6 | ||||
-rw-r--r-- | www/p5-CGI-Cookie-XS/pkg-plist | 16 | ||||
-rw-r--r-- | www/p5-Cookie-XS/Makefile | 22 | ||||
-rw-r--r-- | www/p5-Cookie-XS/distinfo | 3 | ||||
-rw-r--r-- | www/p5-Cookie-XS/mkcomm | 76 | ||||
-rw-r--r-- | www/p5-Cookie-XS/pkg-PM | 95 | ||||
-rw-r--r-- | www/p5-Cookie-XS/pkg-descr | 4 | ||||
-rw-r--r-- | www/p5-Cookie-XS/pkg-plist | 7 |
11 files changed, 20 insertions, 221 deletions
@@ -3841,3 +3841,4 @@ textproc/nicetext||2009-03-07|Abandoned upstream, requires obsolete version of G multimedia/libspiff|multimedia/libxspf|2009-03-08|Project renamed graphics/libgdgeda||2009-03-09|Has expired: is not required anymore japanese/ruby-tk||2009-03-09|Has expired: uses old Tk, not required with newer versions +www/p5-Cookie-XS|p5-CGI-Cookie-XS|2009-03-09|Renamed diff --git a/www/Makefile b/www/Makefile index b0d26676cef4..8ab28678cb21 100644 --- a/www/Makefile +++ b/www/Makefile @@ -669,6 +669,7 @@ SUBDIR += p5-CGI-Cache SUBDIR += p5-CGI-Compress-Gzip SUBDIR += p5-CGI-Cookie-Splitter + SUBDIR += p5-CGI-Cookie-XS SUBDIR += p5-CGI-Deurl-XS SUBDIR += p5-CGI-Ex SUBDIR += p5-CGI-Expand @@ -801,7 +802,6 @@ SUBDIR += p5-ClearSilver SUBDIR += p5-Compress-LeadingBlankSpaces SUBDIR += p5-Continuity - SUBDIR += p5-Cookie-XS SUBDIR += p5-DBIx-Class-HTMLWidget SUBDIR += p5-Data-TreeDumper-Renderer-DHTML SUBDIR += p5-Data-Validate-URI diff --git a/www/p5-CGI-Cookie-XS/Makefile b/www/p5-CGI-Cookie-XS/Makefile index 452e997f22d9..29f0e1dbcac9 100644 --- a/www/p5-CGI-Cookie-XS/Makefile +++ b/www/p5-CGI-Cookie-XS/Makefile @@ -5,8 +5,8 @@ # $FreeBSD$ # -PORTNAME= Cookie-XS -PORTVERSION= 0.09 +PORTNAME= CGI-Cookie-XS +PORTVERSION= 0.16 CATEGORIES= www perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= ../../authors/id/A/AG/AGENT @@ -15,8 +15,11 @@ PKGNAMEPREFIX= p5- MAINTAINER= skv@FreeBSD.org COMMENT= HTTP Cookie parser in C +BUILD_DEPENDS= p5-Filter-Simple>=0:${PORTSDIR}/textproc/p5-Filter-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} + PERL_CONFIGURE= 5.6.1+ -MAN3= Cookie::XS.3 +MAN3= CGI::Cookie::XS.3 .include <bsd.port.mk> diff --git a/www/p5-CGI-Cookie-XS/distinfo b/www/p5-CGI-Cookie-XS/distinfo index 086f75e4bfdd..61d658c73fa2 100644 --- a/www/p5-CGI-Cookie-XS/distinfo +++ b/www/p5-CGI-Cookie-XS/distinfo @@ -1,3 +1,3 @@ -MD5 (Cookie-XS-0.09.tar.gz) = f23fd8178e3dc560e77b3d14d74782d1 -SHA256 (Cookie-XS-0.09.tar.gz) = 999d65e65ba4aa1f8a728e13b46272144c2eb50ae2d1f9c5a65f6aeaee94b81e -SIZE (Cookie-XS-0.09.tar.gz) = 24553 +MD5 (CGI-Cookie-XS-0.16.tar.gz) = bbf1ffb087bb1500b784c869b9299c7b +SHA256 (CGI-Cookie-XS-0.16.tar.gz) = d62e13902557e975b573c596604420d901948dcb59eb6d4f08277c1d821b2dcb +SIZE (CGI-Cookie-XS-0.16.tar.gz) = 49225 diff --git a/www/p5-CGI-Cookie-XS/pkg-plist b/www/p5-CGI-Cookie-XS/pkg-plist index 9bd4db2b5c30..94579258843f 100644 --- a/www/p5-CGI-Cookie-XS/pkg-plist +++ b/www/p5-CGI-Cookie-XS/pkg-plist @@ -1,7 +1,9 @@ -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/.packlist -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/XS.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/XS.so -%%SITE_PERL%%/%%PERL_ARCH%%/Cookie/XS.pm -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS -@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie -@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Cookie +%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Cookie/XS/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Cookie/XS/XS.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Cookie/XS/XS.so +%%SITE_PERL%%/%%PERL_ARCH%%/CGI/Cookie/XS.pm +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Cookie/XS +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/Cookie +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/CGI/Cookie +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/CGI diff --git a/www/p5-Cookie-XS/Makefile b/www/p5-Cookie-XS/Makefile deleted file mode 100644 index 452e997f22d9..000000000000 --- a/www/p5-Cookie-XS/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# New ports collection makefile for: Cookie-XS -# Date created: 18 Apr 2008 -# Whom: Sergey Skvortsov <skv@protey.ru> -# -# $FreeBSD$ -# - -PORTNAME= Cookie-XS -PORTVERSION= 0.09 -CATEGORIES= www perl5 -MASTER_SITES= CPAN -MASTER_SITE_SUBDIR= ../../authors/id/A/AG/AGENT -PKGNAMEPREFIX= p5- - -MAINTAINER= skv@FreeBSD.org -COMMENT= HTTP Cookie parser in C - -PERL_CONFIGURE= 5.6.1+ - -MAN3= Cookie::XS.3 - -.include <bsd.port.mk> diff --git a/www/p5-Cookie-XS/distinfo b/www/p5-Cookie-XS/distinfo deleted file mode 100644 index 086f75e4bfdd..000000000000 --- a/www/p5-Cookie-XS/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (Cookie-XS-0.09.tar.gz) = f23fd8178e3dc560e77b3d14d74782d1 -SHA256 (Cookie-XS-0.09.tar.gz) = 999d65e65ba4aa1f8a728e13b46272144c2eb50ae2d1f9c5a65f6aeaee94b81e -SIZE (Cookie-XS-0.09.tar.gz) = 24553 diff --git a/www/p5-Cookie-XS/mkcomm b/www/p5-Cookie-XS/mkcomm deleted file mode 100644 index 3fa680912d4b..000000000000 --- a/www/p5-Cookie-XS/mkcomm +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/perl -w -# $Id$ - -use strict; -use warnings; - -use Getopt::Std; - -use GDSL::Args; -use GDSL::File qw(load_file save_file); -use GDSL::Util::Format; - -use GDSL::FreeBSD::Port::Makefile; -############################################################################### -my $mf = GDSL::FreeBSD::Port::Makefile->new(); - -my $makefile_name = 'Makefile'; -############################################################################### -$mf->init_freebsd(); -#$mf->load_file('/etc/defaults/make.conf'); -$mf->load_file('/etc/make.conf'); -$mf->load_file($makefile_name); -############################################################################## -my $portname = $mf->PORTNAME; -my $portversion = $mf->PORTVERSION; -my ($pm1) = ($portname =~ m!([^-]+)$!); -(my $pm2 = $portname) =~ s/-/\//g; -(my $pkgname = $portname) =~ s/-/::/g; -############################################################################## -print "portname=", $portname, "\n"; -print "portversion=", $portversion, "\n"; -print "pkgname=$pkgname\n"; -#exit; -############################################################################## -my $pmfile = undef; - -my $wrksrc = $mf->WRKSRC; - -for my $try_pmfile ("$wrksrc/$pm1.pm", - "$wrksrc/lib/$pm2.pm" -) { - print "try $try_pmfile\n"; - - if(-f $try_pmfile) { - $pmfile = $try_pmfile; - last; - } -} -die "can't find pm" - unless defined $pmfile; - -print "pmfile=$pmfile\n"; - -my $pm = load_file($pmfile); - -#=head1 NAME -# -#POE::Component::Client::POP3 - Impliment a POP3 client POE component - -if($pm =~ /^=head1 NAME\s*\n\s*\n${pkgname} - (.*)$/m) { -#if($pm=~/=head1 NAME/sm) { -#if($pm=~/NAME/sm) { - my $comment = $1; - print "wow! i find comment:\n", $comment, "\n"; - save_file('pkg-comment', $comment, "\n"); -} -if($pm =~ /^=head1 DESCRIPTION\s*\n\s*\n(.*?)(?=\s*\n\s*\n)/ms) { - my $desc = $1; - print "wwow! i find desc:\n", $desc, "\n"; - save_file('pkg-descr', $desc, "\n"); -} - -$pm =~ s/^(.*?)(?==head1)//s; -#skip SYNOPSIS -$pm =~s /(=head1 SYNOPSIS.*?)(?==head1)//s; -save_file('pkg-PM', $pm); diff --git a/www/p5-Cookie-XS/pkg-PM b/www/p5-Cookie-XS/pkg-PM deleted file mode 100644 index 10ba43b6919c..000000000000 --- a/www/p5-Cookie-XS/pkg-PM +++ /dev/null @@ -1,95 +0,0 @@ -=head1 NAME - -Cookie::XS - HTTP Cookie parser in C - -=head1 VERSION - -This document describes Cookie::XS 0.09 released on March 24, 2008. - -=head1 DESCRIPTION - -This module implements a very simple parser for cookies used in HTTP applications. We've found L<CGI::Simple::Cookie> and L<CGI::Cookie> rather slow according to the profiling results for our L<OpenResty> project, hence the rewrite in C. - -This library is still in B<pre-alpha> stage and the API is still in flux. We're just following the "release early, releaes often" guideline. So please check back often ;) - -=head1 METHODS - -We currently provide 2 static methods, C<parse> and C<fetch>. They work mostly the same way as those methods found in L<CGI::Cookie> and L<CGI::Simple::Cookie> but with the exception that our version returns plain Perl data structures rather than hashes of Perl objects (due to performance considerations). - -We'll implement some cookie dump methods in the near future. - -=over - -=item C<< $ref = Cookie::XS->parse($raw_cookie) >> - -Parses C<$raw_cookie> and returns the reference of a hash of arrays. The keys -of the hash are cookie variables' names while the values of the hash are lists of cookie variable's values. - -There is a length limit on the C<$raw_cookie>. If C<$raw_cookie> is longer than 4 KB (i.e. 4 * 1024 bytes, excluding the trailing '\0'), the overflowing part will be truncated. - -Also note that, C<fetch> does not assume any encoding on the cookie values. It just decodes the encoded entries verbatim and treat them as plain "binary" stuff. - -=item C<< $ref = Cookie::XS->fetch() >> - -Reads the raw cookie from the C<HTTP_COOKIE> and C<COOKIE> environments -(which are usually set by HTTP servers like lighttd or apache) and then -parses the value using the C<parse> method and finally returns the -results. - -=back - -=head1 TODO - -=over - -=item * - -Removing trailing spaces in cookie values. - -=back - -=head1 SOURCE CONTROL - -For the very latest version of this module, check out the source from -the SVN repos below: - -L<http://svn.openfoundry.org/cookieparser> - -There is anonymous access to all. If you'd like a commit bit, please let -us know. :) - -=head1 BUGS - -There must be some serious bugs lurking somewhere. We haven't done comprehensive testing for our code yet. It's a TODO. - -Please report bugs or send wish-list to -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cookie-XS>. - -=head1 SEE ALSO - -L<CGI::Cookie>, L<CGI::Cookie::Simple>. - -=head1 AUTHOR - -=over - -=item yuting C<< <yuting at alibaba-inc.com> >> - -=item agentzh C<< <agentzh at yahoo.cn> >> - -=back - -=head1 COPYRIGHT - -Copyright (c) 2008 by Yahoo! China EEEE Works, Alibaba Inc. - -=head1 License - -The "MIT" License - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/www/p5-Cookie-XS/pkg-descr b/www/p5-Cookie-XS/pkg-descr deleted file mode 100644 index 6d9d5ba0ea22..000000000000 --- a/www/p5-Cookie-XS/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -This module implements a very simple and fast parser for cookies used in -HTTP applications. - -WWW: http://search.cpan.org/dist/Cookie-XS/ diff --git a/www/p5-Cookie-XS/pkg-plist b/www/p5-Cookie-XS/pkg-plist deleted file mode 100644 index 9bd4db2b5c30..000000000000 --- a/www/p5-Cookie-XS/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/.packlist -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/XS.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS/XS.so -%%SITE_PERL%%/%%PERL_ARCH%%/Cookie/XS.pm -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie/XS -@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cookie -@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Cookie |