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

[libfork] new port #37048

Merged
merged 14 commits into from
Mar 5, 2024
22 changes: 22 additions & 0 deletions ports/libfork/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO conorwilliams/libfork
REF "v${VERSION}"
SHA512 1e94f91924abdda8950af634896fcdc6317b6487a4b51619733758291d3fa2ba9004f9204440b2e6a827b5ba417503e7120e4d32cf3bb3a96495792efb14fcfc
HEAD_REF main
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME "libfork")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")

configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

4 changes: 4 additions & 0 deletions ports/libfork/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libfork provides CMake targets:

find_package(libfork CONFIG REQUIRED)
target_link_libraries(main PRIVATE libfork::libfork)
19 changes: 19 additions & 0 deletions ports/libfork/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "libfork",
"version": "3.7.1",
"description": "A bleeding-edge, lock-free, wait-free, continuation-stealing fork-join library built on C++20's coroutines.",
"homepage": "https://github.com/conorwilliams/libfork",
"license": "MPL-2.0",
"dependencies": [
"boost-atomic",
"hwloc",
{
"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 @@ -4348,6 +4348,10 @@
"baseline": "1.1.4",
"port-version": 0
},
"libfork": {
"baseline": "3.7.1",
"port-version": 0
},
"libfort": {
"baseline": "0.4.2",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libfork.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "5217dcb7548a52356e0ead8c0c671fa4ee4efa41",
"version": "3.7.1",
"port-version": 0
}
]
}