aboutsummaryrefslogtreecommitdiff
path: root/ports/mgnlibs
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/mgnlibs
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
Diffstat (limited to 'ports/mgnlibs')
-rw-r--r--ports/mgnlibs/CONTROL4
-rw-r--r--ports/mgnlibs/portfile.cmake17
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/mgnlibs/CONTROL b/ports/mgnlibs/CONTROL
new file mode 100644
index 000000000..0be257059
--- /dev/null
+++ b/ports/mgnlibs/CONTROL
@@ -0,0 +1,4 @@
+Source: mgnlibs
+Version: 2019-09-29
+Homepage: https://github.com/mattiasgustavsson/libs
+Description: Single-file public domain libraries for C/C++
diff --git a/ports/mgnlibs/portfile.cmake b/ports/mgnlibs/portfile.cmake
new file mode 100644
index 000000000..e49a122e7
--- /dev/null
+++ b/ports/mgnlibs/portfile.cmake
@@ -0,0 +1,17 @@
+#header-only library
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mattiasgustavsson/libs
+ REF 9a6e7205caecbe336e41aebdc9c79a5c47daa5ec
+ SHA512 87493f883f0752a334bbcec69228e325d9e1f36a99d313be9243f4e6e14876bcd5a976682d3fd7e3e285e426ac69587d35ba3378b2124450b9a8ed6127f110a5
+ HEAD_REF master
+)
+
+# Put the licence file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/mgnlibs/README.md)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/mgnlibs/README.md ${CURRENT_PACKAGES_DIR}/share/mgnlibs/copyright)
+
+# Copy the header files
+file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
+file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/mgnlibs)