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

[flashlight-sequence] New port #31914

Merged
merged 7 commits into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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
33 changes: 33 additions & 0 deletions ports/flashlight-sequence/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO flashlight/sequence
REF v${VERSION}
SHA512 215bb4988fbdd31573965c3c5d88d40b247cbca49f092dcdb89b5f2ca422d5774e941de843433fd3effd8f09569a7e0c2cc61364b5f0a210f156933e4c00f16b
HEAD_REF main
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
openmp FL_SEQUENCE_USE_OPENMP
cuda FL_SEQUENCE_USE_CUDA
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DFL_SEQUENCE_BUILD_TESTS=OFF
-DFL_SEQUENCE_BUILD_STANDALONE=OFF
${FEATURE_OPTIONS}
OPTIONS_DEBUG
"-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/${PORT}"
OPTIONS_RELEASE
"-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()

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

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
28 changes: 28 additions & 0 deletions ports/flashlight-sequence/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "flashlight-sequence",
"version": "0.0.1",
"description": "Flashlight Sequence is a library containing fast implementations of sequence loss algorithms.",
"homepage": "https://github.com/jacobkahn/sequence",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"cuda": {
"description": "Build CUDA components",
"dependencies": [
"cuda"
]
},
"openmp": {
"description": "Build with OpenMP"
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,10 @@
"baseline": "0.3",
"port-version": 6
},
"flashlight-sequence": {
"baseline": "0.0.1",
"port-version": 0
},
"flashlight-text": {
"baseline": "0.0.4",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/f-/flashlight-sequence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a53a4da1e006cf1fdd8d5d26408cb8b19d64d437",
"version": "0.0.1",
"port-version": 0
}
]
}