diff --git a/www/tidy-html5/Makefile b/www/tidy-html5/Makefile
index 555f27aea4db..f41c84d8ce76 100644
--- a/www/tidy-html5/Makefile
+++ b/www/tidy-html5/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= tidy-html5
-PORTVERSION= 4.9.26
+PORTVERSION= 4.9.28
CATEGORIES= www
MAINTAINER= thierry@FreeBSD.org
@@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
USE_GITHUB= yes
GH_ACCOUNT= htacg
GH_PROJECT= ${PORTNAME}
-GH_TAGNAME= 4a4f209
+GH_TAGNAME= 8a2a5cc
USES= cmake
USE_GNOME= libxslt
@@ -22,6 +22,8 @@ USE_LDCONFIG= yes
CMAKE_ARGS= -DBUILD_SHARED_LIB:BOOL=ON
+PLIST_SUB= VER=${PORTVERSION}
+
pre-configure:
${REINPLACE_CMD} -e 's|build/cmake/||' ${WRKSRC}/test/testone.sh
diff --git a/www/tidy-html5/distinfo b/www/tidy-html5/distinfo
index f33168d1c95c..5a67b6badb95 100644
--- a/www/tidy-html5/distinfo
+++ b/www/tidy-html5/distinfo
@@ -1,2 +1,2 @@
-SHA256 (htacg-tidy-html5-4.9.26-4a4f209_GH0.tar.gz) = 22b988387d74574666ec86bb425ad5373c8eef66579e17d23007756a3da65123
-SIZE (htacg-tidy-html5-4.9.26-4a4f209_GH0.tar.gz) = 509620
+SHA256 (htacg-tidy-html5-4.9.28-8a2a5cc_GH0.tar.gz) = 66197e3583a2d873830349367ec219c8b170366a74819c874555bc2d2c0e6de4
+SIZE (htacg-tidy-html5-4.9.28-8a2a5cc_GH0.tar.gz) = 663403
diff --git a/www/tidy-html5/files/patch-CMakeLists.txt b/www/tidy-html5/files/patch-CMakeLists.txt
index e65f37a645fb..36710cc00a79 100644
--- a/www/tidy-html5/files/patch-CMakeLists.txt
+++ b/www/tidy-html5/files/patch-CMakeLists.txt
@@ -1,24 +1,11 @@
---- CMakeLists.txt.orig 2015-04-25 17:20:16 UTC
+--- CMakeLists.txt.orig 2015-05-20 18:09:57 UTC
+++ CMakeLists.txt
-@@ -183,9 +183,9 @@ if (UNIX)
- ## also could use `manpath` command output to determine target install path
- message(STATUS "*** Generating man ***")
- set(TIDY_MANFILE ${LIB_NAME}.1)
-- set(TIDY1XSL ../documentation/tidy1.xsl)
-- set(TIDYHELP ${CMAKE_BINARY_DIR}/tidy-help.xml)
-- set(TIDYCONFIG ${CMAKE_BINARY_DIR}/tidy-config.xml)
-+ set(TIDY1XSL build/documentation/tidy1.xsl)
-+ set(TIDYHELP ./tidy-help.xml)
-+ set(TIDYCONFIG ./tidy-config.xml)
- add_custom_target(man ALL DEPENDS "${CMAKE_BINARY_DIR}/${LIB_NAME}")
-
- # run built EXE to generate xml output
-@@ -213,7 +213,7 @@ if (UNIX)
- VERBATIM
- )
-
-- install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION share/man/man1)
-+ install(FILES ${CMAKE_BINARY_DIR}/${TIDY_MANFILE} DESTINATION man/man1)
- endif ()
+@@ -24,7 +24,7 @@ option( BUILD_SHARED_LIB "Set ON to buil
+ option( BUILD_TAB2SPACE "Set ON to build utility app, tab2space" OFF )
+ option( BUILD_SAMPLE_CODE "Set ON to build the sample code" OFF )
+ if (NOT MAN_INSTALL_DIR)
+- set(MAN_INSTALL_DIR share/man/man1)
++ set(MAN_INSTALL_DIR man/man1)
endif ()
+ option( BUILD_DOCUMENTATION "Set ON to build the documentation" OFF )
diff --git a/www/tidy-html5/pkg-plist b/www/tidy-html5/pkg-plist
index 7b4875aa5b83..1eb930105d77 100644
--- a/www/tidy-html5/pkg-plist
+++ b/www/tidy-html5/pkg-plist
@@ -5,5 +5,5 @@ include/tidy.h
include/tidyenum.h
lib/libtidy5.so
lib/libtidy5.so.4
-lib/libtidy5.so.4.9.26
+lib/libtidy5.so.%%VER%%
man/man1/tidy5.1.gz