[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:
dan9er 2021-11-09 19:51:17 +00:00 committed by GitHub
parent d5e338ae9f
commit 504acb9383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 4 deletions

View File

@ -9,7 +9,11 @@ vcpkg_from_github(
# Install source files # Install source files
file(INSTALL ${SOURCE_PATH}/src/strict_fstream.hpp file(INSTALL ${SOURCE_PATH}/src/strict_fstream.hpp
${SOURCE_PATH}/src/zstr.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 # Install license
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) 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
View 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})

View File

@ -1,6 +1,10 @@
{ {
"name": "zstr", "name": "zstr",
"version-string": "1.0.4", "version-string": "1.0.4",
"port-version": 1, "port-version": 2,
"description": "This C++ header-only library enables the use of C++ standard iostreams to access ZLib-compressed streams." "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"
]
} }

View File

@ -7354,7 +7354,7 @@
}, },
"zstr": { "zstr": {
"baseline": "1.0.4", "baseline": "1.0.4",
"port-version": 1 "port-version": 2
}, },
"zug": { "zug": {
"baseline": "2021-04-23", "baseline": "2021-04-23",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "7a13e5cb665ce878aa5b6c9723a0e375e1be5c15",
"version-string": "1.0.4",
"port-version": 2
},
{ {
"git-tree": "339a979f431eb74d38dbb731f60b89fd6cc2a43a", "git-tree": "339a979f431eb74d38dbb731f60b89fd6cc2a43a",
"version-string": "1.0.4", "version-string": "1.0.4",