Adding port www/p5-WWW-Mechanize-Pluggable, Custmomize WWW::Mechanize via plugins.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-06-05 05:15:36 +00:00
parent 8b1b0d568b
commit ea6b9222cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164381
5 changed files with 70 additions and 0 deletions

View file

@ -728,6 +728,7 @@
SUBDIR += p5-WWW-Link
SUBDIR += p5-WWW-Mechanize
SUBDIR += p5-WWW-Mechanize-FormFiller
SUBDIR += p5-WWW-Mechanize-Pluggable
SUBDIR += p5-WWW-Mechanize-Shell
SUBDIR += p5-WWW-Mixi
SUBDIR += p5-WWW-Robot

View file

@ -0,0 +1,36 @@
# New ports collection makefile for: p5-WWW-Mechanize-Pluggable
# Date created: 04 Jun 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= WWW-Mechanize-Pluggable
PORTVERSION= 1.00
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= WWW
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= Custmomize WWW::Mechanize via plugins
BUILD_DEPENDS= ${SITE_PERL}/HTML/Form.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/Module/Pluggable.pm:${PORTSDIR}/devel/p5-Module-Pluggable \
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3= WWW::Mechanize::Pluggable.3 WWW::Mechanize::Plugin::HelloWorld.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600 # inherited from textproc/p5-YAML
IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (WWW-Mechanize-Pluggable-1.00.tar.gz) = 232a9479667412a869cc500c90647148
SHA256 (WWW-Mechanize-Pluggable-1.00.tar.gz) = 1a710a2430f62bb83a2f3d34dbfea9fe41a39384e735d62fbe941496a565792b
SIZE (WWW-Mechanize-Pluggable-1.00.tar.gz) = 40192

View file

@ -0,0 +1,21 @@
This module provides all of the same functionality of WWW::Mechanize, but
adds support for plugins using Module::Pluggable; this means that any
module named WWW::Mechanize::Plugin::whatever... will be found and loaded
when WWW::Mechanize::Pluggable is loaded.
Big deal, you say. Well, it becomes a big deal in conjunction with
WWW::Mechanize::Pluggable's other feature: plugin hooks. When plugins are
loaded, their import() methods can call WWW::Mechanize::Pluggable's
prehook and posthook methods. These methods add callbacks to the plugin
code in WWW::Mechanize::Pluggable's methods. These callbacks can act
before a method or after it, and have to option of short-circuiting the
call to the WWW::Mechanize::Pluggable method altogether.
These methods receive whatever parameters the WWW::Mechanize::Pluggable
methods received, plus a reference to the actvive Mech object.
All other extensions to WWW::Mechanize::Pluggable are handled by the
plugins.
WWW: http://search.cpan.org/dist/WWW-Mechanize-Pluggable
Author: Joe McMahon

View file

@ -0,0 +1,9 @@
%%SITE_PERL%%/WWW/Mechanize/Pluggable.pm
%%SITE_PERL%%/WWW/Mechanize/Plugin/HelloWorld.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Mechanize/Pluggable/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Mechanize/Pluggable
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Mechanize
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW
@dirrmtry %%SITE_PERL%%/WWW/Mechanize/Plugin
@dirrmtry %%SITE_PERL%%/WWW/Mechanize
@dirrmtry %%SITE_PERL%%/WWW