aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ctemplate/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/ctemplate/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ctemplate/portfile.cmake')
-rw-r--r--vcpkg/ports/ctemplate/portfile.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/ctemplate/portfile.cmake b/vcpkg/ports/ctemplate/portfile.cmake
new file mode 100644
index 0000000..5377c9d
--- /dev/null
+++ b/vcpkg/ports/ctemplate/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO OlafvdSpek/ctemplate
+ REF 1c397b63e62dc6547054f4711c27918aedce4c2d # accessed on 2020-09-14
+ SHA512 9691393cbb89972e95dba3cb802d0a0379f8f45cddc696e4ce223eb94887b3be46a9d999cac161069261ef63ba26fbdc392c53c3f977e1a7ae51768caa7739ea
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_find_acquire_program(PYTHON3)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}"
+ OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
+)
+
+vcpkg_cmake_install()
+
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ctemplate" RENAME copyright)
+
+vcpkg_copy_pdbs()