summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2012-12-13 10:28:44 +0000
committerAnton Berezin <tobez@FreeBSD.org>2012-12-13 10:28:44 +0000
commit9217d0ff509968bfa2b62cc20840b32e86ef8eae (patch)
tree91d355ce552ffd7d1a00b6b8aaae0d859bdc1612
parentAdd devel/p5-Devel-Refcount 0.09, a perl module to obtain the REFCNT (diff)
Add devel/p5-UNIVERSAL-ref 0.14, a Perl module that turns the ref()
builtin function into a multimethod.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-UNIVERSAL-ref/Makefile20
-rw-r--r--devel/p5-UNIVERSAL-ref/distinfo2
-rw-r--r--devel/p5-UNIVERSAL-ref/pkg-descr5
-rw-r--r--devel/p5-UNIVERSAL-ref/pkg-plist7
5 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index ca5eca796ea9..f675ff677df0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2827,6 +2827,7 @@
SUBDIR += p5-UNIVERSAL-can
SUBDIR += p5-UNIVERSAL-isa
SUBDIR += p5-UNIVERSAL-moniker
+ SUBDIR += p5-UNIVERSAL-ref
SUBDIR += p5-UNIVERSAL-require
SUBDIR += p5-UNIVERSAL-which
SUBDIR += p5-UUID
diff --git a/devel/p5-UNIVERSAL-ref/Makefile b/devel/p5-UNIVERSAL-ref/Makefile
new file mode 100644
index 000000000000..ddc55c8e87df
--- /dev/null
+++ b/devel/p5-UNIVERSAL-ref/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME= UNIVERSAL-ref
+PORTVERSION= 0.14
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:JJORE
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= tobez@FreeBSD.org
+COMMENT= Turns ref() into a multimethod
+
+BUILD_DEPENDS= p5-B-Utils>=0:${PORTSDIR}/devel/p5-B-Utils
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= UNIVERSAL::ref.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-UNIVERSAL-ref/distinfo b/devel/p5-UNIVERSAL-ref/distinfo
new file mode 100644
index 000000000000..981e31f46f62
--- /dev/null
+++ b/devel/p5-UNIVERSAL-ref/distinfo
@@ -0,0 +1,2 @@
+SHA256 (UNIVERSAL-ref-0.14.tar.gz) = 35d815c49090d57b7051806ae1c4844879131791de1b861613c55a90a46b28ab
+SIZE (UNIVERSAL-ref-0.14.tar.gz) = 13355
diff --git a/devel/p5-UNIVERSAL-ref/pkg-descr b/devel/p5-UNIVERSAL-ref/pkg-descr
new file mode 100644
index 000000000000..218d28389e99
--- /dev/null
+++ b/devel/p5-UNIVERSAL-ref/pkg-descr
@@ -0,0 +1,5 @@
+This module changes the behavior of the builtin function ref(). If ref()
+is called on an object that has requested an overloaded ref, the
+object's ->ref method will be called and its return value used instead.
+
+WWW: http://search.cpan.org/dist/UNIVERSAL-ref/
diff --git a/devel/p5-UNIVERSAL-ref/pkg-plist b/devel/p5-UNIVERSAL-ref/pkg-plist
new file mode 100644
index 000000000000..3d562298c5cb
--- /dev/null
+++ b/devel/p5-UNIVERSAL-ref/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/UNIVERSAL/ref.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UNIVERSAL/ref/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UNIVERSAL/ref/ref.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/UNIVERSAL/ref/ref.so
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/UNIVERSAL/ref
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/UNIVERSAL
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/UNIVERSAL