SUMMARY="Tidies the layout and correct errors in HTML and XML documents" DESCRIPTION="Tidy tidies HTML and XML. It can tidy your documents by itself, \ and developers can easily integrate its features into even more powerful tools." HOMEPAGE="http://www.html-tidy.org/" COPYRIGHT="1998-2022 World Wide Web Consortium" LICENSE="MIT" REVISION="1" SOURCE_URI="https://github.com/htacg/tidy-html5/archive/$portVersion.tar.gz" CHECKSUM_SHA256="59c86d5b2e452f63c5cdb29c866a12a4c55b1741d7025cf2f3ce0cde99b0660e" SOURCE_DIR="tidy-html5-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= 58" PROVIDES=" tidy$secondaryArchSuffix = $portVersion cmd:tidy = $portVersion lib:libtidy$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix " PROVIDES_devel=" tidy${secondaryArchSuffix}_devel = $portVersion devel:libtidy$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" tidy$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:cmake cmd:make " defineDebugInfoPackage tidy$secondaryArchSuffix \ $libDir/libtidy.so.$libVersion BUILD() { cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=$prefix \ -DLIB_INSTALL_DIR=$libDir \ -DINCLUDE_INSTALL_DIR=$includeDir \ -DMAN_INSTALL_DIR=$manDir/man1 make -C build $jobArgs } INSTALL() { make -C build install prepareInstalledDevelLib libtidy fixPkgconfig packageEntries devel \ $developDir } TEST() { ./build/tidy --version }