aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/visit-struct
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/visit-struct
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/visit-struct')
-rw-r--r--vcpkg/ports/visit-struct/CMakeLists.txt17
-rw-r--r--vcpkg/ports/visit-struct/portfile.cmake24
-rw-r--r--vcpkg/ports/visit-struct/vcpkg.json16
3 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/ports/visit-struct/CMakeLists.txt b/vcpkg/ports/visit-struct/CMakeLists.txt
new file mode 100644
index 0000000..ffb69d2
--- /dev/null
+++ b/vcpkg/ports/visit-struct/CMakeLists.txt
@@ -0,0 +1,17 @@
+cmake_minimum_required(VERSION 3.11)
+project(visit_struct)
+
+add_library(visit_struct INTERFACE)
+
+install(TARGETS visit_struct
+ EXPORT unofficial-visit_struct-targets
+ INCLUDES DESTINATION include)
+
+install(EXPORT unofficial-visit_struct-targets
+ FILE unofficial-visit_struct-config.cmake
+ NAMESPACE unofficial::visit_struct::
+ DESTINATION share/unofficial-visit_struct)
+
+install(DIRECTORY
+ include/visit_struct
+ DESTINATION include)
diff --git a/vcpkg/ports/visit-struct/portfile.cmake b/vcpkg/ports/visit-struct/portfile.cmake
new file mode 100644
index 0000000..f10ab11
--- /dev/null
+++ b/vcpkg/ports/visit-struct/portfile.cmake
@@ -0,0 +1,24 @@
+#header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cbeck88/visit_struct
+ REF "v${VERSION}"
+ SHA512 8d1f93344ef13320bc7967cbe2696bf49d6773fe3c89ba10bcf8ee9c33be165f14086828f6195bad742fbe75fee9c0995827c455c777950df583ff8f13c21338
+ 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_cmake_config_fixup(PACKAGE_NAME unofficial-visit_struct)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/README.md"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/visit-struct/vcpkg.json b/vcpkg/ports/visit-struct/vcpkg.json
new file mode 100644
index 0000000..dd9880a
--- /dev/null
+++ b/vcpkg/ports/visit-struct/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "visit-struct",
+ "version": "1.1.0",
+ "description": "A header-only library providing structure visitors for C++11 and C++14",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}