From 5f14c6c910c2e5cf79fb9924936c49a64477b63b Mon Sep 17 00:00:00 2001 From: Jianshen Liu <468515+ljishen@users.noreply.github.com> Date: Sun, 3 Jul 2022 07:13:02 +0000 Subject: [PATCH] [bitar] Add new port for biar --- ports/bitar/portfile.cmake | 21 +++++++++++++++++++++ ports/bitar/vcpkg.json | 30 ++++++++++++++++++++++++++++++ versions/b-/bitar.json | 9 +++++++++ versions/baseline.json | 4 ++++ 4 files changed, 64 insertions(+) create mode 100644 ports/bitar/portfile.cmake create mode 100644 ports/bitar/vcpkg.json create mode 100644 versions/b-/bitar.json diff --git a/ports/bitar/portfile.cmake b/ports/bitar/portfile.cmake new file mode 100644 index 00000000000000..ad39925816195c --- /dev/null +++ b/ports/bitar/portfile.cmake @@ -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) +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) diff --git a/ports/bitar/vcpkg.json b/ports/bitar/vcpkg.json new file mode 100644 index 00000000000000..f291d9b84fec61 --- /dev/null +++ b/ports/bitar/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/b-/bitar.json b/versions/b-/bitar.json new file mode 100644 index 00000000000000..bc16440e5f2097 --- /dev/null +++ b/versions/b-/bitar.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "eda82040df137a847a4a620138591b26f3468c22", + "version": "0.0.4", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index c46d44f525bbe2..9f3b7a2f294d0a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -492,6 +492,10 @@ "baseline": "3.0", "port-version": 1 }, + "bitar": { + "baseline": "0.0.4", + "port-version": 0 + }, "bitmagic": { "baseline": "7.11.2", "port-version": 0