diff options
Diffstat (limited to 'dev-R/RcppEnsmallen')
| -rw-r--r-- | dev-R/RcppEnsmallen/Manifest | 1 | ||||
| -rw-r--r-- | dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild | 46 | ||||
| -rw-r--r-- | dev-R/RcppEnsmallen/metadata.xml | 29 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-R/RcppEnsmallen/Manifest b/dev-R/RcppEnsmallen/Manifest new file mode 100644 index 000000000000..a0c565f82cb9 --- /dev/null +++ b/dev-R/RcppEnsmallen/Manifest @@ -0,0 +1 @@ +DIST RcppEnsmallen_0.2.17.0.1.tar.gz 243399 BLAKE2B c143d6f2d3631e1226ee35894fc56ea113a756418efbd1e2deb70d9b1ddbf63e79b6cbe8c86f2dab81bbfd62af2ae464651fedd893dee0c6961c8759f589c421 SHA512 6b6c10ad188b13cca2498c5fc2cec74a18eab34f30411cbc48e09c327253889aa85a80717372aadc2f5c2245f7a7332c474cae237730bab5dbf4b4895f0f7607 diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild new file mode 100644 index 000000000000..129a0fa23760 --- /dev/null +++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit R-packages eapi8-dosym + +MY_PV="$(ver_cut 2-4 ${PV})" +DESCRIPTION='Header-Only C++ Mathematical Optimization library for armadillo' +#SRC_URI="mirror://cran/src/contrib/RcppEnsmallen/RcppEnsmallen_${PV}.tar.gz" +KEYWORDS="~amd64" +LICENSE='GPL-2+' + +DEPEND=" + >=dev-lang/R-3.3.0 + dev-R/Rcpp + =sci-libs/ensmallen-${MY_PV}* +" +RDEPEND="${DEPEND} + >=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 + ln -s "${ESYSROOT}"/usr/include/ensmallen_bits inst/include/ensmallen_bits || die + ln -s "${ESYSROOT}"/usr/include/ensmallen.hpp inst/include/ensmallen.hpp || die +} + +src_install() { + R-packages_src_install + + R_includedir="/usr/$(get_libdir)/R/site-library/${PN}/include" + dosym8 -r /usr/include/ensmallen.hpp "${R_includedir}/ensmallen.hpp" + + dodir /usr/include/ensmallen_bits + for file in "${ED}/${R_includedir}"/ensmallen_bits/*; do + filename=$(basename "${file}") + dosym8 -r /usr/include/ensmallen_bits/${filename} "${R_includedir}/ensmallen_bits/${filename}" + done +} diff --git a/dev-R/RcppEnsmallen/metadata.xml b/dev-R/RcppEnsmallen/metadata.xml new file mode 100644 index 000000000000..dab676e0246f --- /dev/null +++ b/dev-R/RcppEnsmallen/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <description>co-maintainers welcome</description> + <email>lssndrbarbieri@gmail.com</email> + <name>Alessandro Barbieri</name> + </maintainer> + <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> |
