aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-06-06 18:58:40 -0700
committerPhil Christensen <philc@microsoft.com>2019-06-06 18:58:40 -0700
commitd7c61a4215b5416879cf37a794fc2405592bf29b (patch)
tree528998fd25dc2e74fc2cc8efa99f318e5c5345b5
parent52168a85033bc6ae43cf66132c6cded73d3ac804 (diff)
downloadvcpkg-d7c61a4215b5416879cf37a794fc2405592bf29b.tar.gz
vcpkg-d7c61a4215b5416879cf37a794fc2405592bf29b.zip
[zstr] Add new port (#6773)
-rw-r--r--ports/zstr/CONTROL3
-rw-r--r--ports/zstr/portfile.cmake17
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/zstr/CONTROL b/ports/zstr/CONTROL
new file mode 100644
index 000000000..fe7e50c84
--- /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 000000000..61244eb60
--- /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)