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:
parent
ac04cdaac3
commit
ab35a4fd2e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78000
@ -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
|
||||
|
41
www/p5-WWW-Mechanize/Makefile
Normal file
41
www/p5-WWW-Mechanize/Makefile
Normal 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>
|
1
www/p5-WWW-Mechanize/distinfo
Normal file
1
www/p5-WWW-Mechanize/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (WWW-Mechanize-0.39.tar.gz) = 5fd8530ab187b1d37d385b7c8ba02c45
|
9
www/p5-WWW-Mechanize/pkg-descr
Normal file
9
www/p5-WWW-Mechanize/pkg-descr
Normal 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>
|
5
www/p5-WWW-Mechanize/pkg-plist
Normal file
5
www/p5-WWW-Mechanize/pkg-plist
Normal 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
|
Loading…
Reference in New Issue
Block a user