[llnl-units] update to 0.13.0 (#44971)

This commit is contained in:
toge 2025-04-15 05:04:07 +09:00 committed by GitHub
parent 5556d50331
commit 8f2716e4df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 27 additions and 4 deletions

View File

@ -2,13 +2,20 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO LLNL/units
REF "v${VERSION}"
SHA512 b0c40248a25adff97d3bd6eb6899bf7ed9a4622857a6eb0d62d040db6e60141fac201362710bbe417d8c284adcec89f8742815fcf17f30557e822d8f4e08fc4e
SHA512 4b847cbf0d09ad39185058f95286dd4db95a123b399af707440cc22b5d8d7efd67741e610170e14aa744935a9ec9b58aa782ffd32fbf7366df473e40f2c318cd
HEAD_REF main
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tools UNITS_BUILD_CONVERTER_APP
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DUNITS_CMAKE_PROJECT_NAME=LLNL-UNITS
-DUNITS_ENABLE_TESTS=OFF
-DUNITS_BUILD_FUZZ_TARGETS=OFF
@ -18,6 +25,11 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME llnl-units CONFIG_PATH lib/cmake/llnl-units)
if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES units_convert AUTO_CLEAN)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -1,6 +1,6 @@
{
"name": "llnl-units",
"version": "0.9.1",
"version": "0.13.1",
"description": "A run-time C++ library for working with units of measurement and conversions between them and with string representations of units and measurements",
"homepage": "https://github.com/LLNL/units",
"dependencies": [
@ -12,5 +12,11 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"tools": {
"description": "Build the command line tool",
"supports": "!uwp"
}
}
}

View File

@ -5709,7 +5709,7 @@
"port-version": 0
},
"llnl-units": {
"baseline": "0.9.1",
"baseline": "0.13.1",
"port-version": 0
},
"llvm": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e932658fccacda8567de8356c25fda00271707a2",
"version": "0.13.1",
"port-version": 0
},
{
"git-tree": "b74d9e624d6529738d4d2bb97541dfb2b4097033",
"version": "0.9.1",