diff options
-rw-r--r-- | devel/p5-autobox/DESCR | 14 | ||||
-rw-r--r-- | devel/p5-autobox/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-autobox/distinfo | 5 |
3 files changed, 39 insertions, 0 deletions
diff --git a/devel/p5-autobox/DESCR b/devel/p5-autobox/DESCR new file mode 100644 index 00000000000..b7186a2ee50 --- /dev/null +++ b/devel/p5-autobox/DESCR @@ -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 --git a/devel/p5-autobox/Makefile b/devel/p5-autobox/Makefile new file mode 100644 index 00000000000..c0fac215e3d --- /dev/null +++ b/devel/p5-autobox/Makefile @@ -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 +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 --git a/devel/p5-autobox/distinfo b/devel/p5-autobox/distinfo new file mode 100644 index 00000000000..5b17615ba31 --- /dev/null +++ b/devel/p5-autobox/distinfo @@ -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 |