diff options
| author | myd7349 <myd7349@gmail.com> | 2020-08-20 12:17:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 21:17:44 -0700 |
| commit | a51f392b52a71688585b3fbab60fed96e3842abb (patch) | |
| tree | a6fc99d5a0a1c8dbca4f910cc0ad64fe06a4eb24 | |
| parent | 970fdf4e88a9811ed10dbe373d8d71f23687fab9 (diff) | |
| download | vcpkg-a51f392b52a71688585b3fbab60fed96e3842abb.tar.gz vcpkg-a51f392b52a71688585b3fbab60fed96e3842abb.zip | |
[numcpp] Add new port (#12682)
| -rw-r--r-- | ports/numcpp/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/numcpp/vcpkg.json | 26 |
2 files changed, 50 insertions, 0 deletions
diff --git a/ports/numcpp/portfile.cmake b/ports/numcpp/portfile.cmake new file mode 100644 index 000000000..d605b19da --- /dev/null +++ b/ports/numcpp/portfile.cmake @@ -0,0 +1,24 @@ +# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO dpilger26/NumCpp
+ REF fc68d897f8c2ae4f5b14baff3eefda897351abbd # 2.1.0
+ SHA512 ce407d9782d304658853cd66ba5901a4dc84d8cf74d45b2dd466ca6328f6bf60b39906efd5373624df6b46c4253f861208b15254d0e156fdb09f32ca731ad2bc
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DNUMCPP_TEST=OFF
+ -DNUMCPP_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/NumCpp/cmake TARGET_PATH share/NumCpp)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/numcpp/vcpkg.json b/ports/numcpp/vcpkg.json new file mode 100644 index 000000000..db31f6a3b --- /dev/null +++ b/ports/numcpp/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "numcpp", + "version-string": "2.1.0", + "description": "C++ implementation of the Python Numpy library", + "homepage": "https://dpilger26.github.io/NumCpp", + "license": "MIT", + "dependencies": [ + "boost-algorithm", + "boost-endian", + "boost-integer", + "boost-math", + "boost-predef", + "boost-random", + "boost-type-traits" + ], + "features": [ + { + "name": "python", + "description": "Interacting with python with pybind11 interface", + "dependencies": [ + "boost-python", + "pybind11" + ] + } + ] +} |
