From 7aa2e2018c962be17ee86566b436bd2e9ee5a4fc Mon Sep 17 00:00:00 2001 From: NancyLi1013 Date: Wed, 5 Jun 2019 02:13:53 -0700 Subject: [PATCH] [zstr] Add new port --- ports/zstr/CONTROL | 3 +++ ports/zstr/portfile.cmake | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ports/zstr/CONTROL create mode 100644 ports/zstr/portfile.cmake diff --git a/ports/zstr/CONTROL b/ports/zstr/CONTROL new file mode 100644 index 00000000000000..fe7e50c847cbd4 --- /dev/null +++ b/ports/zstr/CONTROL @@ -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. \ No newline at end of file diff --git a/ports/zstr/portfile.cmake b/ports/zstr/portfile.cmake new file mode 100644 index 00000000000000..61244eb60aaf75 --- /dev/null +++ b/ports/zstr/portfile.cmake @@ -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)