From 10d926e81bf56d415bd47adcd231b64b4d396bbe Mon Sep 17 00:00:00 2001 From: RT222 Date: Tue, 3 Jul 2018 12:14:00 +0200 Subject: [safeint] Initial port (#3762) * [safeint] Initial port * [safeint] Use LICENSE from source repo --- ports/safeint/CONTROL | 3 +++ ports/safeint/portfile.cmake | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ports/safeint/CONTROL create mode 100644 ports/safeint/portfile.cmake diff --git a/ports/safeint/CONTROL b/ports/safeint/CONTROL new file mode 100644 index 000000000..726ebdc6b --- /dev/null +++ b/ports/safeint/CONTROL @@ -0,0 +1,3 @@ +Source: safeint +Version: 3.19.2 +Description: SafeInt is a class library for C++ that manages integer overflows diff --git a/ports/safeint/portfile.cmake b/ports/safeint/portfile.cmake new file mode 100644 index 000000000..dd8e41aca --- /dev/null +++ b/ports/safeint/portfile.cmake @@ -0,0 +1,13 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO dcleblanc/SafeInt + REF b1c48bd32b5e748ed57c153c418a5ed67538045a + SHA512 d0b59430da353e0af55a9ab83964e35bfb61edff00f8a2aef6df139720f271aae851ea9de54ca4280e220eff9946590a7b5c85c102f3c2e5f051a6cb7d7a3e5e + HEAD_REF master +) + +file(INSTALL ${SOURCE_PATH}/SafeInt.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/safeint RENAME copyright) -- cgit v1.2.3