aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRT222 <contact@rt2.fr>2018-07-03 12:14:00 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-07-03 03:14:00 -0700
commit10d926e81bf56d415bd47adcd231b64b4d396bbe (patch)
tree4e653b71d11b59dced8e6ec6efa25050139f76ae
parent430c8ca413ad85c9100435e4eac37f8aaec73ff9 (diff)
downloadvcpkg-10d926e81bf56d415bd47adcd231b64b4d396bbe.tar.gz
vcpkg-10d926e81bf56d415bd47adcd231b64b4d396bbe.zip
[safeint] Initial port (#3762)
* [safeint] Initial port * [safeint] Use LICENSE from source repo
-rw-r--r--ports/safeint/CONTROL3
-rw-r--r--ports/safeint/portfile.cmake13
2 files changed, 16 insertions, 0 deletions
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)