[greatest] Add new port (#6934)

This commit is contained in:
myd7349 2019-06-18 01:24:41 +08:00 committed by Phil Christensen
parent 8cd2d17460
commit d2e21397f4
2 changed files with 20 additions and 0 deletions

4
ports/greatest/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: greatest
Version: 1.4.2
Description: Single-file testing system for C
Homepage: https://github.com/silentbicycle/greatest

View File

@ -0,0 +1,16 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO silentbicycle/greatest
REF v1.4.2
SHA512 8f2767ac2be017d2ecee3a903ab79834e783df464e3fd0e1e8c4397fdf8dabcc4fb2367163dcb9e944c404d00cf8960ec56c0345f43836182a6e058d9eaf6b0a
HEAD_REF master
)
file(COPY ${SOURCE_PATH}/greatest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)