aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vcpkg-tool-ninja/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/vcpkg-tool-ninja/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vcpkg-tool-ninja/portfile.cmake')
-rw-r--r--vcpkg/ports/vcpkg-tool-ninja/portfile.cmake30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/vcpkg-tool-ninja/portfile.cmake b/vcpkg/ports/vcpkg-tool-ninja/portfile.cmake
new file mode 100644
index 0000000..2c78808
--- /dev/null
+++ b/vcpkg/ports/vcpkg-tool-ninja/portfile.cmake
@@ -0,0 +1,30 @@
+set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled)
+
+vcpkg_download_distfile(
+ LONG_PATH_PATCH
+ URLS "https://patch-diff.githubusercontent.com/raw/ninja-build/ninja/pull/2056.diff?full_index=1" # stable?
+ FILENAME 2056.diff
+ SHA512 3c840b19d51a2c145561e3026aee503eccffcc2d1f28db6d848a504c8e163b699fd09cafcfd326a1a95e08f76ec3b07860e2658386229af2bc2573b615cf2fed
+)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ninja-build/ninja
+ REF 170c387a7461d476523ae29c115a58f16e4d3430
+ SHA512 75c0f263ad325d14c99c9a1d85e571832407b481271a2733e78183a478f7ecd22d84451fc8d7ce16ab20d641ce040761d7ab266695d66bbac5b2b9a3a29aa521
+ HEAD_REF master
+ PATCHES
+ "${LONG_PATH_PATCH}" # Long path support windows
+ use-internal-re2c.patch
+)
+set(VCPKG_BUILD_TYPE release) #we only need release here!
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_copy_tools(
+ TOOL_NAMES ninja
+ DESTINATION "${CURRENT_PACKAGES_DIR}/tools/ninja"
+ AUTO_CLEAN
+)
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-port-config.cmake" @ONLY)