diff options
| author | Daniil Dudkin <39276703+unterumarmung@users.noreply.github.com> | 2020-11-30 22:37:18 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 10:37:18 -0800 |
| commit | 1e9243799ea08e84c1b2a1b283fceb4e9d802458 (patch) | |
| tree | e6b78282e0c2772c786ab5b524d04a05575206c5 /ports | |
| parent | a61ae4f9d6c094d6c9736dfe29030e9952f0eaad (diff) | |
| download | vcpkg-1e9243799ea08e84c1b2a1b283fceb4e9d802458.tar.gz vcpkg-1e9243799ea08e84c1b2a1b283fceb4e9d802458.zip | |
[fixed-string] Add library (#14770)
* [fixed-string] Add library
* [fixed-string] Added new lines to files
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/fixed-string/CONTROL | 4 | ||||
| -rw-r--r-- | ports/fixed-string/portfile.cmake | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/fixed-string/CONTROL b/ports/fixed-string/CONTROL new file mode 100644 index 000000000..935b0ff1d --- /dev/null +++ b/ports/fixed-string/CONTROL @@ -0,0 +1,4 @@ +Source: fixed-string
+Version: 0.1.0
+Description: Header-only C++17 library provides a string class with std::array fixed-size semantic.
+Homepage: https://github.com/unterumarmung/fixed_string
diff --git a/ports/fixed-string/portfile.cmake b/ports/fixed-string/portfile.cmake new file mode 100644 index 000000000..760d2d0a6 --- /dev/null +++ b/ports/fixed-string/portfile.cmake @@ -0,0 +1,27 @@ +# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO unterumarmung/fixed_string
+ REF v0.1.0
+ SHA512 759c228e3bc4bc06d58b59bc19756ceb27a6f6104cb0c58288bf3156ca0958e6099741870fa09ba88a5572d17988529992cc5198faab30847118665e626c2ea4
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DFIXED_STRING_OPT_BUILD_EXAMPLES=OFF
+ -DFIXED_STRING_OPT_BUILD_TESTS=OFF
+ -DFIXED_STRING_OPT_INSTALL=ON
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/fixed_string TARGET_PATH share/fixed_string)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
