Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llnl-units] Add new port #37417

Merged
merged 5 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions ports/llnl-units/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO LLNL/units
REF "v${VERSION}"
SHA512 b0c40248a25adff97d3bd6eb6899bf7ed9a4622857a6eb0d62d040db6e60141fac201362710bbe417d8c284adcec89f8742815fcf17f30557e822d8f4e08fc4e
HEAD_REF main
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DUNITS_CMAKE_PROJECT_NAME=LLNL-UNITS
-DUNITS_ENABLE_TESTS=OFF
-DUNITS_BUILD_FUZZ_TARGETS=OFF
-DLLNL-UNITS_ENABLE_ERROR_ON_WARNINGS=OFF
-DLLNL-UNITS_ENABLE_EXTRA_COMPILER_WARNINGS=OFF
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME llnl-units CONFIG_PATH lib/cmake/llnl-units)
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}")
4 changes: 4 additions & 0 deletions ports/llnl-units/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
llnl-units provides CMake targets:

find_package(llnl-units CONFIG REQUIRED)
target_link_libraries(main PRIVATE llnl-units::units)
16 changes: 16 additions & 0 deletions ports/llnl-units/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "llnl-units",
"version": "0.9.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": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5344,6 +5344,10 @@
"baseline": "9.2.0",
"port-version": 0
},
"llnl-units": {
"baseline": "0.9.1",
"port-version": 0
},
"llvm": {
"baseline": "17.0.2",
"port-version": 3
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/llnl-units.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b74d9e624d6529738d4d2bb97541dfb2b4097033",
"version": "0.9.1",
"port-version": 0
}
]
}
Loading