pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Devel-Caller Added devel/p5-Devel-Caller vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6939a6da949
branches:  trunk
changeset: 544399:e6939a6da949
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Jul 14 09:24:50 2008 +0000

description:
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:

 devel/p5-Devel-Caller/DESCR    |  23 +++++++++++++++++++++++
 devel/p5-Devel-Caller/Makefile |  20 ++++++++++++++++++++
 devel/p5-Devel-Caller/distinfo |   5 +++++
 3 files changed, 48 insertions(+), 0 deletions(-)

diffs (60 lines):

diff -r dd8cfbcca3a3 -r e6939a6da949 devel/p5-Devel-Caller/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Caller/DESCR       Mon Jul 14 09:24:50 2008 +0000
@@ -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 -r dd8cfbcca3a3 -r e6939a6da949 devel/p5-Devel-Caller/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Caller/Makefile    Mon Jul 14 09:24:50 2008 +0000
@@ -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@localhost
+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 -r dd8cfbcca3a3 -r e6939a6da949 devel/p5-Devel-Caller/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Devel-Caller/distinfo    Mon Jul 14 09:24:50 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index