[variant-lite] Add new port (1.2.2, was: 1.2.1) (#6720)

* [variant-lite] Add new port (1.2.1)

* [variant-lite] Add new port (1.2.2, was: 1.2.1)
This commit is contained in:
Martin Moene 2019-06-04 11:21:22 +02:00 committed by Robert Schumacher
parent f36b356ce9
commit 99ee8b71a8
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Source: variant-lite
Version: 1.2.2
Description: A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library

View File

@ -0,0 +1,31 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/variant-lite
REF v1.2.2
SHA512 f0a0760b858d5fdd3cbd6be29e64fdca69222c4e3f6f4f856fa99e7352ede817648c6d698ebde25dec10bf99fc304b1b5ce232c5ffd4fab12aaf444b68c04f02
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DVARIANT_LITE_OPT_BUILD_TESTS=OFF
-DVARIANT_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
)