[ensmallen] Add new port (#5421)

* [ensmallen] Add new port

* [ensmallen] disable tests
This commit is contained in:
Miguel 2019-02-27 00:18:43 +01:00 committed by Phil Christensen
parent 4a582b4d1d
commit c05014eb91
3 changed files with 41 additions and 0 deletions

5
ports/ensmallen/CONTROL Normal file
View 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

View 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)

View 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)