mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Adding port devel/p5-Object-Enum, Replacement for if ($foo eq 'bar').
Approved by: tobez (implicit)
This commit is contained in:
parent
a6434aaf73
commit
68a245e94b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163044
@ -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
|
||||
|
34
devel/p5-Object-Enum/Makefile
Normal file
34
devel/p5-Object-Enum/Makefile
Normal 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>
|
3
devel/p5-Object-Enum/distinfo
Normal file
3
devel/p5-Object-Enum/distinfo
Normal 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
|
9
devel/p5-Object-Enum/pkg-descr
Normal file
9
devel/p5-Object-Enum/pkg-descr
Normal 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
|
5
devel/p5-Object-Enum/pkg-plist
Normal file
5
devel/p5-Object-Enum/pkg-plist
Normal 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
|
Loading…
Reference in New Issue
Block a user