diff options
| author | xoviat <xoviat@users.noreply.github.com> | 2017-11-08 09:56:34 -0600 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-11-08 07:56:34 -0800 |
| commit | 56c74b32f6857429a99385975cc763849995b1ee (patch) | |
| tree | 886ddbd0fbc5244c82562aedfa938c37c5a57cea | |
| parent | 19861c73aac0941e6e121e3a5869723d9b50cb40 (diff) | |
| download | vcpkg-56c74b32f6857429a99385975cc763849995b1ee.tar.gz vcpkg-56c74b32f6857429a99385975cc763849995b1ee.zip | |
If97 (#2131)
* [if97] create CONTROL
* [if97] add portfile
* [if97] create custom cmakelists
* [if97:portfile] copy cmakelists
* [if97:portfile] define build_targets
* [if97:portfile] fix def
* [if97:portfile] fix flag
* [if97:portfile] fix header
* [if97] remove cmake
* [portfile] cleanup
* [if97] No need to define SOURCE_PATH
| -rw-r--r-- | ports/if97/CONTROL | 3 | ||||
| -rw-r--r-- | ports/if97/portfile.cmake | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/if97/CONTROL b/ports/if97/CONTROL new file mode 100644 index 000000000..7e5bb74fb --- /dev/null +++ b/ports/if97/CONTROL @@ -0,0 +1,3 @@ +Source: if97 +Version: 2.1.0 +Description: This repository implements the IF97 formulation for the properties of pure water substance. diff --git a/ports/if97/portfile.cmake b/ports/if97/portfile.cmake new file mode 100644 index 000000000..043094361 --- /dev/null +++ b/ports/if97/portfile.cmake @@ -0,0 +1,19 @@ +include(vcpkg_common_functions) +set(PORT_VERSION 2.1.0) + +vcpkg_from_github( + OUT_SOURCE_PATH ${SOURCE_PATH} + REPO CoolProp/IF97 + REF v${PORT_VERSION} + SHA512 f8cde0538af395d8d82998bd71f28d89cd5c6fcfdf16410b0630a0f8b59ec86ff8a748b05681e65cbece051db5be6b960b6ea4fc8bce83b4309f46896083164a + HEAD_REF master +) + +file(INSTALL ${SOURCE_PATH}/IF97.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +# Handle copyright +file( + INSTALL ${SOURCE_PATH}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/if97 + RENAME copyright +) |
