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

[bitar] Add new port for bitar #25533

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
21 changes: 21 additions & 0 deletions ports/bitar/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ljishen/bitar
REF v0.0.4
SHA512 172a198255100173b00a42feafd7f9b69e5dbd7b39983ffeda9f492ccabeb8a935c33ef9bc312d16cc3453ddcf59ff9dbbba1957f75064b900fb7f30e015a450
HEAD_REF main)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DVCPKG_ROOT=${VCPKG_ROOT_DIR}
-DBITAR_FETCHCONTENT_OVERWRITE_CONFIGURATION=OFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be handled already since vcpkg_cmake_configure() passes "-DFETCHCONTENT_FULLY_DISCONNECTED=ON"

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(
INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright)
30 changes: 30 additions & 0 deletions ports/bitar/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "bitar",
"version": "0.0.4",
"description": "Bitar is a C++ library to simplify accessing hardware compression/decompression accelerators.",
"homepage": "https://github.com/ljishen/bitar",
"license": "MIT",
"supports": "linux | freebsd",
"dependencies": [
{
"name": "abseil",
"features": [
"cxx17"
]
},
{
"name": "dpdk",
"version>=": "22.07#1"
},
"fmt",
"magic-enum",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
9 changes: 9 additions & 0 deletions versions/b-/bitar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "eda82040df137a847a4a620138591b26f3468c22",
"version": "0.0.4",
"port-version": 0
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@
"baseline": "3.0",
"port-version": 1
},
"bitar": {
"baseline": "0.0.4",
"port-version": 0
},
"bitmagic": {
"baseline": "7.12.3",
"port-version": 0
Expand Down