mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 12:06:49 +08:00
[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:
parent
1271068e13
commit
23f0707b1a
23
ports/bxzstr/portfile.cmake
Normal file
23
ports/bxzstr/portfile.cmake
Normal 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
4
ports/bxzstr/usage
Normal 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
13
ports/bxzstr/vcpkg.json
Normal 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
9
versions/b-/bxzstr.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "ad9511ac67f069a83b89c91a8fb0c995a6aca196",
|
||||||
|
"version": "1.2.0",
|
||||||
|
"port-version": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1288,6 +1288,10 @@
|
|||||||
"baseline": "2019-05-08",
|
"baseline": "2019-05-08",
|
||||||
"port-version": 3
|
"port-version": 3
|
||||||
},
|
},
|
||||||
|
"bxzstr": {
|
||||||
|
"baseline": "1.2.0",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
"byte-lite": {
|
"byte-lite": {
|
||||||
"baseline": "0.3.0",
|
"baseline": "0.3.0",
|
||||||
"port-version": 0
|
"port-version": 0
|
||||||
|
Loading…
Reference in New Issue
Block a user