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:
parent
67d322c29b
commit
18b0506839
20
devel/p5-autobox/Makefile
Normal file
20
devel/p5-autobox/Makefile
Normal 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>
|
2
devel/p5-autobox/distinfo
Normal file
2
devel/p5-autobox/distinfo
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHA256 (autobox-2.77.tar.gz) = i2TkFsf7sM0JDCwQ01zRFEaryktZNKTZ3v1rqQs6Gzs=
|
||||||
|
SIZE (autobox-2.77.tar.gz) = 74490
|
6
devel/p5-autobox/pkg/DESCR
Normal file
6
devel/p5-autobox/pkg/DESCR
Normal 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.
|
11
devel/p5-autobox/pkg/PLIST
Normal file
11
devel/p5-autobox/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user