diff options
author | abs <abs> | 2008-07-14 09:24:50 +0000 |
---|---|---|
committer | abs <abs> | 2008-07-14 09:24:50 +0000 |
commit | 0e59ef812631977364a6692a764852438964b49a (patch) | |
tree | 5c4bd54a54628500276ad435d852a5ea3c11fead /devel | |
parent | e3cbe00dfca64757d16523675097f6ab09021f4d (diff) | |
download | pkgsrc-0e59ef812631977364a6692a764852438964b49a.tar.gz |
Added devel/p5-Devel-Caller version 2.03
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')
-rw-r--r-- | devel/p5-Devel-Caller/DESCR | 23 | ||||
-rw-r--r-- | devel/p5-Devel-Caller/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-Devel-Caller/distinfo | 5 |
3 files changed, 48 insertions, 0 deletions
diff --git a/devel/p5-Devel-Caller/DESCR b/devel/p5-Devel-Caller/DESCR new file mode 100644 index 00000000000..180163c40cf --- /dev/null +++ b/devel/p5-Devel-Caller/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-Caller/Makefile b/devel/p5-Devel-Caller/Makefile new file mode 100644 index 00000000000..372c41763b0 --- /dev/null +++ b/devel/p5-Devel-Caller/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/07/14 09:24:50 abs Exp $ + +DISTNAME= Devel-Caller-2.03 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Devel/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/perldoc?Devel::Caller +COMMENT= Meatier versions of caller + +DEPENDS+= p5-PadWalker>0.08:../../devel/p5-PadWalker + +USE_LANGUAGES= c +PERL5_PACKLIST= auto/Devel/Caller/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Devel-Caller/distinfo b/devel/p5-Devel-Caller/distinfo new file mode 100644 index 00000000000..6f877a494a2 --- /dev/null +++ b/devel/p5-Devel-Caller/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/07/14 09:24:50 abs Exp $ + +SHA1 (Devel-Caller-2.03.tar.gz) = 12a2c1991db045c5818413e689498782737c3b99 +RMD160 (Devel-Caller-2.03.tar.gz) = 5753f7068ae262fca493f0fe3b5cbed64214cc6e +Size (Devel-Caller-2.03.tar.gz) = 5497 bytes |