From 16fc29b2ba4d643cb2e28d98f3135b0f4b17d773 Mon Sep 17 00:00:00 2001 From: Alvin <52727318+AlvinZhangH@users.noreply.github.com> Date: Wed, 25 Sep 2019 01:43:24 +0800 Subject: [asynch]Add new port. (#8317) --- ports/asynch/CONTROL | 4 ++++ ports/asynch/portfile.cmake | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ports/asynch/CONTROL create mode 100644 ports/asynch/portfile.cmake diff --git a/ports/asynch/CONTROL b/ports/asynch/CONTROL new file mode 100644 index 000000000..66a7f23ee --- /dev/null +++ b/ports/asynch/CONTROL @@ -0,0 +1,4 @@ +Source: asynch +Version: 2019-09-21 +Homepage: https://github.com/naasking/async.h +Description: Async.h - asynchronous, stackless subroutines. \ No newline at end of file diff --git a/ports/asynch/portfile.cmake b/ports/asynch/portfile.cmake new file mode 100644 index 000000000..10a349286 --- /dev/null +++ b/ports/asynch/portfile.cmake @@ -0,0 +1,15 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO naasking/async.h + REF 080cbb257ab60ad06008c574d7feb94f8478efdd #Commits on Sep 21, 2019 + SHA512 4fe0229ffd8b3c6438294a419ccb213b4d28a0a04d834406b67120e9bc90d339ec91f3b3eb52d4e27c1f12add41e9347bffbea47868b0d7a1da40f784d113c71 + HEAD_REF master +) + +# Copy the single reusable library header +file(COPY ${SOURCE_PATH}/async/async.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT}) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file -- cgit v1.2.3