From 2e56dc16a4f7007e8a72b48f15f261d382e02833 Mon Sep 17 00:00:00 2001 From: leeym Date: Wed, 31 Aug 2005 17:58:10 +0000 Subject: - update for mod_perl2 API and unbreak PR: 84171 Submitted by: leeym Approved by: maintainer --- www/p5-Apache-GopherHandler/Makefile | 8 ++------ .../files/patch-lib-Apache-GopherHandler.pm | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 www/p5-Apache-GopherHandler/files/patch-lib-Apache-GopherHandler.pm (limited to 'www/p5-Apache-GopherHandler') diff --git a/www/p5-Apache-GopherHandler/Makefile b/www/p5-Apache-GopherHandler/Makefile index 78a95fbfa708..ae28bb8c4686 100644 --- a/www/p5-Apache-GopherHandler/Makefile +++ b/www/p5-Apache-GopherHandler/Makefile @@ -15,23 +15,19 @@ PKGNAMEPREFIX= p5- MAINTAINER= toni.viemero@iki.fi COMMENT= Gopher protocol implementation for Apache2 -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Apache2/mod_perl.pm:${PORTSDIR}/www/mod_perl2 \ +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 \ ${SITE_PERL}/Gopher/Server/ParseRequest.pm:${PORTSDIR}/net/p5-Gopher-Server BUILD_DEPENDS= ${RUN_DEPENDS} PERL_MODBUILD= yes -BROKEN= Broken due the new mod_perl2 API -DEPRECATED= ${BROKEN} -EXPIRATION_DATE=2005-09-22 - MAN3= Apache::GopherHandler.3 \ Apache::GopherHandler::TiedSocket.3 .include .if ${PERL_LEVEL} < 500600 -IGNORE= "Needs perl 5.6.0 or higher, install lang/perl5 or lang/perl5.8 and try again" +IGNORE= Needs perl 5.6.0 or higher, install lang/perl5 or lang/perl5.8 and try again .endif .include diff --git a/www/p5-Apache-GopherHandler/files/patch-lib-Apache-GopherHandler.pm b/www/p5-Apache-GopherHandler/files/patch-lib-Apache-GopherHandler.pm new file mode 100644 index 000000000000..9d7642901279 --- /dev/null +++ b/www/p5-Apache-GopherHandler/files/patch-lib-Apache-GopherHandler.pm @@ -0,0 +1,23 @@ +--- lib/Apache/GopherHandler.pm.orig Tue Jul 26 16:19:15 2005 ++++ lib/Apache/GopherHandler.pm Tue Jul 26 16:19:33 2005 +@@ -5,9 +5,9 @@ + + our $VERSION = 0.1; + +-use Apache::Connection (); ++use Apache2::Connection (); + use APR::Socket (); +-use Apache::Const -compile => 'OK'; ++use Apache2::Const -compile => 'OK'; + use Gopher::Server::ParseRequest; + #use Gopher::Server::RequestHandler::File; + use Apache::GopherHandler::TiedSocket; +@@ -54,7 +54,7 @@ + tie *OUT, 'Apache::GopherHandler::TiedSocket' => $socket; + $response->print_to( *OUT ); + +- return Apache::OK; ++ return Apache2::Const::OK; + } + + 1; -- cgit