diff options
author | sno <sno@pkgsrc.org> | 2010-07-31 07:26:46 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2010-07-31 07:26:46 +0000 |
commit | 456531484891ce4c774e4726191201d6cc569394 (patch) | |
tree | 6a8539eb8eabcf44cdf3e570504633270c5388a6 /devel/p5-Devel-Trace | |
parent | fc4a5d084eb4a40d6fb726b465ed246df98e5e53 (diff) | |
download | pkgsrc-456531484891ce4c774e4726191201d6cc569394.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/DESCR | 23 | ||||
-rw-r--r-- | devel/p5-Devel-Trace/Makefile | 21 | ||||
-rw-r--r-- | devel/p5-Devel-Trace/distinfo | 5 |
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 |