summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2010-11-22 02:33:54 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2010-11-22 02:33:54 +0000
commit41d233b42285deff5317911e71db12460f7ed50b (patch)
tree5cda229005174a1a708bb00956e656c719cc900a /www
parent- Update to 2.17.2 (diff)
Every HTTP::Exception is a Exception::Class - Class. So the same
mechanisms apply as with Exception::Class-classes. In fact have a look at Exception::Class' docs for more general information on exceptions and Exception::Class::Base for information on what methods a caught exception also has. HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is a number) subclasses. That means that HTTP::Exception->new(404) returns a HTTP::Exception::404 object, which in turn is a HTTP::Exception::Base - Object. WWW: http://search.cpan.org/dist/HTTP-Exception/
Notes
Notes: svn path=/head/; revision=264901
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-HTTP-Exception/Makefile33
-rw-r--r--www/p5-HTTP-Exception/distinfo2
-rw-r--r--www/p5-HTTP-Exception/pkg-descr12
-rw-r--r--www/p5-HTTP-Exception/pkg-plist13
5 files changed, 61 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 83407e2bde10..d6ecae873a68 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1028,6 +1028,7 @@
SUBDIR += p5-HTTP-Daemon-SSL
SUBDIR += p5-HTTP-Engine
SUBDIR += p5-HTTP-Engine-Middleware
+ SUBDIR += p5-HTTP-Exception
SUBDIR += p5-HTTP-GHTTP
SUBDIR += p5-HTTP-HeaderParser-XS
SUBDIR += p5-HTTP-Headers-Fast
diff --git a/www/p5-HTTP-Exception/Makefile b/www/p5-HTTP-Exception/Makefile
new file mode 100644
index 000000000000..0858eabfb333
--- /dev/null
+++ b/www/p5-HTTP-Exception/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: HTTP::Exception
+# Date created: 22 Nov 2010
+# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= HTTP-Exception
+PORTVERSION= 0.03001
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= kuriyama@FreeBSD.org
+COMMENT= Perl extension to throw HTTP-Errors as (Exception::Class-) Exceptions
+
+RUN_DEPENDS= \
+ p5-Exception-Class>=1.29:${PORTSDIR}/devel/p5-Exception-Class \
+ p5-libwww>=5.817:${PORTSDIR}/www/p5-libwww
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= HTTP::Exception.3 \
+ HTTP::Exception::1XX.3 \
+ HTTP::Exception::2XX.3 \
+ HTTP::Exception::3XX.3 \
+ HTTP::Exception::4XX.3 \
+ HTTP::Exception::5XX.3 \
+ HTTP::Exception::Base.3 \
+ HTTP::Exception::Loader.3
+
+.include <bsd.port.mk>
diff --git a/www/p5-HTTP-Exception/distinfo b/www/p5-HTTP-Exception/distinfo
new file mode 100644
index 000000000000..6f43c53c7fe3
--- /dev/null
+++ b/www/p5-HTTP-Exception/distinfo
@@ -0,0 +1,2 @@
+SHA256 (HTTP-Exception-0.03001.tar.gz) = 3e112f4a59bdbb84e73a422a780e2c5ce3219b909484324a2ebca842d9d5f085
+SIZE (HTTP-Exception-0.03001.tar.gz) = 20379
diff --git a/www/p5-HTTP-Exception/pkg-descr b/www/p5-HTTP-Exception/pkg-descr
new file mode 100644
index 000000000000..edc2276a4110
--- /dev/null
+++ b/www/p5-HTTP-Exception/pkg-descr
@@ -0,0 +1,12 @@
+Every HTTP::Exception is a Exception::Class - Class. So the same
+mechanisms apply as with Exception::Class-classes. In fact have a look
+at Exception::Class' docs for more general information on exceptions
+and Exception::Class::Base for information on what methods a caught
+exception also has.
+
+HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is
+a number) subclasses. That means that HTTP::Exception->new(404)
+returns a HTTP::Exception::404 object, which in turn is a
+HTTP::Exception::Base - Object.
+
+WWW: http://search.cpan.org/dist/HTTP-Exception/
diff --git a/www/p5-HTTP-Exception/pkg-plist b/www/p5-HTTP-Exception/pkg-plist
new file mode 100644
index 000000000000..e70faa8cab33
--- /dev/null
+++ b/www/p5-HTTP-Exception/pkg-plist
@@ -0,0 +1,13 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Exception/.packlist
+%%SITE_PERL%%/HTTP/Exception.pm
+%%SITE_PERL%%/HTTP/Exception/1XX.pm
+%%SITE_PERL%%/HTTP/Exception/2XX.pm
+%%SITE_PERL%%/HTTP/Exception/3XX.pm
+%%SITE_PERL%%/HTTP/Exception/4XX.pm
+%%SITE_PERL%%/HTTP/Exception/5XX.pm
+%%SITE_PERL%%/HTTP/Exception/Base.pm
+%%SITE_PERL%%/HTTP/Exception/Loader.pm
+@dirrm %%SITE_PERL%%/HTTP/Exception
+@comment @dirrm %%SITE_PERL%%/HTTP
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Exception
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP