aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2008-10-29 09:21:23 +0800
committerleeym <leeym@FreeBSD.org>2008-10-29 09:21:23 +0800
commiteb2516f977b94b3941fb3aee2dca7e94038943f8 (patch)
tree7d9d7a09630a54145b50cf99724e8196110b28aa
parente7295a9e22037827a986ef14ffde1c8de62ac999 (diff)
downloadfreebsd-ports-graphics-eb2516f977b94b3941fb3aee2dca7e94038943f8.tar.gz
freebsd-ports-graphics-eb2516f977b94b3941fb3aee2dca7e94038943f8.tar.zst
freebsd-ports-graphics-eb2516f977b94b3941fb3aee2dca7e94038943f8.zip
- fix dependency to build on perl 5.7.3 - 5.8.5
- add more descriptions - bump PORTREVISION PR: 128438 Submitted by: leeym Approved by: maintainer
-rw-r--r--www/p5-HTTP-Response-Encoding/Makefile7
-rw-r--r--www/p5-HTTP-Response-Encoding/pkg-descr19
2 files changed, 23 insertions, 3 deletions
diff --git a/www/p5-HTTP-Response-Encoding/Makefile b/www/p5-HTTP-Response-Encoding/Makefile
index 6af56102871..a8cf7480ee7 100644
--- a/www/p5-HTTP-Response-Encoding/Makefile
+++ b/www/p5-HTTP-Response-Encoding/Makefile
@@ -7,6 +7,7 @@
PORTNAME= HTTP-Response-Encoding
PORTVERSION= 0.05
+PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= HTTP
@@ -15,16 +16,16 @@ PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= Adds encoding() to HTTP::Response
-RUN_DEPENDS= ${SITE_PERL}/HTTP/Response.pm:${PORTSDIR}/www/p5-libwww
+RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.8.1+
MAN3= HTTP::Response::Encoding.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500805
-IGNORE= requires Perl 5.8.5 or later. Install lang/perl5.8 and try again
+RUN_DEPENDS+= p5-Encode>=2:${PORTSDIR}/converters/p5-Encode
.endif
.include <bsd.port.post.mk>
diff --git a/www/p5-HTTP-Response-Encoding/pkg-descr b/www/p5-HTTP-Response-Encoding/pkg-descr
index cbc45258b7f..fde06b7d173 100644
--- a/www/p5-HTTP-Response-Encoding/pkg-descr
+++ b/www/p5-HTTP-Response-Encoding/pkg-descr
@@ -1,3 +1,22 @@
This module adds the following methods to HTTP::Response objects.
+$res->charset
+
+ Tells the charset exactly as appears in the Content-Type: header. Note that
+ the presence of the charset does not guarantee if the response content is
+ decodable via Encode.
+
+$res->encoder
+
+ Returns the corresponding encoder object or undef if it can't.
+
+$res->encoding
+
+ Tells the content encoding in the canonical name in Encode. Returns undef
+ if it can't.
+
+$res->decoded_content
+
+ Discontinued since HTTP::Message already has this method.
+
WWW: http://search.cpan.org/dist/HTTP-Response-Encoding/