aboutsummaryrefslogtreecommitdiff
path: root/ports/bshoshany-thread-pool
diff options
context:
space:
mode:
authorMatthieu Penant <matthieu.penant@seika.ca>2021-08-11 22:42:01 -0400
committerGitHub <noreply@github.com>2021-08-11 19:42:01 -0700
commit5dc6a9d2da386605ffea3a5c6a03c86b5b2ff0b4 (patch)
treea7e87c309bc4669386216cbdd96efd68b886b4c4 /ports/bshoshany-thread-pool
parent9b545e20a021bfb6b966a72642433fca80b11546 (diff)
downloadvcpkg-5dc6a9d2da386605ffea3a5c6a03c86b5b2ff0b4.tar.gz
vcpkg-5dc6a9d2da386605ffea3a5c6a03c86b5b2ff0b4.zip
[bshoshany-thread-pool] add a new port (1.9) (#19470)
* [bshoshany-thread-pool] new port * formatting vcpkg.json * update version file * baseline update based on bot comments * Update ports/bshoshany-thread-pool/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/bshoshany-thread-pool/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update bshoshany-thread-pool.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Diffstat (limited to 'ports/bshoshany-thread-pool')
-rw-r--r--ports/bshoshany-thread-pool/portfile.cmake19
-rw-r--r--ports/bshoshany-thread-pool/vcpkg.json6
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/bshoshany-thread-pool/portfile.cmake b/ports/bshoshany-thread-pool/portfile.cmake
new file mode 100644
index 000000000..4c45e8f9c
--- /dev/null
+++ b/ports/bshoshany-thread-pool/portfile.cmake
@@ -0,0 +1,19 @@
+#header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO bshoshany/thread-pool
+ REF v1.9
+ SHA512 d87c67218a5373181332caa53aa611b79345df56fe2ba1452dbd552ef43fdeecbf2f6347f86c4730423c1545b4dc45524a4737949359cdda5ff911ce647eb8f4
+ HEAD_REF master
+)
+
+# Install headers (header-only):
+file(GLOB HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/*.hpp")
+file(INSTALL
+ "${HEADER_FILES}"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include"
+
+)
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/bshoshany-thread-pool/vcpkg.json b/ports/bshoshany-thread-pool/vcpkg.json
new file mode 100644
index 000000000..4982a910c
--- /dev/null
+++ b/ports/bshoshany-thread-pool/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "bshoshany-thread-pool",
+ "version": "1.9",
+ "description": "A C++17 Thread Pool for High-Performance Scientific Computing",
+ "homepage": "https://github.com/bshoshany/thread-pool"
+}