pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-enum Imported p5-enum.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e6d77698b03c
branches: trunk
changeset: 524419:e6d77698b03c
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Jan 25 03:08:19 2007 +0000
description:
Imported p5-enum.
Defines a set of symbolic constants with ordered numeric values ala C
enum types.
Now capable of creating creating ordered bitmask constants as well. See
the BITMASKS section for details.
What are they good for? Typical uses would be for giving mnemonic names
to indexes of arrays. Such arrays might be a list of months, days, or a
return value index from a function such as localtime():
use enum qw(:Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
diffstat:
devel/p5-enum/DESCR | 11 +++++++++++
devel/p5-enum/Makefile | 17 +++++++++++++++++
devel/p5-enum/PLIST | 1 +
devel/p5-enum/distinfo | 5 +++++
4 files changed, 34 insertions(+), 0 deletions(-)
diffs (50 lines):
diff -r c970f955230d -r e6d77698b03c devel/p5-enum/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-enum/DESCR Thu Jan 25 03:08:19 2007 +0000
@@ -0,0 +1,11 @@
+Defines a set of symbolic constants with ordered numeric values ala C
+enum types.
+
+Now capable of creating creating ordered bitmask constants as well. See
+the BITMASKS section for details.
+
+What are they good for? Typical uses would be for giving mnemonic names
+to indexes of arrays. Such arrays might be a list of months, days, or a
+return value index from a function such as localtime():
+
+use enum qw(:Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
diff -r c970f955230d -r e6d77698b03c devel/p5-enum/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-enum/Makefile Thu Jan 25 03:08:19 2007 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/01/25 03:08:19 rillig Exp $
+#
+
+DISTNAME= enum-1.016
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=enum/}
+
+MAINTAINER= rillig%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/~zenin/${DISTNAME}/enum.pm
+COMMENT= Enumerations for Perl
+
+PERL5_PACKLIST= auto/enum/.packlist
+USE_LANGUAGES= # none
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c970f955230d -r e6d77698b03c devel/p5-enum/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-enum/PLIST Thu Jan 25 03:08:19 2007 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/25 03:08:19 rillig Exp $
diff -r c970f955230d -r e6d77698b03c devel/p5-enum/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-enum/distinfo Thu Jan 25 03:08:19 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/01/25 03:08:19 rillig Exp $
+
+SHA1 (enum-1.016.tar.gz) = d1600b60561efdb6f7f01f690e4ad179958598e5
+RMD160 (enum-1.016.tar.gz) = 40e93461960fe2c94a35d4bbb59e567bc7835509
+Size (enum-1.016.tar.gz) = 5847 bytes
Home |
Main Index |
Thread Index |
Old Index