aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/plustache
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/plustache
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/plustache')
-rw-r--r--vcpkg/ports/plustache/CMakeLists.txt39
-rw-r--r--vcpkg/ports/plustache/portfile.cmake24
-rw-r--r--vcpkg/ports/plustache/vcpkg.json14
3 files changed, 77 insertions, 0 deletions
diff --git a/vcpkg/ports/plustache/CMakeLists.txt b/vcpkg/ports/plustache/CMakeLists.txt
new file mode 100644
index 0000000..b6bd403
--- /dev/null
+++ b/vcpkg/ports/plustache/CMakeLists.txt
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+project(plustache LANGUAGES CXX)
+
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+find_package(Boost REQUIRED COMPONENTS regex)
+
+add_library(
+ plustache
+
+ src/template.cpp
+ src/context.cpp
+ )
+
+
+target_include_directories(
+ plustache
+
+ PUBLIC
+ ${CMAKE_CURRENT_LIST_DIR}/include
+ PRIVATE
+ ${Boost_INCLUDE_DIRS}
+)
+
+target_link_libraries(
+ plustache
+
+ PRIVATE
+ ${Boost_LIBRARIES}
+)
+
+
+install(TARGETS plustache
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+ )
+install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/include/plustache DESTINATION include)
diff --git a/vcpkg/ports/plustache/portfile.cmake b/vcpkg/ports/plustache/portfile.cmake
new file mode 100644
index 0000000..081ff4d
--- /dev/null
+++ b/vcpkg/ports/plustache/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mrtazz/plustache
+ REF 3208529343e1858cfe504041be8c1fa0af0a59d1
+ SHA512 8d9ae368b2f276da2faaf4e3b543fc7ded88ebd8fbe33544aa7d85765a38d085d4c31bb68f6a2f73d4f660da1618d187fb94c74a5f6594e7642bf3949707c67b
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+#Debug
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/plustache/vcpkg.json b/vcpkg/ports/plustache/vcpkg.json
new file mode 100644
index 0000000..ebf1577
--- /dev/null
+++ b/vcpkg/ports/plustache/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "plustache",
+ "version": "0.4.0",
+ "port-version": 5,
+ "description": "{{mustaches}} for C++",
+ "dependencies": [
+ "boost-algorithm",
+ "boost-regex",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}