[cr] Add new port (#11841)

* [cr] Add new port

* Update ports/cr/portfile.cmake

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
Leonid Pospelov 2020-06-11 02:53:22 +02:00 committed by GitHub
parent d8383c37b3
commit 4d29869e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

4
ports/cr/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: cr
Version: 2020-04-26
Homepage: https://fungos.github.io/cr-simple-c-hot-reload/
Description: cr.h: A Simple C Hot Reload Header-only Library

15
ports/cr/portfile.cmake Normal file
View File

@ -0,0 +1,15 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fungos/cr
REF 66b76e24611c3b87566e5365e8c422387bc85916
SHA512 002162461ecf131d717f7567cf13ee1345b7b359bb17c0801f4246c472c1b180f4f8937e9a3f4c186d95c41c20ffcc5ba5e953f197f344fb1000f51d8c4ee473
HEAD_REF master
)
file(
COPY ${SOURCE_PATH}/cr.h
DESTINATION ${CURRENT_PACKAGES_DIR}/include
)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)