aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-06-18 01:24:41 +0800
committerPhil Christensen <philc@microsoft.com>2019-06-17 10:24:41 -0700
commitd2e21397f48f6a8b0beaec9d382764928cdfbc29 (patch)
treef1173472ef60db12c80eebcfb2b0acc13afdc1f3
parent8cd2d17460d7c8d1dc74491cd890691f9546dc8c (diff)
downloadvcpkg-d2e21397f48f6a8b0beaec9d382764928cdfbc29.tar.gz
vcpkg-d2e21397f48f6a8b0beaec9d382764928cdfbc29.zip
[greatest] Add new port (#6934)
-rw-r--r--ports/greatest/CONTROL4
-rw-r--r--ports/greatest/portfile.cmake16
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/greatest/CONTROL b/ports/greatest/CONTROL
new file mode 100644
index 000000000..05c679d8e
--- /dev/null
+++ b/ports/greatest/CONTROL
@@ -0,0 +1,4 @@
+Source: greatest
+Version: 1.4.2
+Description: Single-file testing system for C
+Homepage: https://github.com/silentbicycle/greatest
diff --git a/ports/greatest/portfile.cmake b/ports/greatest/portfile.cmake
new file mode 100644
index 000000000..479287ccb
--- /dev/null
+++ b/ports/greatest/portfile.cmake
@@ -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)