aboutsummaryrefslogtreecommitdiff
path: root/ports/spscqueue
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2019-08-19 21:40:43 +0200
committerGitHub <noreply@github.com>2019-08-19 21:40:43 +0200
commit70f4aabbe8bf5273e11a03f804d4361354cf0a11 (patch)
treec2d553869f70b8fce7b2539bcaa8ffb8bb8aa0cc /ports/spscqueue
parent173642528e2cf7a3f18b41d903b5ff5a758d34ae (diff)
parent8e7ce6d91a060bba5f9e252a5d9aad92f5bd4a56 (diff)
downloadvcpkg-70f4aabbe8bf5273e11a03f804d4361354cf0a11.tar.gz
vcpkg-70f4aabbe8bf5273e11a03f804d4361354cf0a11.zip
Merge branch 'master' into path_separator
Diffstat (limited to 'ports/spscqueue')
-rw-r--r--ports/spscqueue/CONTROL4
-rw-r--r--ports/spscqueue/portfile.cmake19
2 files changed, 23 insertions, 0 deletions
diff --git a/ports/spscqueue/CONTROL b/ports/spscqueue/CONTROL
new file mode 100644
index 000000000..e8330caaa
--- /dev/null
+++ b/ports/spscqueue/CONTROL
@@ -0,0 +1,4 @@
+Source: spscqueue
+Version: 2019-07-26
+Description: A bounded single-producer single-consumer wait-free and lock-free queue written in C++11
+Homepage: https://github.com/rigtorp/SPSCQueue
diff --git a/ports/spscqueue/portfile.cmake b/ports/spscqueue/portfile.cmake
new file mode 100644
index 000000000..5bc0628bc
--- /dev/null
+++ b/ports/spscqueue/portfile.cmake
@@ -0,0 +1,19 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rigtorp/SPSCQueue
+ REF 5165a08ac4474c77c636050332eca6ebfdd53533
+ SHA512 30cd60711f816e6003a5b114c48bd12da449cb7b0f19aa58dd57e3abc3e5200847c3eb492627b4013f57eec11d5d6f0a11fedbcb21dd8dd5c44682c49456e4e1
+ HEAD_REF master
+)
+
+file(COPY
+ ${SOURCE_PATH}/include/rigtorp/SPSCQueue.h
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/rigtorp
+)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)