diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/nonstd-bit-lite | |
Diffstat (limited to 'vcpkg/ports/nonstd-bit-lite')
| -rw-r--r-- | vcpkg/ports/nonstd-bit-lite/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/nonstd-bit-lite/vcpkg.json | 17 |
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/nonstd-bit-lite/portfile.cmake b/vcpkg/ports/nonstd-bit-lite/portfile.cmake new file mode 100644 index 0000000..6d73c02 --- /dev/null +++ b/vcpkg/ports/nonstd-bit-lite/portfile.cmake @@ -0,0 +1,29 @@ +set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO nonstd-lite/bit-lite
+ REF "v${VERSION}"
+ SHA512 96706a536891cdeaa7a3c2285a610b0fcf0a7096fe89aca8eef6d8c8db89c71263d3eaa2fc97cdd80992a0ce196a0e3aaa979b48e452820302fd7db891c7b761
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBIT_LITE_OPT_BUILD_TESTS=OFF
+ -DBIT_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME bit-lite
+ CONFIG_PATH lib/cmake/bit-lite
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/nonstd-bit-lite/vcpkg.json b/vcpkg/ports/nonstd-bit-lite/vcpkg.json new file mode 100644 index 0000000..fef390c --- /dev/null +++ b/vcpkg/ports/nonstd-bit-lite/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "nonstd-bit-lite", + "version": "1.2.0", + "description": "C++20/C++23 bit operations for C++98 and later in a single-file header-only library", + "homepage": "https://github.com/nonstd-lite/bit-lite", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |