Add p5-Class-BlackHole 0.03,

base class to treat unhandled method
calls as no-ops.

PR:		32965
Submitted by:	Sergey Skvortsov <skv@FreeBSD.org>
This commit is contained in:
Sergey Skvortsov 2002-05-27 07:58:29 +00:00
parent 9981e258ee
commit dac36dde5b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60071
6 changed files with 42 additions and 0 deletions

View file

@ -364,6 +364,7 @@
SUBDIR += p5-Carp-Assert
SUBDIR += p5-Cdk
SUBDIR += p5-Class-Accessor
SUBDIR += p5-Class-BlackHole
SUBDIR += p5-Class-Contract
SUBDIR += p5-Class-Data-Inheritable
SUBDIR += p5-Class-Date

View file

@ -0,0 +1,22 @@
# New ports collection makefile for: Class-BlackHole
# Date created: 17 Dec 2001
# Whom: Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Class-BlackHole
PORTVERSION= 0.03
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
PERL_CONFIGURE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Class::BlackHole.3
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (Class-BlackHole-0.03.tar.gz) = 568ca5e8a9520d0ae2453c3ee9a49d5f

View file

@ -0,0 +1 @@
Base class to treat unhandled method calls as no-ops

View file

@ -0,0 +1,12 @@
Normally, if you try to call a method that there's no handler for, you
get an error:
Can't locate object method "flork" via package "X".
But for classes that inherit from Class::BlackHole, unhandled methods
become just no-operations.
WWW: http://search.cpan.org/search?dist=Class-BlackHole
-- Sergey Skvortsov
skv@FreeBSD.org

View file

@ -0,0 +1,5 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/BlackHole/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Class/BlackHole.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/BlackHole
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Class 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true