aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mstch
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/mstch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/mstch')
-rw-r--r--vcpkg/ports/mstch/do-not-force-release.patch25
-rw-r--r--vcpkg/ports/mstch/portfile.cmake24
-rw-r--r--vcpkg/ports/mstch/vcpkg.json18
3 files changed, 67 insertions, 0 deletions
diff --git a/vcpkg/ports/mstch/do-not-force-release.patch b/vcpkg/ports/mstch/do-not-force-release.patch
new file mode 100644
index 0000000..63916f5
--- /dev/null
+++ b/vcpkg/ports/mstch/do-not-force-release.patch
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8d8e0c7..4304ad7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,17 +5,17 @@ option(WITH_UNIT_TESTS "enable building unit test executable" OFF)
+ option(WITH_BENCHMARK "enable building benchmark executable" OFF)
+
+ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+-set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
+-set(CMAKE_BUILD_TYPE Release)
+
+ set(mstch_VERSION 1.0.1)
+
+ if(NOT MSVC)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -O3")
++ set(CMAKE_CXX_STANDARD 11)
+ endif()
+
+ add_subdirectory(src)
+
++target_include_directories(mstch PUBLIC $<INSTALL_INTERFACE:include>)
++
+ if(WITH_UNIT_TESTS)
+ enable_testing()
+ add_subdirectory(vendor/headerize)
diff --git a/vcpkg/ports/mstch/portfile.cmake b/vcpkg/ports/mstch/portfile.cmake
new file mode 100644
index 0000000..9497861
--- /dev/null
+++ b/vcpkg/ports/mstch/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO no1msd/mstch
+ REF ff459067bd02e80dc399006bb610238223d41c50 #1.0.2
+ SHA512 b01f4c3e39a40fc9a6accc81ecbfac4b8a9ce1c2ec3df441a16039f4bf126dfeef83f87d3a5e9ec03dc133a1c5f54f5bc931479915e8a92bbfc8ebbc87c8e4dd
+ HEAD_REF master
+ PATCHES do-not-force-release.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mstch)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/mstch/vcpkg.json b/vcpkg/ports/mstch/vcpkg.json
new file mode 100644
index 0000000..405d70e
--- /dev/null
+++ b/vcpkg/ports/mstch/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "mstch",
+ "version": "1.0.2",
+ "port-version": 5,
+ "description": "Mstch is a complete implementation of {{mustache}} templates using modern C++",
+ "homepage": "https://github.com/no1msd/mstch",
+ "dependencies": [
+ "boost-variant",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}