mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[status-value-lite, type-lite, value-ptr-lite] Add new ports (#7563)
* [status-value-lite, type-lite, value-ptr-lite] Add new ports
This commit is contained in:
parent
92c26a2527
commit
f9fa4dc19a
7
ports/status-value-lite/CONTROL
Normal file
7
ports/status-value-lite/CONTROL
Normal file
@ -0,0 +1,7 @@
|
||||
Source: status-value-lite
|
||||
Version: 1.1.0
|
||||
Homepage: https://github.com/martinmoene/status-value-lite
|
||||
Description: status_value is a single-file header-only library for objects that represent a status and an optional value. It is intended for use with C++11 and later.
|
||||
|
||||
Feature: test
|
||||
Description: Build with test
|
32
ports/status-value-lite/portfile.cmake
Normal file
32
ports/status-value-lite/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/status-value-lite
|
||||
REF v1.1.0
|
||||
SHA512 09cad9f40f2b1592316b374e0d1a206e3a79a1c560a2ae3be3bdae9045fa026435cc29f1eee08e26e29a5499f8dc60e485adc50517a827977678d3a5a6e220d2
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
test BUILD_TESTS
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DNSSV_OPT_BUILD_TESTS=${BUILD_TESTS}
|
||||
-DNSSV_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/status_value-lite)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
9
ports/type-lite/CONTROL
Normal file
9
ports/type-lite/CONTROL
Normal file
@ -0,0 +1,9 @@
|
||||
Source: type-lite
|
||||
Version: 0.1.0
|
||||
Homepage: https://github.com/martinmoene/type-lite
|
||||
Description: Strong types for C++98, C++11 and later in a single-file header-only library.
|
||||
|
||||
Feature: test
|
||||
Description: Build with test
|
||||
|
||||
|
32
ports/type-lite/portfile.cmake
Normal file
32
ports/type-lite/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/type-lite
|
||||
REF v0.1.0
|
||||
SHA512 5a5ea623890af9c88c7f82869278af743e08b3dbda3c48c4523737244a7da76d2509501b4502efc2226aaef5df72b6ff69cd6b5b36c8cfc282b8c8406525016b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
test BUILD_TESTS
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DTYPE_LITE_OPT_BUILD_TESTS=${BUILD_TESTS}
|
||||
-DTYPE_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
7
ports/value-ptr-lite/CONTROL
Normal file
7
ports/value-ptr-lite/CONTROL
Normal file
@ -0,0 +1,7 @@
|
||||
Source: value-ptr-lite
|
||||
Version: 0.2.1
|
||||
Homepage: https://github.com/martinmoene/value-ptr-lite
|
||||
Description: A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library.
|
||||
|
||||
Feature: test
|
||||
Description: Build with test
|
32
ports/value-ptr-lite/portfile.cmake
Normal file
32
ports/value-ptr-lite/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/value-ptr-lite
|
||||
REF v0.2.1
|
||||
SHA512 96bea32310b3b3f91d19706d8ae9bdfa9a6ba485f529562e3b7cf89311d1e9b99fd24c0c6f23d169c5a7c84ebd9bd7b8ace972ee279b38c4c1caa398a3dd1590
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
test BUILD_TESTS
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DVALUE_PTR_LITE_OPT_BUILD_TESTS=${BUILD_TESTS}
|
||||
-DVALUE_PTR_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/value_ptr-lite)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
Loading…
x
Reference in New Issue
Block a user