diff options
author | aaron <aaron@FreeBSD.org> | 2006-05-22 08:10:10 +0800 |
---|---|---|
committer | aaron <aaron@FreeBSD.org> | 2006-05-22 08:10:10 +0800 |
commit | 9ac2eca008f039835b46ff707796586285bfac24 (patch) | |
tree | f4a14a293cee448539df6cd1c6f33b3529cd5ce4 | |
parent | e038b9b649458fc9fc92ac5c2cd59d8745a73413 (diff) | |
download | freebsd-ports-gnome-9ac2eca008f039835b46ff707796586285bfac24.tar.gz freebsd-ports-gnome-9ac2eca008f039835b46ff707796586285bfac24.tar.zst freebsd-ports-gnome-9ac2eca008f039835b46ff707796586285bfac24.zip |
Adding port devel/p5-Object-Enum, Replacement for if ($foo eq 'bar').
Approved by: tobez (implicit)
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Object-Enum/Makefile | 34 | ||||
-rw-r--r-- | devel/p5-Object-Enum/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Object-Enum/pkg-descr | 9 | ||||
-rw-r--r-- | devel/p5-Object-Enum/pkg-plist | 5 |
5 files changed, 52 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 3404a53437c2..8e41bf6589d0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/p5-Object-Enum/Makefile b/devel/p5-Object-Enum/Makefile new file mode 100644 index 000000000000..3903b6380c65 --- /dev/null +++ b/devel/p5-Object-Enum/Makefile @@ -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> diff --git a/devel/p5-Object-Enum/distinfo b/devel/p5-Object-Enum/distinfo new file mode 100644 index 000000000000..7df26d489f5e --- /dev/null +++ b/devel/p5-Object-Enum/distinfo @@ -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 diff --git a/devel/p5-Object-Enum/pkg-descr b/devel/p5-Object-Enum/pkg-descr new file mode 100644 index 000000000000..b37d5e80cc9f --- /dev/null +++ b/devel/p5-Object-Enum/pkg-descr @@ -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 diff --git a/devel/p5-Object-Enum/pkg-plist b/devel/p5-Object-Enum/pkg-plist new file mode 100644 index 000000000000..c5a990e9bdb0 --- /dev/null +++ b/devel/p5-Object-Enum/pkg-plist @@ -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 |