From 2c2a87bd3af9346b11fb2dbca3d9fd978cc98dd8 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 20 Jun 2021 23:34:53 +0200 Subject: [PATCH] dev-R/RcppEnsmallen: unbundle ensmallen Signed-off-by: Alessandro Barbieri --- .../RcppEnsmallen-0.2.15.0.1.ebuild | 16 +++++++ dev-R/RcppEnsmallen/metadata.xml | 42 +++++++++---------- 2 files changed, 37 insertions(+), 21 deletions(-) diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild index 5b357cc946..8fc9736853 100644 --- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild +++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild @@ -22,3 +22,19 @@ RDEPEND=" dev-R/Rcpp >=dev-R/RcppArmadillo-0.8.400.0.0 " + +src_prepare() { + default + #remove bundled + rm -r inst/include/ensmallen_bits || die + rm inst/include/ensmallen.hpp || die + #link to sci-libs/ensmallen + dosym /usr/include/ensmallen_bits inst/include/ensmallen_bits + dosym /usr/include/ensmallen.hpp inst/include/ensmallen.hpp +} + +src_install() { + R-packages_src_install + dosym /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits" + dosym /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp" +} diff --git a/dev-R/RcppEnsmallen/metadata.xml b/dev-R/RcppEnsmallen/metadata.xml index b666d2f18d..c3fb57f8e2 100644 --- a/dev-R/RcppEnsmallen/metadata.xml +++ b/dev-R/RcppEnsmallen/metadata.xml @@ -1,25 +1,25 @@ - - Header-Only C++ Mathematical Optimization Library for 'Armadillo' - // 'Ensmallen' is a templated C++ mathematical optimization - library (by the 'MLPACK' team) that provides a simple set of - abstractions for writing an objective function to optimize. - Provided within are various standard and cutting-edge - optimizers that include full-batch gradient descent techniques, - small-batch techniques, gradient-free optimizers, and - constrained optimization. The 'RcppEnsmallen' package includes - the header files from the 'Ensmallen' library and pairs the - appropriate header files from 'armadillo' through the - 'RcppArmadillo' package. Therefore, users do not need to - install 'Ensmallen' nor 'Armadillo' to use 'RcppEnsmallen'. - Note that 'Ensmallen' is licensed under 3-Clause BSD, - 'Armadillo' starting from 7.800.0 is licensed under Apache - License 2, 'RcppArmadillo' (the 'Rcpp' bindings/bridge to - 'Armadillo') is licensed under the GNU GPL version 2 or later. - Thus, 'RcppEnsmallen' is also licensed under similar terms. - Note that 'Ensmallen' requires a compiler that supports 'C++11' - and 'Armadillo' 8.400 or later. - + + + https://github.com/coatless/rcppensmallen/issues + https://cran.r-project.org/web/packages/RcppEnsmallen/RcppEnsmallen.pdf + https://cran.r-project.org/web/packages/RcppEnsmallen/ChangeLog + + James Joseph Balamuta + balamut2@illinois.edu + + coatless/rcppensmallen + + +Header-Only C++ Mathematical Optimization Library for 'Armadillo' +// 'Ensmallen' is a templated C++ mathematical optimization +library (by the 'MLPACK' team) that provides a simple set of +abstractions for writing an objective function to optimize. +Provided within are various standard and cutting-edge +optimizers that include full-batch gradient descent techniques, +small-batch techniques, gradient-free optimizers, and +constrained optimization. +