summaryrefslogtreecommitdiff
path: root/www/p5-WWW-Mechanize/Makefile
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2003-04-02 20:12:08 +0000
committerAnton Berezin <tobez@FreeBSD.org>2003-04-02 20:12:08 +0000
commitab35a4fd2e4dd87c395cdab4dcaaea697f456e42 (patch)
tree0f601351233d5f6ab6109a81103f983bf1e462d6 /www/p5-WWW-Mechanize/Makefile
parentUpdate to 5.69. (diff)
Add www/p5-WWW-Mechanize, a perl module to help you automate interaction
with a website.
Notes
Notes: svn path=/head/; revision=78000
Diffstat (limited to 'www/p5-WWW-Mechanize/Makefile')
-rw-r--r--www/p5-WWW-Mechanize/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/www/p5-WWW-Mechanize/Makefile b/www/p5-WWW-Mechanize/Makefile
new file mode 100644
index 000000000000..be64d282cc63
--- /dev/null
+++ b/www/p5-WWW-Mechanize/Makefile
@@ -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>