[sebsjames maths] add new port (#46325)

This commit is contained in:
miyanyan
2025-07-09 18:25:27 +08:00
committed by GitHub
parent 09182e1ee4
commit f33cc491c8
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sebsjames/maths
REF "${VERSION}"
SHA512 bd1f44f2cb3cf14458a4c35052840cc19cd6a03058936853eedbd209fdb10012e74b2b51e7fc7a46e3e76861baf27e946a7e1e5feff545f81b255d9d4af4303e
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/maths)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@@ -0,0 +1,17 @@
{
"name": "sebsjames-maths",
"version": "1.0",
"description": "C++20 code for scalar, vector and complex maths.",
"homepage": "https://github.com/sebsjames/maths",
"license": "Apache-2.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@@ -8644,6 +8644,10 @@
"baseline": "1.4.6",
"port-version": 0
},
"sebsjames-maths": {
"baseline": "1.0",
"port-version": 0
},
"secp256k1": {
"baseline": "2022-07-11",
"port-version": 1

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7203305bdf6d65da04a581117b017ac447322b11",
"version": "1.0",
"port-version": 0
}
]
}