[flashlight-sequence] New port (#31914)

* [flashlight-sequence] New port

* Update version database

* Temporarily switch to fork to test OpenMP configurability

* Update version database

* Update origin to 0.0.1 tag

* Update ports/flashlight-sequence/vcpkg.json

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Update version

---------

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
Jacob Kahn 2023-06-13 15:40:25 -05:00 committed by GitHub
parent 22b3afdab7
commit c35a7c03fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 74 additions and 0 deletions

View File

@ -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")

View File

@ -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/flashlight/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"
}
}
}

View File

@ -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

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0391c7bfa30bca396dadf39e7d9844cc7b43b38a",
"version": "0.0.1",
"port-version": 0
}
]
}