dev-R/RcppEnsmallen: unbundle ensmallen

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-20 23:34:53 +02:00
parent 12899f2577
commit 2c2a87bd3a
2 changed files with 37 additions and 21 deletions

View File

@@ -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"
}

View File

@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
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.
</longdescription>
<!-- maintainer-needed -->
<upstream>
<bugs-to>https://github.com/coatless/rcppensmallen/issues</bugs-to>
<doc lang="en">https://cran.r-project.org/web/packages/RcppEnsmallen/RcppEnsmallen.pdf</doc>
<changelog>https://cran.r-project.org/web/packages/RcppEnsmallen/ChangeLog</changelog>
<maintainer>
<name>James Joseph Balamuta</name>
<email>balamut2@illinois.edu</email>
</maintainer>
<remote-id type="github">coatless/rcppensmallen</remote-id>
</upstream>
<longdescription lang="en">
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.
</longdescription>
</pkgmetadata>