pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-autobox Initial import of p5-autobox version ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/579c26ef496a
branches:  trunk
changeset: 556501:579c26ef496a
user:      seb <seb%pkgsrc.org@localhost>
date:      Sun Mar 22 14:37:44 2009 +0000

description:
Initial import of p5-autobox version 2.55 in the NetBSD Packages
Collection.

The Perl 5 module autobox provides an autobox pragma.  It allows
methods to be called on integers, floats, strings, arrays, hashes,
and code references in exactly the same manner as blessed references.
The autoboxing is transparent: boxed values are not blessed into
their (user-defined) implementation class (unless the method elects
to bestow such a blessing) - they simply use its methods as though
they are.  The classes (packages) into which the native types are
boxed are fully configurable. By default, a method invoked on a
non-object is assumed to be defined in a class whose name corresponds
to the ref() type of that value - or SCALAR if the value is a
non-reference.  This mapping can be overriden by passing key/value
pairs to the use autobox statement, in which the keys represent
native types, and the values their associated classes.

diffstat:

 devel/p5-autobox/DESCR    |  14 ++++++++++++++
 devel/p5-autobox/Makefile |  20 ++++++++++++++++++++
 devel/p5-autobox/distinfo |   5 +++++
 3 files changed, 39 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r 93baea16c70b -r 579c26ef496a devel/p5-autobox/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-autobox/DESCR    Sun Mar 22 14:37:44 2009 +0000
@@ -0,0 +1,14 @@
+The Perl 5 module autobox provides an autobox pragma.  It allows
+methods to be called on integers, floats, strings, arrays, hashes,
+and code references in exactly the same manner as blessed references.
+The autoboxing is transparent: boxed values are not blessed into
+their (user-defined) implementation class (unless the method elects
+to bestow such a blessing) - they simply use its methods as though
+they are.
+The classes (packages) into which the native types are boxed are
+fully configurable. By default, a method invoked on a non-object
+is assumed to be defined in a class whose name corresponds to the
+ref() type of that value - or SCALAR if the value is a non-reference.
+This mapping can be overriden by passing key/value pairs to the use
+autobox statement, in which the keys represent native types, and
+the values their associated classes.
diff -r 93baea16c70b -r 579c26ef496a devel/p5-autobox/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-autobox/Makefile Sun Mar 22 14:37:44 2009 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/03/22 14:37:44 seb Exp $
+#
+
+DISTNAME=      autobox-2.55
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../../authors/id/C/CH/CHOCOLATE/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/autobox/
+COMMENT=       Perl 5 module to add methods on native types
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+PERL5_PACKLIST=        auto/autobox/.packlist
+
+DEPENDS+=      p5-Scope-Guard>=0.03:../../devel/p5-Scope-Guard
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 93baea16c70b -r 579c26ef496a devel/p5-autobox/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-autobox/distinfo Sun Mar 22 14:37:44 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/03/22 14:37:44 seb Exp $
+
+SHA1 (autobox-2.55.tar.gz) = 78fb8b9b8711b1969ab1e4b7b1ee839259c39222
+RMD160 (autobox-2.55.tar.gz) = 0dda7fc73fd5264d8e3fc188e975201ba39091ad
+Size (autobox-2.55.tar.gz) = 66395 bytes



Home | Main Index | Thread Index | Old Index