From 00987279d8a3bbcf80df10a854cfd62084fb8de0 Mon Sep 17 00:00:00 2001 From: xoviat Date: Wed, 8 Nov 2017 13:40:38 -0600 Subject: [PATCH] Refprop headers: add port (#2148) * [refprop] create CONTROL * [refprop-headers] add portfile * [refprop] fix install copyright * fix * fix * [refprop-headers] Minor cleanup --- ports/refprop-headers/CONTROL | 3 +++ ports/refprop-headers/portfile.cmake | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 ports/refprop-headers/CONTROL create mode 100644 ports/refprop-headers/portfile.cmake diff --git a/ports/refprop-headers/CONTROL b/ports/refprop-headers/CONTROL new file mode 100644 index 0000000000..00b78cc55a --- /dev/null +++ b/ports/refprop-headers/CONTROL @@ -0,0 +1,3 @@ +Source: refprop-headers +Version: 2017-11-7-882aec454b2bc3d5323b8691736ff09c288f4ed6 +Description: The REFPROP Headers diff --git a/ports/refprop-headers/portfile.cmake b/ports/refprop-headers/portfile.cmake new file mode 100644 index 0000000000..c8024d0526 --- /dev/null +++ b/ports/refprop-headers/portfile.cmake @@ -0,0 +1,19 @@ +include(vcpkg_common_functions) +set(PORT_COMMIT 882aec454b2bc3d5323b8691736ff09c288f4ed6) + +vcpkg_from_github( + OUT_SOURCE_PATH ${SOURCE_PATH} + REPO CoolProp/REFPROP-headers + REF ${PORT_COMMIT} + SHA512 23ee3df4ffe21b2d790efa27a1b8ea5fa4fce0a274d78e493a2d71043670420e19216f925d23d04f6139ca084a21b97028bd2547f3dbd00ffbb33d0c0bbfece5 + HEAD_REF master +) + +file(INSTALL ${SOURCE_PATH}/REFPROP_lib.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +# Handle copyright +file( + INSTALL ${SOURCE_PATH}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/refprop-headers + RENAME copyright +)