mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
Add port devel/p5-Class-Std:
Most programmers who use Perl's object-oriented features construct their objects by blessing a hash. But, in doing so, they undermine the robustness of the OO approach. Hash-based objects are unencapsulated: their entries are open for the world to access and modify. Objects without effective encapsulation are vulnerable. Instead of politely respecting their public interface, some clever client coder inevitably will realize that it's marginally faster to interact directly with the underlying implementation, pulling out attribute values directly from the hash of an object. WWW: http://search.cpan.org/dist/Class-Std/ Approved by: krion (mentor)
This commit is contained in:
parent
8e7a2b625b
commit
9a7e733057
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163991
@ -807,6 +807,7 @@
|
||||
SUBDIR += p5-Class-Singleton
|
||||
SUBDIR += p5-Class-Spiffy
|
||||
SUBDIR += p5-Class-StateMachine
|
||||
SUBDIR += p5-Class-Std
|
||||
SUBDIR += p5-Class-Tangram
|
||||
SUBDIR += p5-Class-Throwable
|
||||
SUBDIR += p5-Class-Tom
|
||||
|
35
devel/p5-Class-Std/Makefile
Normal file
35
devel/p5-Class-Std/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: p5-Class-Std
|
||||
# Date created: 30 May 2006
|
||||
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Class-Std
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.0.8
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Class
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= infofarmer@FreeBSD.org
|
||||
COMMENT= Support for creating standard "inside-out" classes
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
|
||||
${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
|
||||
${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
|
||||
${SITE_PERL}/${PERL_ARCH}/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= YES
|
||||
|
||||
MAN3= Class::Std.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-Class-Std/distinfo
Normal file
3
devel/p5-Class-Std/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (Class-Std-v0.0.8.tar.gz) = dc01fecfc8d5886e41d2e8bc2f29a7a2
|
||||
SHA256 (Class-Std-v0.0.8.tar.gz) = a828d5f07d9a92e4851be6629309d80c7c598a8756b01cd94fd1f40d683b8ef9
|
||||
SIZE (Class-Std-v0.0.8.tar.gz) = 31100
|
12
devel/p5-Class-Std/pkg-descr
Normal file
12
devel/p5-Class-Std/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
Most programmers who use Perl's object-oriented features construct their
|
||||
objects by blessing a hash. But, in doing so, they undermine the
|
||||
robustness of the OO approach. Hash-based objects are unencapsulated:
|
||||
their entries are open for the world to access and modify.
|
||||
|
||||
Objects without effective encapsulation are vulnerable. Instead of
|
||||
politely respecting their public interface, some clever client coder
|
||||
inevitably will realize that it's marginally faster to interact directly
|
||||
with the underlying implementation, pulling out attribute values
|
||||
directly from the hash of an object.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Class-Std/
|
5
devel/p5-Class-Std/pkg-plist
Normal file
5
devel/p5-Class-Std/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
%%SITE_PERL%%/Class/Std.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Std/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Std
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class
|
||||
@dirrmtry %%SITE_PERL%%/Class
|
Loading…
Reference in New Issue
Block a user