1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add www/p5-WWW-Mechanize, a perl module to help you automate interaction

with a website.
This commit is contained in:
Anton Berezin 2003-04-02 20:12:08 +00:00
parent ac04cdaac3
commit ab35a4fd2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78000
5 changed files with 57 additions and 0 deletions

View File

@ -357,6 +357,7 @@
SUBDIR += p5-WWW-Babelfish
SUBDIR += p5-WWW-IMDb
SUBDIR += p5-WWW-Link
SUBDIR += p5-WWW-Mechanize
SUBDIR += p5-WWW-Robot
SUBDIR += p5-WWW-Search
SUBDIR += p5-WWW-Search-AltaVista

View File

@ -0,0 +1,41 @@
# New ports collection makefile for: www/p5-WWW-Mechanize
# Date created: 02 April 2003
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= WWW-Mechanize
PORTVERSION= 0.39
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= WWW
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= This module is to help you automate interaction with a website
BUILD_DEPENDS= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= WWW::Mechanize.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif
post-patch:
${PERL} -pi \
-e 's/^our\s+([\$$\@]\w+)/use vars qw($$1);$$1/;' \
-e 's/^our\s+([\%]\w+)/use vars qw($$1)/;' \
-e '$$_="" if /require 5/;' \
-e '$$_="" if /use warnings/;' \
${WRKSRC}/lib/WWW/Mechanize.pm
.include <bsd.port.post.mk>

View File

@ -0,0 +1 @@
MD5 (WWW-Mechanize-0.39.tar.gz) = 5fd8530ab187b1d37d385b7c8ba02c45

View File

@ -0,0 +1,9 @@
WWW::Mechanize is a fork of Kirrily Robert's excellent WWW::Automate
module. W::A works fine except for some memory-eating bugs that the
author of this module has fixed.
Author: Andy Lester <andy@petdance.com>
WWW: http://search.cpan.org/search?dist=WWW-Mechanize
-Anton
<tobez@FreeBSD.org>

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/i386-freebsd/auto/WWW/Mechanize/.packlist
%%SITE_PERL%%/WWW/Mechanize.pm
@unexec rmdir %D/%%SITE_PERL%%/i386-freebsd/auto/WWW/Mechanize 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/i386-freebsd/auto/WWW 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/WWW 2>/dev/null || true