aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis J Bezault <curtbezault@gmail.com>2019-08-15 15:33:06 -0700
committerGitHub <noreply@github.com>2019-08-15 15:33:06 -0700
commit1040357cf53185d716055efbf2e4b192bc13adf0 (patch)
tree257617223aa310b7c3f500365e9a382f5dd1097f
parent034d5c9afc8a2dec4c7d9f5046e3192fec28ade9 (diff)
parenta35494a7799e7bf679654be0455a1b0d2a4585b3 (diff)
downloadvcpkg-1040357cf53185d716055efbf2e4b192bc13adf0.tar.gz
vcpkg-1040357cf53185d716055efbf2e4b192bc13adf0.zip
Merge pull request #7437 from myd7349/mpmcqueue-spscqueue-init
[mpmcqueue][spscqueue] Add new port
-rw-r--r--ports/mpmcqueue/CONTROL4
-rw-r--r--ports/mpmcqueue/portfile.cmake19
-rw-r--r--ports/spscqueue/CONTROL4
-rw-r--r--ports/spscqueue/portfile.cmake19
4 files changed, 46 insertions, 0 deletions
diff --git a/ports/mpmcqueue/CONTROL b/ports/mpmcqueue/CONTROL
new file mode 100644
index 000000000..3da89f6a5
--- /dev/null
+++ b/ports/mpmcqueue/CONTROL
@@ -0,0 +1,4 @@
+Source: mpmcqueue
+Version: 2019-07-26
+Description: A bounded multi-producer multi-consumer lock-free queue written in C++11
+Homepage: https://github.com/rigtorp/MPMCQueue
diff --git a/ports/mpmcqueue/portfile.cmake b/ports/mpmcqueue/portfile.cmake
new file mode 100644
index 000000000..be2f03064
--- /dev/null
+++ b/ports/mpmcqueue/portfile.cmake
@@ -0,0 +1,19 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rigtorp/MPMCQueue
+ REF 5883e32b07e8a60c22d532d9120ea5c11348aea9
+ SHA512 4adbbe5e014e0ef5c7030aaa9faa4e07e2c65753cd89c770da250811c13776576c4f1caf4144542318c41ebc7433b106e802c482a5d44572963a5ab59047257e
+ HEAD_REF master
+)
+
+file(COPY
+ ${SOURCE_PATH}/include/rigtorp/MPMCQueue.h
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/rigtorp
+)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
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)