forked from pfsense/FreeBSD-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Edwin Groothuis
authored and
Edwin Groothuis
committed
Feb 5, 2003
1 parent
65dd050
commit a2ab06d
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
# | ||
# $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= [email protected] | ||
|
||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MD5 (Class-Hook-0.01.tar.gz) = 2673eaf63bd9beb587c0425418fa926e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add hooks on methods from other classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |