aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/spimpl
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/spimpl
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/spimpl')
-rw-r--r--vcpkg/ports/spimpl/portfile.cmake16
-rw-r--r--vcpkg/ports/spimpl/unofficial-spimpl-config.cmake8
-rw-r--r--vcpkg/ports/spimpl/vcpkg.json17
3 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/spimpl/portfile.cmake b/vcpkg/ports/spimpl/portfile.cmake
new file mode 100644
index 0000000..a64ac16
--- /dev/null
+++ b/vcpkg/ports/spimpl/portfile.cmake
@@ -0,0 +1,16 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oliora/samples
+ REF 58dead450bdac418fc55dfc512b8411556f51c0e
+ SHA512 a244364c3a58cb75709861cc8637dadeada0fbb4bc5fc52886a61d52623b3dab75ed5ccd73bed1a4384f66753fc3fd16e8cafde925fce760add084b4fffeca97
+ HEAD_REF master
+)
+
+file(INSTALL "${SOURCE_PATH}/spimpl.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-spimpl-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/spimpl.h")
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "[*]/.*" "*/" REGEX)
+
diff --git a/vcpkg/ports/spimpl/unofficial-spimpl-config.cmake b/vcpkg/ports/spimpl/unofficial-spimpl-config.cmake
new file mode 100644
index 0000000..e24dd36
--- /dev/null
+++ b/vcpkg/ports/spimpl/unofficial-spimpl-config.cmake
@@ -0,0 +1,8 @@
+if(NOT TARGET unofficial::spimpl::spimpl)
+ add_library(unofficial::spimpl::spimpl INTERFACE IMPORTED)
+ set_target_properties(
+ unofficial::spimpl::spimpl
+ PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include"
+ )
+endif()
diff --git a/vcpkg/ports/spimpl/vcpkg.json b/vcpkg/ports/spimpl/vcpkg.json
new file mode 100644
index 0000000..d3d694b
--- /dev/null
+++ b/vcpkg/ports/spimpl/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "spimpl",
+ "version-date": "2025-01-23",
+ "description": "A single-header C++ library for PIMPLs without having to implement any special member functions.",
+ "homepage": "https://github.com/oliora/samples",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}