From d243d78e360df27920114ac4a6635e9165aae0c1 Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 13 Nov 2006 00:10:03 +0000 Subject: [PATCH] return polymorphic values --- devel/p5-Return-Value/Makefile | 19 +++++++++++++++++++ devel/p5-Return-Value/distinfo | 4 ++++ devel/p5-Return-Value/pkg/DESCR | 15 +++++++++++++++ devel/p5-Return-Value/pkg/PLIST | 4 ++++ 4 files changed, 42 insertions(+) create mode 100644 devel/p5-Return-Value/Makefile create mode 100644 devel/p5-Return-Value/distinfo create mode 100644 devel/p5-Return-Value/pkg/DESCR create mode 100644 devel/p5-Return-Value/pkg/PLIST diff --git a/devel/p5-Return-Value/Makefile b/devel/p5-Return-Value/Makefile new file mode 100644 index 00000000000..bee02258984 --- /dev/null +++ b/devel/p5-Return-Value/Makefile @@ -0,0 +1,19 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/11/13 00:10:03 espie Exp $ + +COMMENT= "polymorphic return values" + +MODULES= cpan + +DISTNAME= Return-Value-1.301 +CATEGORIES= devel + +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/R/RJ/RJBS/} + +# perl +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MAKE_ENV= TEST_POD=Yes +.include diff --git a/devel/p5-Return-Value/distinfo b/devel/p5-Return-Value/distinfo new file mode 100644 index 00000000000..c50e7b9c93e --- /dev/null +++ b/devel/p5-Return-Value/distinfo @@ -0,0 +1,4 @@ +MD5 (Return-Value-1.301.tar.gz) = 15aeae9a075d58431c2656ec0e2f6cb3 +RMD160 (Return-Value-1.301.tar.gz) = 9848b7b6eb12b6588a3833d9a26a454f521f02a7 +SHA1 (Return-Value-1.301.tar.gz) = b9e12d054256d840e90c17acf5b6922b74610433 +SIZE (Return-Value-1.301.tar.gz) = 6688 diff --git a/devel/p5-Return-Value/pkg/DESCR b/devel/p5-Return-Value/pkg/DESCR new file mode 100644 index 00000000000..722bdd4f476 --- /dev/null +++ b/devel/p5-Return-Value/pkg/DESCR @@ -0,0 +1,15 @@ +Polymorphic return values are really useful. Often, we just want to know +if something worked or not. Other times, we'd like to know what the +error text was. Still others, we may want to know what the error code +was, and what the error properties were. We don't want to handle objects +or data structures for every single return value, but we do want to +check error conditions in our code because that's what good programmers +do. + +When functions are successful they may return true, or perhaps some +useful data. In the quest to provide consistent return values, this gets +confusing between complex, informational errors and successful return +values. + +This module provides these features with a simple API that should get +you what you're looking for in each contex a return value is used in. diff --git a/devel/p5-Return-Value/pkg/PLIST b/devel/p5-Return-Value/pkg/PLIST new file mode 100644 index 00000000000..dae26e4491c --- /dev/null +++ b/devel/p5-Return-Value/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/13 00:10:03 espie Exp $ +${P5SITE}/Return/ +${P5SITE}/Return/Value.pm +@man man/man3p/Return::Value.3p