Import p5-autobox 2.77 from Chris Bennett.

The autobox pragma 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.

ok sthen@
This commit is contained in:
landry 2013-04-23 18:58:20 +00:00
parent 67d322c29b
commit 18b0506839
4 changed files with 39 additions and 0 deletions

20
devel/p5-autobox/Makefile Normal file
View File

@ -0,0 +1,20 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/23 18:58:20 landry Exp $
SHARED_ONLY = Yes
COMMENT = pragma to call methods on native types
DISTNAME = autobox-2.77
CATEGORIES = devel
# Perl
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c
MODULES = cpan
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/p5-Scope-Guard
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (autobox-2.77.tar.gz) = i2TkFsf7sM0JDCwQ01zRFEaryktZNKTZ3v1rqQs6Gzs=
SIZE (autobox-2.77.tar.gz) = 74490

View File

@ -0,0 +1,6 @@
The autobox pragma 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.

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/23 18:58:20 landry Exp $
${P5ARCH}/
${P5ARCH}/auto/
${P5ARCH}/auto/autobox/
${P5ARCH}/auto/autobox/autobox.bs
${P5ARCH}/auto/autobox/autobox.so
${P5ARCH}/autobox/
${P5ARCH}/autobox.pm
${P5ARCH}/autobox.pod
${P5ARCH}/autobox/universal.pm
@man man/man3p/autobox.3p