This updates CGI::Session to 4.41, the latest version as of today
according to cpan.org. Also separated out the database backends into
flavors so you don't have to build all the major SQL databases if all
you need is simple session support. Also updated my email address, as
I do not check this email much anymore. My new email is in the
reply-to address, so please just hit reply if you want to email me,
this email is no longer on the ports list.

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/p5-CGI-Session/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    15 Sep 2007 20:38:23 -0000      1.2
+++ Makefile    9 Apr 2009 02:26:32 -0000
@@ -3,10 +3,10 @@
 COMMENT=       persistent session data in CGI applications

 MODULES=       cpan
-DISTNAME=      CGI-Session-4.20
+DISTNAME=      CGI-Session-4.41
 CATEGORIES=    www

-MAINTAINER=    Jason Crawford <jasonrcrawf...@gmail.com>
+MAINTAINER=    Jason Crawford <ja...@purebsd.net>

 # Perl
 PERMIT_PACKAGE_CDROM=  Yes
@@ -14,14 +14,38 @@ PERMIT_PACKAGE_FTP= Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes

-RUN_DEPENDS=   ::converters/p5-JSON \
-               ::databases/p5-DBI \
-               ::databases/p5-DBD-SQLite \
-               ::databases/p5-DBD-mysql \
-               ::databases/p5-DBD-Pg \
-               ::devel/p5-FreezeThaw \
+RUN_DEPENDS=   ::devel/p5-FreezeThaw \
                ::devel/p5-YAML-Syck \
                ::www/p5-CGI-Simple
+
+BACKEND=
+
+FLAVORS=       sqlite mysql pgsql
+FLAVOR?=       
+
+.if ${FLAVOR:L:Msqlite}
+.if empty(BACKEND)
+RUN_DEPENDS+=  ::databases/p5-DBI
+.endif
+RUN_DEPENDS+=  ::databases/p5-DBD-SQLite
+BACKEND+=      sqlite
+.endif
+
+.if ${FLAVOR:L:Mmysql}
+.if empty(BACKEND)
+RUN_DEPENDS+=  ::databases/p5-DBI
+.endif
+RUN_DEPENDS+=  ::databases/p5-DBD-mysql
+BACKEND+=      mysql
+.endif
+
+.if ${FLAVOR:L:Mpgsql}
+.if empty(BACKEND)
+RUN_DEPENDS+=  ::databases/p5-DBI
+.endif
+RUN_DEPENDS+=  ::databases/p5-DBD-Pg
+BACKEND+=      pgsql
+.endif

 REGRESS_DEPENDS=${RUN_DEPENDS}

Index: distinfo
===================================================================
RCS file: /cvs/ports/www/p5-CGI-Session/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    1 Jun 2007 22:00:35 -0000       1.1.1.1
+++ distinfo    9 Apr 2009 02:26:32 -0000
@@ -1,5 +1,5 @@
-MD5 (CGI-Session-4.20.tar.gz) = NHQPW5RNQnYIFiiPcn+Y+w==
-RMD160 (CGI-Session-4.20.tar.gz) = dfamIoPIhEQqBAiVQhWjLx8MQeY=
-SHA1 (CGI-Session-4.20.tar.gz) = qL3MY7iXzlPJZaXyCwcJfIzQhb8=
-SHA256 (CGI-Session-4.20.tar.gz) = bN2Bu1LW685UQ5qtFc+QjqbW3Oa6LVeUTMpUd8oO0Oo=
-SIZE (CGI-Session-4.20.tar.gz) = 70995
+MD5 (CGI-Session-4.41.tar.gz) = 5hvt+ZxyEWfj8wKXELO3/A==
+RMD160 (CGI-Session-4.41.tar.gz) = 6igH8WqF/8Sbj8yjaTAuj2OPvWw=
+SHA1 (CGI-Session-4.41.tar.gz) = n4amK3WYAdmFlZy3CrP1h0UR4D8=
+SHA256 (CGI-Session-4.41.tar.gz) = +Eiv72kAnCAq0NqhxpZhj8N8epMneu9hGfpb/wju7SM=
+SIZE (CGI-Session-4.41.tar.gz) = 69645
Index: patches/patch-t_g4_dbfile_json_t
===================================================================
RCS file: patches/patch-t_g4_dbfile_json_t
diff -N patches/patch-t_g4_dbfile_json_t
--- patches/patch-t_g4_dbfile_json_t    1 Jun 2007 22:00:35 -0000       1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-$OpenBSD: patch-t_g4_dbfile_json_t,v 1.1.1.1 2007/06/01 22:00:35 aanriot Exp $
---- t/g4_dbfile_json.t.orig    Wed Apr 12 07:42:14 2006
-+++ t/g4_dbfile_json.t Fri Jun  1 10:37:31 2007
-@@ -14,7 +14,8 @@ our %options = (
-     'JSON::Syck'      =>  { skip    =>  [85 .. 89, 91 .. 101] },
- );
-
--plan skip_all => 'DB_File is NOT available' unless eval { require DB_File };
-+# broken on OpenBSD with perl 5.8.8 (also reported by p5p)
-+plan skip_all => 'DB_File is NOT available';
-
- foreach my $i (keys(%options)) {
-     $serializers{$i}++ if eval "use $i (); 1";
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/p5-CGI-Session/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   1 Jun 2007 22:00:35 -0000       1.1.1.1
+++ pkg/PLIST   9 Apr 2009 02:26:32 -0000
@@ -17,9 +17,7 @@ ${P5SITE}/CGI/Session/ID/static.pm
 ${P5SITE}/CGI/Session/Serialize/
 ${P5SITE}/CGI/Session/Serialize/default.pm
 ${P5SITE}/CGI/Session/Serialize/freezethaw.pm
-${P5SITE}/CGI/Session/Serialize/json.pm
 ${P5SITE}/CGI/Session/Serialize/storable.pm
-${P5SITE}/CGI/Session/Serialize/yaml.pm
 ${P5SITE}/CGI/Session/Test/
 ${P5SITE}/CGI/Session/Test/Default.pm
 ${P5SITE}/CGI/Session/Tutorial.pm
@@ -37,8 +35,6 @@ ${P5SITE}/CGI/Session/Tutorial.pm
 @man man/man3p/CGI::Session::ID::static.3p
 @man man/man3p/CGI::Session::Serialize::default.3p
 @man man/man3p/CGI::Session::Serialize::freezethaw.3p
-...@man man/man3p/CGI::Session::Serialize::json.3p
 @man man/man3p/CGI::Session::Serialize::storable.3p
-...@man man/man3p/CGI::Session::Serialize::yaml.3p
 @man man/man3p/CGI::Session::Test::Default.3p
 @man man/man3p/CGI::Session::Tutorial.3p

Reply via email to