# $Id$
PNAME="htmltidy"
PVER="5.4.0"
PBUILD="r2"
PCAT="app-text"
DESCRIPTION="Tidy the layout and correct errors in HTML and XML documents."
HOMEPAGE="http://www.html-tidy.org/"
DEPEND=">= virtual/glibc"
SDEPEND="> dev-lib/libxslt-1.1"
SRCFILE="${PVER}.tar.gz"
SRCDIR="${BUILDDIR}/tidy-html5-${PVER}"
sminclude cmake mtools
SRC_URI=(
https://github.com/htacg/tidy-html5/archive/${SRCFILE}
mirror://${PNAME}/${SRCFILE}
)
# fake
UP2DATE="updatecmd https://github.com/htacg/tidy-html5/releases | highesttarball gz"
src_install()
{
cmake_src_install || die
# provide some compat symlinks
mlink tidybuffio.h /usr/include/buffio.h || die
mlink tidyplatform.h /usr/include/platform.h || die
}