aboutsummaryrefslogtreecommitdiff
path: root/ports/matplotlib-cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/matplotlib-cpp
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
Diffstat (limited to 'ports/matplotlib-cpp')
-rw-r--r--ports/matplotlib-cpp/CONTROL4
-rw-r--r--ports/matplotlib-cpp/portfile.cmake16
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/matplotlib-cpp/CONTROL b/ports/matplotlib-cpp/CONTROL
new file mode 100644
index 000000000..cdbf0afc2
--- /dev/null
+++ b/ports/matplotlib-cpp/CONTROL
@@ -0,0 +1,4 @@
+Source: matplotlib-cpp
+Version: 2019-09-24
+Description: Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
+Homepage: https://github.com/lava/matplotlib-cpp
diff --git a/ports/matplotlib-cpp/portfile.cmake b/ports/matplotlib-cpp/portfile.cmake
new file mode 100644
index 000000000..ed2ff5b9a
--- /dev/null
+++ b/ports/matplotlib-cpp/portfile.cmake
@@ -0,0 +1,16 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lava/matplotlib-cpp
+ REF f4ad842e70cc56a38f3e4cd852968c7c1cecc9a7
+ SHA512 433eb2bc60aa65b9bc40310d7a55b728737e59aafe13e06ddf1a71b25e3cc365cd10f64121fba936180c98eaf5c96dfaf2547e0e3c0daef0b808d1527a37cc17
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/matplotlibcpp.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)