mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[ensmallen] Add new port (#5421)
* [ensmallen] Add new port * [ensmallen] disable tests
This commit is contained in:
parent
4a582b4d1d
commit
c05014eb91
5
ports/ensmallen/CONTROL
Normal file
5
ports/ensmallen/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: ensmallen
|
||||
Version: 1.14.0
|
||||
Description: A header-only C++ library for mathematical optimization.
|
||||
Build-Depends: openblas, clapack, armadillo
|
||||
|
15
ports/ensmallen/disable_tests.patch
Normal file
15
ports/ensmallen/disable_tests.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1577be5..b0171b2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -57,6 +57,7 @@ install(DIRECTORY "${CMAKE_SOURCE_DIR}/include/ensmallen_bits"
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/include/ensmallen.hpp
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
|
||||
|
||||
-enable_testing()
|
||||
-
|
||||
-add_subdirectory(tests)
|
||||
+# Disable tests
|
||||
+#enable_testing()
|
||||
+#
|
||||
+#add_subdirectory(tests)
|
21
ports/ensmallen/portfile.cmake
Normal file
21
ports/ensmallen/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mlpack/ensmallen
|
||||
REF ensmallen-1.14.0
|
||||
SHA512 a0b3660a0d01f5bc79fe302f08161a0b4d16fa006cc1d95cf24e046d2a4ab48de49b7644023837ed93426b982fbd0861d6c2774c0a80f4d2392ce494291ff70a
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable_tests.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYRIGHT.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/ensmallen RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
Loading…
x
Reference in New Issue
Block a user