1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Adding port devel/p5-Object-Enum, Replacement for if ($foo eq 'bar').

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-05-22 00:10:10 +00:00
parent a6434aaf73
commit 68a245e94b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163044
5 changed files with 52 additions and 0 deletions

View File

@ -1108,6 +1108,7 @@
SUBDIR += p5-OOTools
SUBDIR += p5-ORBit
SUBDIR += p5-Object-Accessor
SUBDIR += p5-Object-Enum
SUBDIR += p5-Object-InsideOut
SUBDIR += p5-Object-MultiType
SUBDIR += p5-Object-Realize-Later

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: Object-Enum
# Date created: 21 May 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Object-Enum
PORTVERSION= 0.06
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Object
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= Replacement for if ($foo eq 'bar')
BUILD_DEPENDS= ${SITE_PERL}/Sub/Install.pm:${PORTSDIR}/devel/p5-Sub-Install \
${SITE_PERL}/Sub/Exporter.pm:${PORTSDIR}/devel/p5-Sub-Exporter \
${SITE_PERL}/Class/Data/Inheritable.pm:${PORTSDIR}/devel/p5-Class-Data-Inheritable \
${SITE_PERL}/Class/Accessor/Fast.pm:${PORTSDIR}/devel/p5-Class-Accessor
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3= Object::Enum.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
IGNORE= requires at least Perl 5.8 due to dependencies. Please install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Object-Enum-0.06.tar.gz) = 26c7f743b70d2d2ed6f1bf0ebd4bb9e8
SHA256 (Object-Enum-0.06.tar.gz) = b3c4e14a20b8b8e9e1f76123b275e7e5df40ee1decab06d8600f6384c4400b0f
SIZE (Object-Enum-0.06.tar.gz) = 19055

View File

@ -0,0 +1,9 @@
use Object::Enum qw(Enum);
my $color = Enum([ qw(red yellow green) ]);
# ... later
if ($color->is_red) {
# it can't be yellow or green
WWW: http://search.cpan.org/dist/Object-Enum
Author: Hans Dieter Pearcey

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/Object/Enum.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Object/Enum/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Object/Enum
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Object
@dirrmtry %%SITE_PERL%%/Object