aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Tassoux <contact@rt2.fr>2020-08-06 00:53:02 +0200
committerGitHub <noreply@github.com>2020-08-05 15:53:02 -0700
commit3d9934a4efb34d78919e734538ba88abc01c9d79 (patch)
tree58d4ab5d012d8d4e1e036ee7d70bc0b8a6fec5b7
parent98fb2772262bf14ba811a0647726128d09665c85 (diff)
downloadvcpkg-3d9934a4efb34d78919e734538ba88abc01c9d79.tar.gz
vcpkg-3d9934a4efb34d78919e734538ba88abc01c9d79.zip
[jthread] Initial port (#12497)
* [jthread] Initial port https://github.com/josuttis/jthread * [jthread] Add header only comment Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [jthread] Fix version date Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [jthread] Move headers to include directory Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [jthread] Rename the port josuttis-jthread * [jthread] Fix control port name Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com>
-rw-r--r--ports/josuttis-jthread/CONTROL4
-rw-r--r--ports/josuttis-jthread/portfile.cmake15
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/josuttis-jthread/CONTROL b/ports/josuttis-jthread/CONTROL
new file mode 100644
index 000000000..760fb6eb7
--- /dev/null
+++ b/ports/josuttis-jthread/CONTROL
@@ -0,0 +1,4 @@
+Source: josuttis-jthread
+Version: 2020-07-21
+Homepage: https://github.com/josuttis/jthread
+Description: C++ class for a joining and cooperative interruptible thread (std::jthread) with stop_token helper
diff --git a/ports/josuttis-jthread/portfile.cmake b/ports/josuttis-jthread/portfile.cmake
new file mode 100644
index 000000000..e01c16585
--- /dev/null
+++ b/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)