diff options
| author | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-05-31 03:24:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 03:24:21 -0700 |
| commit | 216c526cc7039309c3fcbcc5f267801bc7dfeab8 (patch) | |
| tree | b87294b644a18d8e090fafacddd7e9ab4c5aea25 | |
| parent | dce22f1427dfa37c1e3fa97f5d1c40541e7a588d (diff) | |
| parent | e50061816da5ed580b968aef592035e062f0b772 (diff) | |
| download | vcpkg-216c526cc7039309c3fcbcc5f267801bc7dfeab8.tar.gz vcpkg-216c526cc7039309c3fcbcc5f267801bc7dfeab8.zip | |
Merge pull request #6629 from martinmoene/any-lite-0.2.0
[any-lite] Add new port (v0.2.0)
| -rw-r--r-- | ports/any-lite/CONTROL | 3 | ||||
| -rw-r--r-- | ports/any-lite/portfile.cmake | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/any-lite/CONTROL b/ports/any-lite/CONTROL new file mode 100644 index 000000000..6eaf3d167 --- /dev/null +++ b/ports/any-lite/CONTROL @@ -0,0 +1,3 @@ +Source: any-lite
+Version: 0.2.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
diff --git a/ports/any-lite/portfile.cmake b/ports/any-lite/portfile.cmake new file mode 100644 index 000000000..aba905134 --- /dev/null +++ b/ports/any-lite/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/any-lite
+ REF v0.2.0
+ SHA512 703900d7bac96d41f903b6cabba4bce15ef3cf7ef0a6a66de76230498ededff110e43d68d4a3fd6996869b2edd001f69bd53039a214d06b774ce99518f384a68
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DANY_LITE_OPT_BUILD_TESTS=OFF
+ -DANY_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
+)
|
