add p5-Class-Delegation

Object-oriented delegation

PR:		31783
Submitted by:	Sergey Skvortsov <skv@protey.ru>
This commit is contained in:
Ying-Chieh Liao 2001-11-18 03:23:25 +00:00
parent acaf2d28e6
commit f9f2f05b97
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50171
6 changed files with 57 additions and 0 deletions

View file

@ -316,6 +316,7 @@
SUBDIR += p5-Cdk
SUBDIR += p5-Class-Contract
SUBDIR += p5-Class-Date
SUBDIR += p5-Class-Delegation
SUBDIR += p5-Class-Loader
SUBDIR += p5-Class-MethodMaker
SUBDIR += p5-Class-Singleton

View file

@ -0,0 +1,29 @@
# New ports collection makefile for: Class::Delegation
# Date created: 5 Nov 2001
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#
PORTNAME= Class-Delegation
PORTVERSION= 1.00
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= skv@protey.ru
PERL_CONFIGURE= yes
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Class::Delegation.3
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/demo/* \
${PREFIX}/share/examples/${PORTNAME}
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (Class-Delegation-1.00.tar.gz) = 9102ebee955d3bbd05d02f6821b1a3af

View file

@ -0,0 +1 @@
Object-oriented delegation

View file

@ -0,0 +1,13 @@
The Class::Delegation module simplifies the creation of delegation-based
class hierarchies, allowing a method to be redispatched:
* to a single nominated attribute,
* to a collection of nominated attributes in parallel, or
* to any attribute that can handle the message.
These three delegation mechanisms can be specified for:
* a single method
* a set of nominated methods collectively
* any as-yet-undelegated methods
* all methods, delegated or not.
WWW: http://search.cpan.org/search?dist=Class-Delegation

View file

@ -0,0 +1,12 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Delegation/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Class/Delegation.pm
%%PORTDOCS%%share/examples/Class-Delegation/demo_adapt_interface.pl
%%PORTDOCS%%share/examples/Class-Delegation/demo_change_semantics.pl
%%PORTDOCS%%share/examples/Class-Delegation/demo_facade.pl
%%PORTDOCS%%share/examples/Class-Delegation/demo_handle.pl
%%PORTDOCS%%share/examples/Class-Delegation/demo_inheritance.pl
%%PORTDOCS%%share/examples/Class-Delegation/demo_pseudo.pl
%%PORTDOCS%%@dirrm share/examples/Class-Delegation
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Delegation
@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