aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/eljonny-testcpp/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/eljonny-testcpp/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/eljonny-testcpp/portfile.cmake')
-rw-r--r--vcpkg/ports/eljonny-testcpp/portfile.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/eljonny-testcpp/portfile.cmake b/vcpkg/ports/eljonny-testcpp/portfile.cmake
new file mode 100644
index 0000000..d647d69
--- /dev/null
+++ b/vcpkg/ports/eljonny-testcpp/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eljonny/TestCPP
+ REF "v${VERSION}"
+ SHA512 a47803b2e36cc5ed6055d27865d61225368daaebefe615d22afb2055b4da6ff44a8da8a4bee72f7f35bb9a53ebc12229143b16401391cef130818f105a42df3e
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ DO_NOT_DELETE_PARENT_CONFIG_PATH
+ CONFIG_PATH "lib/cmake"
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)