diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2008-10-29 01:21:23 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2008-10-29 01:21:23 +0000 |
commit | 18bc4cb5a37477ff747e9986e010924d4aed4708 (patch) | |
tree | 323dc824a599cbefd5e1742a97bafc93ae71f32b /www/p5-HTTP-Response-Encoding | |
parent | f25cfd6b3dc466027579ab4674f55d380cde4e0d (diff) | |
download | ports-18bc4cb5a37477ff747e9986e010924d4aed4708.tar.gz ports-18bc4cb5a37477ff747e9986e010924d4aed4708.zip |
Notes
Diffstat (limited to 'www/p5-HTTP-Response-Encoding')
-rw-r--r-- | www/p5-HTTP-Response-Encoding/Makefile | 7 | ||||
-rw-r--r-- | www/p5-HTTP-Response-Encoding/pkg-descr | 19 |
2 files changed, 23 insertions, 3 deletions
diff --git a/www/p5-HTTP-Response-Encoding/Makefile b/www/p5-HTTP-Response-Encoding/Makefile index 6af56102871d..a8cf7480ee7d 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 cbc45258b7f4..fde06b7d173f 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/ |