aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/josuttis-jthread
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/josuttis-jthread
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/josuttis-jthread')
-rw-r--r--vcpkg/ports/josuttis-jthread/portfile.cmake15
-rw-r--r--vcpkg/ports/josuttis-jthread/vcpkg.json7
2 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/josuttis-jthread/portfile.cmake b/vcpkg/ports/josuttis-jthread/portfile.cmake
new file mode 100644
index 0000000..9563442
--- /dev/null
+++ b/vcpkg/ports/josuttis-jthread/portfile.cmake
@@ -0,0 +1,15 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO josuttis/jthread
+ REF 3e1908f3bbaba6d2195bb423840c23e107c9e8b2
+ SHA512 b6e4df35b364848a433eb31023a8b5b5045b2445aaf9a81406a6b3ce7cfdda08bcdb486be9201f5b1e54df38884c1763fae336fdcb9ad79f11658a92c535055d
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/source/jthread.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+file(INSTALL ${SOURCE_PATH}/source/stop_token.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+file(INSTALL ${SOURCE_PATH}/source/condition_variable_any2.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/vcpkg/ports/josuttis-jthread/vcpkg.json b/vcpkg/ports/josuttis-jthread/vcpkg.json
new file mode 100644
index 0000000..f1b9569
--- /dev/null
+++ b/vcpkg/ports/josuttis-jthread/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "josuttis-jthread",
+ "version-date": "2020-07-21",
+ "port-version": 3,
+ "description": "C++ class for a joining and cooperative interruptible thread (std::jthread) with stop_token helper",
+ "homepage": "https://github.com/josuttis/jthread"
+}