mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:39:01 +08:00
[zstr] Fix include issues, add usage message override, add homepage and zlib dependency to vcpkg.json (#18068)
* [zstr] Add zstr_make_unique_polyfill.h to install list Fixes microsoft#16402 * [zstr] Install inside include/ instead of include/zstr/ Fixes microsoft#18067 * [zstr] Replace CONTROL with vcpkg.json * format manifest file * Update ports/zstr/vcpkg.json * update version * [zstr] Run format-manifest * [zstr] Update port-version * [zstr] Run x-add-version * [zstr] Add usage msg override * [zstr] Rerun x-add-version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
parent
d5e338ae9f
commit
504acb9383
@ -9,7 +9,11 @@ vcpkg_from_github(
|
||||
# Install source files
|
||||
file(INSTALL ${SOURCE_PATH}/src/strict_fstream.hpp
|
||||
${SOURCE_PATH}/src/zstr.hpp
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
||||
${SOURCE_PATH}/src/zstr_make_unique_polyfill.h
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
# Install license
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
# Install usage
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
|
4
ports/zstr/usage
Normal file
4
ports/zstr/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package zstr is header only and can be used from CMake via:
|
||||
|
||||
find_path(ZSTR_INCLUDE_DIRS "zstr.hpp")
|
||||
target_include_directories(main PRIVATE ${ZSTR_INCLUDE_DIRS})
|
@ -1,6 +1,10 @@
|
||||
{
|
||||
"name": "zstr",
|
||||
"version-string": "1.0.4",
|
||||
"port-version": 1,
|
||||
"description": "This C++ header-only library enables the use of C++ standard iostreams to access ZLib-compressed streams."
|
||||
"port-version": 2,
|
||||
"description": "This C++ header-only library enables the use of C++ standard iostreams to access ZLib-compressed streams.",
|
||||
"homepage": "https://github.com/mateidavid/zstr",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
}
|
||||
|
@ -7354,7 +7354,7 @@
|
||||
},
|
||||
"zstr": {
|
||||
"baseline": "1.0.4",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"zug": {
|
||||
"baseline": "2021-04-23",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7a13e5cb665ce878aa5b6c9723a0e375e1be5c15",
|
||||
"version-string": "1.0.4",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "339a979f431eb74d38dbb731f60b89fd6cc2a43a",
|
||||
"version-string": "1.0.4",
|
||||
|
Loading…
Reference in New Issue
Block a user