singleton implementation in perl, needed by the DateTime classes.

This commit is contained in:
espie 2006-04-18 18:48:33 +00:00
parent be6b9615e1
commit 51badc2f91
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/04/18 18:48:33 espie Exp $
COMMENT= "perl singleton pattern"
DISTNAME= Class-Singleton-1.03
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
PKG_ARCH= *
# Artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Class/}
CONFIGURE_STYLE= perl
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Class-Singleton-1.03.tar.gz) = 80202a57411cb3e939fec327a87564bf
RMD160 (Class-Singleton-1.03.tar.gz) = 6ab4be9b84b7bcfac56874895ed677d1b468cccc
SHA1 (Class-Singleton-1.03.tar.gz) = 38c3e0619788212bdd3d49e9592e0fa4c6f6a5d1
SIZE (Class-Singleton-1.03.tar.gz) = 7136

View File

@ -0,0 +1,11 @@
A Singleton describes an object class that can have only one instance
in any system. This module implements a Singleton class from which
other classes can be derived. By itself, the Class::Singleton
module does very little other than manage the instantiation of a
single object. In deriving a class from Class::Singleton, your
module will inherit the Singleton instantiation method and can
implement whatever specific functionality is required.
For a description and discussion of the Singleton class, see
"Design Patterns", Gamma et al, Addison-Wesley, 1995, ISBN 0-
201-63361-2.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/04/18 18:48:33 espie Exp $
${P5SITE}/Class/
${P5SITE}/Class/Singleton.pm
@man man/man3p/Class::Singleton.3p