diff options
| author | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-05-31 03:26:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 03:26:07 -0700 |
| commit | fb36b4e17c134796bf8e31bf908c2a0c6b2fefc4 (patch) | |
| tree | a4e37235838247e2f7e242cdbede1dbc93a080c7 | |
| parent | 216c526cc7039309c3fcbcc5f267801bc7dfeab8 (diff) | |
| parent | 6e1bc8fac05cee80cc64fbbf2f7de3dee1c5adec (diff) | |
| download | vcpkg-fb36b4e17c134796bf8e31bf908c2a0c6b2fefc4.tar.gz vcpkg-fb36b4e17c134796bf8e31bf908c2a0c6b2fefc4.zip | |
Merge pull request #6703 from martinmoene/span-lite-0.5.0
[span-lite] Add new port (0.5.0)
| -rw-r--r-- | ports/span-lite/CONTROL | 3 | ||||
| -rw-r--r-- | ports/span-lite/portfile.cmake | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/span-lite/CONTROL b/ports/span-lite/CONTROL new file mode 100644 index 000000000..e7001a83a --- /dev/null +++ b/ports/span-lite/CONTROL @@ -0,0 +1,3 @@ +Source: span-lite
+Version: 0.5.0
+Description: A C++20-like span for C++98, C++11 and later in a single-file header-only library
diff --git a/ports/span-lite/portfile.cmake b/ports/span-lite/portfile.cmake new file mode 100644 index 000000000..ad53591bd --- /dev/null +++ b/ports/span-lite/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/span-lite
+ REF v0.5.0
+ SHA512 4221d9897736257077b8ff6a5246d70315bebb975a30a119778f22c1859d14cca5e3035447561ca9684bef6dbca5a00b3b5ca208dada4fcf1f3b31df2aa0cb1f
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DSPAN_LITE_OPT_BUILD_TESTS=OFF
+ -DSPAN_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(
+ 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
+)
|
