New port: Perl Class::Hook trace method calls to other classes
Perl module Class::Hook enables you to trace methods calls from your code to other classes. PR: ports/45255 Submitted by: Brian Skrab <brian@quynh-and-brian.org>
This commit is contained in:
parent
65dd0504c4
commit
a2ab06d103
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74849
@ -451,6 +451,7 @@
|
||||
SUBDIR += p5-Class-Factory-Util
|
||||
SUBDIR += p5-Class-Fields
|
||||
SUBDIR += p5-Class-Generate
|
||||
SUBDIR += p5-Class-Hook
|
||||
SUBDIR += p5-Class-ISA
|
||||
SUBDIR += p5-Class-Inner
|
||||
SUBDIR += p5-Class-Inspector
|
||||
|
27
devel/p5-Class-Hook/Makefile
Normal file
27
devel/p5-Class-Hook/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# New ports collection makefile for: p5-Class-Hook
|
||||
# Date created: Fri Nov 7 19:40:58 EST 2002
|
||||
# Whom: Brian Skrab <brian@quynh-and-brian.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Class-Hook
|
||||
PORTVERSION= 0.01
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
|
||||
http://cottage.quynh-and-brian.org/freebsd/ports/distfiles/
|
||||
MASTER_SITE_SUBDIR= Class
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= brian@quynh-and-brian.org
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Class::Hook.3
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
|
||||
SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/p5-Class-Hook/distinfo
Normal file
1
devel/p5-Class-Hook/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Class-Hook-0.01.tar.gz) = 2673eaf63bd9beb587c0425418fa926e
|
1
devel/p5-Class-Hook/pkg-comment
Normal file
1
devel/p5-Class-Hook/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Add hooks on methods from other classes
|
16
devel/p5-Class-Hook/pkg-descr
Normal file
16
devel/p5-Class-Hook/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
Class::Hook enables you to trace methods calls from your code to other classes.
|
||||
|
||||
Instead of putting 'use Foo;' in your code, simply type 'use Class::Hook;'.
|
||||
The class Foo is unknown in your code. It will be magically catched by
|
||||
Class::Hook which will call Foo itself. You can see Class::Hook as a kind of
|
||||
relay.
|
||||
|
||||
You can setup a subroutine to be called before any call to Foo->amethod and a
|
||||
subroutine to be called after the call. Your subs will receive all the
|
||||
information that Foo->amethod will receive, so you can trace everything
|
||||
between your code and Foo.
|
||||
|
||||
WWW: http://search.cpan.org/search?dist=Class-Hook
|
||||
|
||||
~brian skrab
|
||||
brian@quynh-and-brian.org
|
6
devel/p5-Class-Hook/pkg-plist
Normal file
6
devel/p5-Class-Hook/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Class/Hook.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Class/FOO.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Hook/.packlist
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class/Hook
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Class 2>/dev/null || true
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Class 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user