From e649c0a46ad3337ac31442992d631607606ddda8 Mon Sep 17 00:00:00 2001 From: ArashPartow Date: Fri, 26 Jan 2018 15:48:21 +1100 Subject: [PATCH] Add ExprTk package --- ports/exprtk/CONTROL | 3 +++ ports/exprtk/copyright | 8 ++++++++ ports/exprtk/portfile.cmake | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100644 ports/exprtk/CONTROL create mode 100644 ports/exprtk/copyright create mode 100644 ports/exprtk/portfile.cmake diff --git a/ports/exprtk/CONTROL b/ports/exprtk/CONTROL new file mode 100644 index 0000000000..2ebcfab281 --- /dev/null +++ b/ports/exprtk/CONTROL @@ -0,0 +1,3 @@ +Source: exprtk +Version: 2018.01.01-f32d2b4 +Description: Simple to use, easy to integrate and extremely efficient run-time C++ mathematical expression parser and evaluation engine. diff --git a/ports/exprtk/copyright b/ports/exprtk/copyright new file mode 100644 index 0000000000..ee372c989c --- /dev/null +++ b/ports/exprtk/copyright @@ -0,0 +1,8 @@ +Copyright 1999-2018 Arash Partow +http://www.partow.net/programming/exprtk/index.html + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ports/exprtk/portfile.cmake b/ports/exprtk/portfile.cmake new file mode 100644 index 0000000000..1178a3e12f --- /dev/null +++ b/ports/exprtk/portfile.cmake @@ -0,0 +1,11 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ArashPartow/exprtk + REF f32d2b4bbb640ea4732b8a7fce1bd9717e9c998b + SHA512 22c977dc2514bd525856ed26b8895687601e79784486efe9d4f27466e1e1932c4a947297d83e9b98a6c82df9eaf5b0f82990741bbb699d565ca11e5755a55dd6 +) + +file(COPY ${SOURCE_PATH}/exprtk.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include) +file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/exprtk)