aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/uvw/CONTROL3
-rw-r--r--ports/uvw/portfile.cmake18
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/uvw/CONTROL b/ports/uvw/CONTROL
new file mode 100644
index 000000000..1fc066ee2
--- /dev/null
+++ b/ports/uvw/CONTROL
@@ -0,0 +1,3 @@
+Source: uvw
+Version: 1.11.2
+Description: Header-only, event based, tiny and easy to use libuv wrapper in modern C++. <https://github.com/skypjack/uvw>
diff --git a/ports/uvw/portfile.cmake b/ports/uvw/portfile.cmake
new file mode 100644
index 000000000..0cbacec21
--- /dev/null
+++ b/ports/uvw/portfile.cmake
@@ -0,0 +1,18 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO skypjack/uvw
+ REF v1.11.2_libuv-v1.23
+ SHA512 0125233645351b94acb1b42f1632365a60892c64f00b27f04ae76fa523c4ee32c9910f0fcfb160b15269bfb0b5ae0c0f8b46d83a1ca9f9fc661b75eecb7a04d3
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/src/uvw
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include
+)
+
+# Handle copyright/readme/package files
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/uvw RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/uvw)