[bxzstr] Added port for bxzstr (#30318)

* Added port for bxzstr

* Fixed checklist items

* Update version database

* Removed path modification, added usage

* Fixed bug where usage would not be added, added PATH_SUFFIXES
This commit is contained in:
Nathan Gober 2023-03-29 12:34:26 -05:00 committed by GitHub
parent 1271068e13
commit 23f0707b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tmaklin/bxzstr
REF "v${VERSION}"
SHA512 e357eb99b007031a1b15b20077883ebb20b294fda97d4aa354ded04c8d0b398fdeae9e1e97747caf55699a8feadf8c10eb807a9c6a66837a0816002df34fb7a1
HEAD_REF master
)
file(INSTALL
"${SOURCE_PATH}/include/bxzstr.hpp"
"${SOURCE_PATH}/include/bz_stream_wrapper.hpp"
"${SOURCE_PATH}/include/compression_types.hpp"
"${SOURCE_PATH}/include/config.hpp"
"${SOURCE_PATH}/include/lzma_stream_wrapper.hpp"
"${SOURCE_PATH}/include/stream_wrapper.hpp"
"${SOURCE_PATH}/include/strict_fstream.hpp"
"${SOURCE_PATH}/include/z_stream_wrapper.hpp"
"${SOURCE_PATH}/include/zstd_stream_wrapper.hpp"
DESTINATION "${CURRENT_PACKAGES_DIR}/include/bxzstr")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/bxzstr/usage Normal file
View File

@ -0,0 +1,4 @@
The package bxzstr is header only and can be used from CMake via:
find_path(BXZSTR_INCLUDE_DIRS "bxzstr.hpp" PATH_SUFFIXES "include/bxzstr")
target_include_directories(main PRIVATE ${BXZSTR_INCLUDE_DIRS})

13
ports/bxzstr/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "bxzstr",
"version": "1.2.0",
"description": "A C++ header-only ZLib/libBZ2/libLZMA/Zstandard wrapper.",
"homepage": "https://github.com/tmaklin/bxzstr",
"license": "MPL-2.0",
"dependencies": [
"bzip2",
"liblzma",
"zlib",
"zstd"
]
}

9
versions/b-/bxzstr.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ad9511ac67f069a83b89c91a8fb0c995a6aca196",
"version": "1.2.0",
"port-version": 0
}
]
}

View File

@ -1288,6 +1288,10 @@
"baseline": "2019-05-08",
"port-version": 3
},
"bxzstr": {
"baseline": "1.2.0",
"port-version": 0
},
"byte-lite": {
"baseline": "0.3.0",
"port-version": 0