aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-01-24 06:07:22 +0800
committerCodiferous <44823842+Codiferous@users.noreply.github.com>2019-01-23 14:07:22 -0800
commitc292cdcc456d2dbea68e1b5140df81e343c7d8ef (patch)
tree1fcabe68761256e0c382f60c2fbec905829ae65f
parent38acd9fd0224e5a5beaf2cee0d957e798d35179a (diff)
downloadvcpkg-c292cdcc456d2dbea68e1b5140df81e343c7d8ef.tar.gz
vcpkg-c292cdcc456d2dbea68e1b5140df81e343c7d8ef.zip
[cnl] Add new port (#5158)
-rw-r--r--ports/cnl/CONTROL3
-rw-r--r--ports/cnl/portfile.cmake28
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/cnl/CONTROL b/ports/cnl/CONTROL
new file mode 100644
index 000000000..7aa93f60e
--- /dev/null
+++ b/ports/cnl/CONTROL
@@ -0,0 +1,3 @@
+Source: cnl
+Version: 2019-01-09
+Description: A Compositional Numeric Library for C++
diff --git a/ports/cnl/portfile.cmake b/ports/cnl/portfile.cmake
new file mode 100644
index 000000000..0eb23e1c9
--- /dev/null
+++ b/ports/cnl/portfile.cmake
@@ -0,0 +1,28 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO johnmcfarlane/cnl
+ REF 9f632898a4738b9e41de90e66d4f6ddb84bda08b
+ SHA512 ffde0b5aa58e79b5a03eee588c0e43d17ab2ddb2ffb12508f9d1b0e05aa54bb6c653986f183ce339e73c562efd749af6bd3907d816c9f79bf48f1e84ded3ac13
+ HEAD_REF develop
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
+
+# CMake integration test
+vcpkg_test_cmake(PACKAGE_NAME ${PORT})