mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[expected-lite] Add new port (0.3.0) (#6642)
This commit is contained in:
parent
2e5e4818ea
commit
a0108b7153
3
ports/expected-lite/CONTROL
Normal file
3
ports/expected-lite/CONTROL
Normal 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
|
31
ports/expected-lite/portfile.cmake
Normal file
31
ports/expected-lite/portfile.cmake
Normal 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
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user