diff --git a/www/p5-HTML-Tree/Makefile b/www/p5-HTML-Tree/Makefile
index f6dd02265c63..41db28ce1082 100644
--- a/www/p5-HTML-Tree/Makefile
+++ b/www/p5-HTML-Tree/Makefile
@@ -6,11 +6,12 @@
#
PORTNAME= HTML-Tree
-PORTVERSION= 3.18
+PORTVERSION= 3.19.01
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
PKGNAMEPREFIX= p5-
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(..)$/\1/}
MAINTAINER= demon@FreeBSD.org
COMMENT= A collection of modules to manupulate HTML syntax trees
@@ -20,10 +21,16 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
-MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= HTML::Parse.3 HTML::TreeBuilder.3 HTML::AsSubs.3 \
HTML::Element.3 HTML::Element::traverse.3 HTML::Tree.3 \
HTML::Tree::Scanning.3 HTML::Tree::AboutObjects.3 \
HTML::Tree::AboutTrees.3
-.include
+.include
+
+# p5-HTML-Tree -> p5-HTML-Parser
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires perl 5.6 or above
+.endif
+
+.include
diff --git a/www/p5-HTML-Tree/distinfo b/www/p5-HTML-Tree/distinfo
index ef2a6a949e24..f54c7e5a81fd 100644
--- a/www/p5-HTML-Tree/distinfo
+++ b/www/p5-HTML-Tree/distinfo
@@ -1,2 +1,3 @@
-MD5 (HTML-Tree-3.18.tar.gz) = 6a9e4e565648c9772e7d8ec6d4392497
-SIZE (HTML-Tree-3.18.tar.gz) = 116025
+MD5 (HTML-Tree-3.1901.tar.gz) = 9b41dfed97605891829746433e6d2d7b
+SHA256 (HTML-Tree-3.1901.tar.gz) = 93e6be61de0e00d6bcbcda1b061a366770261da34f680847f32a915877140894
+SIZE (HTML-Tree-3.1901.tar.gz) = 119220