aboutsummaryrefslogtreecommitdiff
path: root/www/p5-WWW-Mechanize/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-WWW-Mechanize/Makefile')
-rw-r--r--www/p5-WWW-Mechanize/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/p5-WWW-Mechanize/Makefile b/www/p5-WWW-Mechanize/Makefile
index f04d23c8ed54..411c046c9a3f 100644
--- a/www/p5-WWW-Mechanize/Makefile
+++ b/www/p5-WWW-Mechanize/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= WWW-Mechanize
-PORTVERSION= 1.04
-PORTREVISION= 1
+PORTVERSION= 1.08
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= WWW
@@ -36,9 +35,11 @@ BUILD_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
post-patch:
- ${PERL} -pi \
+ @${PERL} -pi \
-e 's/^our\s+([\$$\@]\w+)/use vars qw($$1);$$1/;' \
-e 's/^our\s+([\%]\w+)/use vars qw($$1)/;' \
+ -e 's/(?:my )?\$$fh/FH/;' \
+ -e 's/FH, ">",/FH, ">"./;' \
-e '$$_="" if /use warnings/;' \
${WRKSRC}/lib/WWW/Mechanize.pm ${WRKSRC}/lib/WWW/Mechanize/Link.pm
.endif