[crossdb] add new port (#46182)

This commit is contained in:
toge 2025-06-28 05:30:06 +09:00 committed by GitHub
parent 288f1337f5
commit 813a779e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO crossdb-org/crossdb
REF "${VERSION}"
SHA512 ad0d1c4eb02016d4d1eb8b8f3dbbacc800c1ac02a2fd39e832225e7d17d4f9938da4b49cd6ca226555819a17bb23cdf8c6d5945eeb612fe8e7e140eedd902d8f
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
vcpkg_copy_tools(TOOL_NAMES xdb-cli DESTINATION "${CURRENT_PACKAGES_DIR}/tools" AUTO_CLEAN)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

6
ports/crossdb/usage Normal file
View File

@ -0,0 +1,6 @@
The package crossdb can be used via CMake:
find_path(CROSSDB_INCLUDE_DIR crossdb.h)
find_library(CROSSDB_LIBRARY NAMES crossdb)
target_include_directories(main PRIVATE "${CROSSDB_INCLUDE_DIR}")
target_link_libraries(main PRIVATE "${CROSSDB_LIBRARY}")

14
ports/crossdb/vcpkg.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "crossdb",
"version": "0.14.0",
"description": "Ultra High-performance Lightweight Embedded and Server OLTP RDBMS",
"homepage": "https://github.com/crossdb-org/crossdb",
"license": "MPL-2.0",
"supports": "(!windows | mingw) & !android",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -2132,6 +2132,10 @@
"baseline": "2023-03-30",
"port-version": 0
},
"crossdb": {
"baseline": "0.14.0",
"port-version": 0
},
"crossguid": {
"baseline": "2021-10-22",
"port-version": 3

9
versions/c-/crossdb.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "71458aa6539a1f36956b9fcc35ab3c0e35cc9f30",
"version": "0.14.0",
"port-version": 0
}
]
}