[graaf] new port (#44004)

This commit is contained in:
Emilian R 2025-02-26 16:51:33 +02:00 committed by GitHub
parent 4f79328e55
commit b99f691e45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bobluppes/graaf
REF "v${VERSION}"
SHA512 e97eeadaab079cf6ff429d2580ea7be454a6583b8cc5cd231065c7c51a87d52d60457370dc9688a7e426ffc7ef79ad9670e44966dd367224a4124bcd5755f080
)
file(COPY "${SOURCE_PATH}/include/graaflib" DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")

4
ports/graaf/usage Normal file
View File

@ -0,0 +1,4 @@
graaf is header-only and can be used from CMake via:
find_path(GRAAF_INCLUDE_DIRS "graaflib/graph.h")
target_include_directories(main PRIVATE ${GRAAF_INCLUDE_DIRS})

7
ports/graaf/vcpkg.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "graaf",
"version": "1.1.1",
"description": "A general-purpose lightweight C++ graph library",
"homepage": "https://bobluppes.github.io/graaf/",
"license": "MIT"
}

View File

@ -3260,6 +3260,10 @@
"baseline": "2020-05-20",
"port-version": 4
},
"graaf": {
"baseline": "1.1.1",
"port-version": 0
},
"grantlee": {
"baseline": "5.3.1",
"port-version": 2

9
versions/g-/graaf.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "608792629708669aef95575491d7ff4d009fa548",
"version": "1.1.1",
"port-version": 0
}
]
}