aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/any-lite
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/any-lite
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/any-lite')
-rw-r--r--vcpkg/ports/any-lite/portfile.cmake21
-rw-r--r--vcpkg/ports/any-lite/vcpkg.json15
2 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/ports/any-lite/portfile.cmake b/vcpkg/ports/any-lite/portfile.cmake
new file mode 100644
index 0000000..a1b509d
--- /dev/null
+++ b/vcpkg/ports/any-lite/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/any-lite
+ REF d45a83b8e49d09ff5e5b66c10a56c997946436d9 #v0.4.0
+ SHA512 b73fe2d1e6de24e143337ef72f71949bf2ae4157a58a5c7e45dd0e9412dd798da6ef929fa09d104305483e769a603b37babd7ba65ab854a33483ab3ec8a921ec
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DANY_LITE_OPT_BUILD_TESTS=OFF
+ -DANY_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/any-lite/vcpkg.json b/vcpkg/ports/any-lite/vcpkg.json
new file mode 100644
index 0000000..31f836c
--- /dev/null
+++ b/vcpkg/ports/any-lite/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "any-lite",
+ "version-semver": "0.4.0",
+ "description": "A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}