[expected-lite] Add new port (0.3.0) (#6642)

This commit is contained in:
Martin Moene 2019-05-31 12:22:06 +02:00 committed by Griffin Downs
parent 2e5e4818ea
commit a0108b7153
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Source: expected-lite
Version: 0.3.0
Description: Expected objects in 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/expected-lite
REF v0.3.0
SHA512 b24b58ff7bd6d5f355935854b6b5e67c7e9b2f1b6383ecdd2a1655833f414fd1189a07000b40c45a6df8a8641602c5eca19eb5e8639ac6cfe59e3d94bc102ab3
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DEXPECTED_LITE_OPT_BUILD_TESTS=OFF
-DEXPECTED_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
)