diff options
Diffstat (limited to 'vcpkg/ports/numcpp')
| -rw-r--r-- | vcpkg/ports/numcpp/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/numcpp/vcpkg.json | 41 |
2 files changed, 68 insertions, 0 deletions
diff --git a/vcpkg/ports/numcpp/portfile.cmake b/vcpkg/ports/numcpp/portfile.cmake new file mode 100644 index 0000000..fdc901a --- /dev/null +++ b/vcpkg/ports/numcpp/portfile.cmake @@ -0,0 +1,27 @@ +# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO dpilger26/NumCpp
+ REF "Version_${VERSION}"
+ SHA512 d0306fd8d329b92e8040e540a00187309986c50aa57030ed8a67e839c4f2b48322d28d938446c81362fd708c734b77015914b5913ea20acb722b2f67e72b37f8
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ INVERTED_FEATURES
+ boost NUMCPP_NO_USE_BOOST
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME NumCpp CONFIG_PATH share/NumCpp/cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/numcpp/vcpkg.json b/vcpkg/ports/numcpp/vcpkg.json new file mode 100644 index 0000000..dad87b7 --- /dev/null +++ b/vcpkg/ports/numcpp/vcpkg.json @@ -0,0 +1,41 @@ +{ + "name": "numcpp", + "version": "2.14.2", + "description": "C++ implementation of the Python Numpy library", + "homepage": "https://dpilger26.github.io/NumCpp", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "boost": { + "description": "Enable use boost", + "dependencies": [ + "boost-algorithm", + "boost-date-time", + "boost-endian", + "boost-integer", + "boost-log", + "boost-math", + "boost-predef", + "boost-python", + "boost-random", + "boost-type-traits" + ] + }, + "python": { + "description": "Interacting with Python with pybind11 interface", + "dependencies": [ + "boost-python", + "pybind11" + ] + } + } +} |