summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2013-11-27 00:02:06 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2013-11-27 00:02:06 +0000
commitc58881a2ba8b8851eaf2d41df4b00f78fd81e254 (patch)
tree080f16708db883e4e493381c005607743a0d6b18 /devel
parentSometimes you want roles. You're not sure about Moose, Mouse, Moo and (diff)
Symbol::Global::Name takes a reference and optional package name. It
returns the name of the referenced variable as long as it's in the package or sub-package and it's a global variable. Returned name is prefixed with type sigil, eg. '$', '@', '%', '&' or '*'. WWW: http://search.cpan.org/dist/Symbol-Global-Name/
Notes
Notes: svn path=/head/; revision=334983
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Symbol-Global-Name/Makefile19
-rw-r--r--devel/p5-Symbol-Global-Name/distinfo2
-rw-r--r--devel/p5-Symbol-Global-Name/pkg-descr6
-rw-r--r--devel/p5-Symbol-Global-Name/pkg-plist9
5 files changed, 37 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 55d4afc4949a..9ac7b2b7267a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2705,6 +2705,7 @@
SUBDIR += p5-Sub-Signatures
SUBDIR += p5-Sub-Uplevel
SUBDIR += p5-Sub-WrapPackages
+ SUBDIR += p5-Symbol-Global-Name
SUBDIR += p5-Symbol-Util
SUBDIR += p5-Syntax-Keyword-Junction
SUBDIR += p5-Sys-Cpu
diff --git a/devel/p5-Symbol-Global-Name/Makefile b/devel/p5-Symbol-Global-Name/Makefile
new file mode 100644
index 000000000000..39004d0eae9f
--- /dev/null
+++ b/devel/p5-Symbol-Global-Name/Makefile
@@ -0,0 +1,19 @@
+# Created by: Matthew Seaman <matthew@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Symbol-Global-Name
+PORTVERSION= 0.04
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Finds name and type of a global variable
+
+USES= perl5
+USE_PERL5= configure
+
+regression-test: build
+ @cd ${WRKSRC} && ${MAKE} test
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Symbol-Global-Name/distinfo b/devel/p5-Symbol-Global-Name/distinfo
new file mode 100644
index 000000000000..7aa23f9638dd
--- /dev/null
+++ b/devel/p5-Symbol-Global-Name/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Symbol-Global-Name-0.04.tar.gz) = 252c9ada77dbe49a247ccb2cae3e7af91b6368027c13af12e8fad2c0c3bf093a
+SIZE (Symbol-Global-Name-0.04.tar.gz) = 21635
diff --git a/devel/p5-Symbol-Global-Name/pkg-descr b/devel/p5-Symbol-Global-Name/pkg-descr
new file mode 100644
index 000000000000..2499aa8bb708
--- /dev/null
+++ b/devel/p5-Symbol-Global-Name/pkg-descr
@@ -0,0 +1,6 @@
+Symbol::Global::Name takes a reference and optional package name. It
+returns the name of the referenced variable as long as it's in the
+package or sub-package and it's a global variable. Returned name is
+prefixed with type sigil, eg. '$', '@', '%', '&' or '*'.
+
+WWW: http://search.cpan.org/dist/Symbol-Global-Name/
diff --git a/devel/p5-Symbol-Global-Name/pkg-plist b/devel/p5-Symbol-Global-Name/pkg-plist
new file mode 100644
index 000000000000..a009818b618f
--- /dev/null
+++ b/devel/p5-Symbol-Global-Name/pkg-plist
@@ -0,0 +1,9 @@
+%%PERL5_MAN3%%/Symbol::Global::Name.3.gz
+%%SITE_PERL%%/Symbol/Global/Name.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Symbol/Global/Name/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Symbol/Global/Name
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Symbol/Global
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Symbol
+@dirrmtry %%SITE_PERL%%/Symbol/Global
+@dirrmtry %%SITE_PERL%%/Symbol
+