summaryrefslogtreecommitdiff
path: root/devel/p5-Devel-Trace
diff options
context:
space:
mode:
authorsno <sno>2010-07-31 07:26:46 +0000
committersno <sno>2010-07-31 07:26:46 +0000
commitb7e603624073534b8c8a8366afc5faaf3d76d6d1 (patch)
tree6a8539eb8eabcf44cdf3e570504633270c5388a6 /devel/p5-Devel-Trace
parentaef63a4d1d1373f53fbc7ac446fc0da6ba795e99 (diff)
downloadpkgsrc-b7e603624073534b8c8a8366afc5faaf3d76d6d1.tar.gz
Importing package for p5 dist Devel-Trace-0.10 into devel/p5-Devel-Trace.
This provides a 'meatier' version of caller: caller_cv($level) caller_cv gives you the coderef of the subroutine being invoked at the call frame indicated by the value of $level caller_args($level) Returns the arguments passed into the caller at level $level caller_vars( $level, $names ) =item called_with($level, $names) called_with returns a list of references to the original arguments to the subroutine at $level. if $names is true, the names of the variables will be returned instead constants are returned as undef in both cases called_as_method($level) called_as_method returns true if the subroutine at $level was called as a method.
Diffstat (limited to 'devel/p5-Devel-Trace')
-rw-r--r--devel/p5-Devel-Trace/DESCR23
-rw-r--r--devel/p5-Devel-Trace/Makefile21
-rw-r--r--devel/p5-Devel-Trace/distinfo5
3 files changed, 49 insertions, 0 deletions
diff --git a/devel/p5-Devel-Trace/DESCR b/devel/p5-Devel-Trace/DESCR
new file mode 100644
index 00000000000..180163c40cf
--- /dev/null
+++ b/devel/p5-Devel-Trace/DESCR
@@ -0,0 +1,23 @@
+This provides a 'meatier' version of caller:
+
+caller_cv($level)
+
+ caller_cv gives you the coderef of the subroutine being invoked
+ at the call frame indicated by the value of $level
+
+caller_args($level)
+
+ Returns the arguments passed into the caller at level $level
+
+caller_vars( $level, $names ) =item called_with($level, $names)
+
+ called_with returns a list of references to the original
+ arguments to the subroutine at $level. if $names is true, the
+ names of the variables will be returned instead
+
+ constants are returned as undef in both cases
+
+called_as_method($level)
+
+ called_as_method returns true if the subroutine at $level was
+ called as a method.
diff --git a/devel/p5-Devel-Trace/Makefile b/devel/p5-Devel-Trace/Makefile
new file mode 100644
index 00000000000..a29571f3087
--- /dev/null
+++ b/devel/p5-Devel-Trace/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/07/31 07:26:46 sno Exp $
+
+DISTNAME= Devel-Trace-0.10
+PKGNAME= p5-${DISTNAME}
+#PKGREVISION= 1
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Devel/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Devel-Trace/
+COMMENT= Print out each line before it is executed (like sh -x)
+LICENSE= ${PERL5_LICENSE}
+
+USE_TOOLS+= perl
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Devel/Trace/.packlist
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Devel-Trace/distinfo b/devel/p5-Devel-Trace/distinfo
new file mode 100644
index 00000000000..2b9f91d1647
--- /dev/null
+++ b/devel/p5-Devel-Trace/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/07/31 07:26:46 sno Exp $
+
+SHA1 (Devel-Trace-0.10.tar.gz) = 56448370552b809052e99391bf911b47068b7fda
+RMD160 (Devel-Trace-0.10.tar.gz) = b0ebeeb573efb86f03ec3ce1844674f6250b7cdb
+Size (Devel-Trace-0.10.tar.gz) = 2506 bytes