aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Object-Enum
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-05-22 00:10:10 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-05-22 00:10:10 +0000
commit68a245e94bd5fc9a85437cec0a5271aa5fd8679b (patch)
treefb9244a68525ace4fc8dea6c65d3b4098847562f /devel/p5-Object-Enum
parenta6434aaf7301a07d652c782cd9edebe6b1fea29c (diff)
downloadports-68a245e94bd5fc9a85437cec0a5271aa5fd8679b.tar.gz
ports-68a245e94bd5fc9a85437cec0a5271aa5fd8679b.zip
Notes
Diffstat (limited to 'devel/p5-Object-Enum')
-rw-r--r--devel/p5-Object-Enum/Makefile34
-rw-r--r--devel/p5-Object-Enum/distinfo3
-rw-r--r--devel/p5-Object-Enum/pkg-descr9
-rw-r--r--devel/p5-Object-Enum/pkg-plist5
4 files changed, 51 insertions, 0 deletions
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