From 9a9a3fa59a88165787fcc08dd7f96ab631fe3fa9 Mon Sep 17 00:00:00 2001 From: cjep Date: Sat, 14 Dec 2002 00:19:24 +0000 Subject: Initial import of IO::Null 0.02 into the NetBSD packages collection as devel/p5-IO-Null. This is a perl class for null file handles. Calling a constructor of this class always succeeds, returning a new null file handle. Writing to any object of this class is always a no-operation, and returns true. Reading from any object of this class is always no-operation, and returns empty-string or empty-list, as appropriate. --- devel/p5-IO-Null/DESCR | 10 ++++++++++ devel/p5-IO-Null/Makefile | 17 +++++++++++++++++ devel/p5-IO-Null/PLIST | 1 + devel/p5-IO-Null/distinfo | 4 ++++ 4 files changed, 32 insertions(+) create mode 100644 devel/p5-IO-Null/DESCR create mode 100644 devel/p5-IO-Null/Makefile create mode 100644 devel/p5-IO-Null/PLIST create mode 100644 devel/p5-IO-Null/distinfo (limited to 'devel/p5-IO-Null') diff --git a/devel/p5-IO-Null/DESCR b/devel/p5-IO-Null/DESCR new file mode 100644 index 00000000000..5091b8b1b38 --- /dev/null +++ b/devel/p5-IO-Null/DESCR @@ -0,0 +1,10 @@ +This is a class for null file handles. Calling a constructor of this +class always succeeds, returning a new null file handle. Writing to +any object of this class is always a no-operation, and returns true. +Reading from any object of this class is always no-operation, and +returns empty-string or empty-list, as appropriate. + +You could say: + open(NULL, '>/dev/null') || die "WHAAT?! $!"; +and get a null FH that way. But not everyone is using an OS +that has a /dev/null diff --git a/devel/p5-IO-Null/Makefile b/devel/p5-IO-Null/Makefile new file mode 100644 index 00000000000..d1bdb226e22 --- /dev/null +++ b/devel/p5-IO-Null/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $ +# + +DISTNAME= IO-Null-0.02 +PKGNAME= p5-${DISTNAME} +SVR4_PKGNAME= p5inu +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=IO/} + +MAINTAINER= packages@netbsd.org +COMMENT= Perl module for null filehandles + +USE_BUILDLINK2= YES +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/IO/Null/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-IO-Null/PLIST b/devel/p5-IO-Null/PLIST new file mode 100644 index 00000000000..024e28538dc --- /dev/null +++ b/devel/p5-IO-Null/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $ diff --git a/devel/p5-IO-Null/distinfo b/devel/p5-IO-Null/distinfo new file mode 100644 index 00000000000..4bc6a47574c --- /dev/null +++ b/devel/p5-IO-Null/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/12/14 00:19:24 cjep Exp $ + +SHA1 (IO-Null-0.02.tar.gz) = b23852a3009e36dbb502e0019ab47fef0ea6aa64 +Size (IO-Null-0.02.tar.gz) = 3894 bytes -- cgit v1.2.3