Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zstr] Add new port #6773

Merged
merged 1 commit into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ports/zstr/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: zstr
Version: 1.0.1
Description: This C++ header-only library enables the use of C++ standard iostreams to access ZLib-compressed streams.
17 changes: 17 additions & 0 deletions ports/zstr/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mateidavid/zstr
REF v1.0.1
SHA512 616df2394c41038bc8512748a6a699cb45310ff518e75f591c7f957d6ab3da66a384755a6015c3eb588b576940cbff429ff9798985c452b6eda6e22f94dfb264
HEAD_REF master
)

# Install source files
file(INSTALL ${SOURCE_PATH}/src/strict_fstream.hpp
${SOURCE_PATH}/src/zstr.hpp
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})

# Install license
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)