aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tidy-html5/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tidy-html5/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tidy-html5/portfile.cmake')
-rw-r--r--vcpkg/ports/tidy-html5/portfile.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/vcpkg/ports/tidy-html5/portfile.cmake b/vcpkg/ports/tidy-html5/portfile.cmake
new file mode 100644
index 0000000..c6b9486
--- /dev/null
+++ b/vcpkg/ports/tidy-html5/portfile.cmake
@@ -0,0 +1,34 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO htacg/tidy-html5
+ REF 5.8.0
+ SHA512 f352165bdda5d1fca7bba3365560b64d6f70a4e010821cd246cde43bed5c23cea3408d461d3f889110fd35ec9b68aa2b4e95412b07775eb852b7ee1745007a44
+ HEAD_REF master
+ PATCHES
+ disable-doc.patch
+ static-vs-shared.patch
+ debug-postfix.patch
+ fix_unsupport_func_uwp.patch
+ cmake_find_package_support.patch
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIB)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ NO_CHARSET_FLAG
+ OPTIONS
+ -DBUILD_SHARED_LIB=${BUILD_SHARED_LIB}
+ -DTIDY_CONSOLE_SHARED=${BUILD_SHARED_LIB}
+)
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-tidy-html5 CONFIG_PATH lib/cmake/unofficial-tidy-html5)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/bin/tidyd${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
+)
+
+vcpkg_copy_tools(TOOL_NAMES tidy AUTO_CLEAN)
+
+file(INSTALL "${SOURCE_PATH}/README/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)