summaryrefslogtreecommitdiff
path: root/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-05-05 12:39:13 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-05-05 12:39:13 +0000
commit8a4f25c17601de403342a103fed7b8809f820f63 (patch)
tree67926c769647b28614fc4a991121b8180dde7d15 /dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild
parent1a0422d9518fb795cbf2e9ffd2310ed561b5c5db (diff)
downloadbaldeagleos-repo-8a4f25c17601de403342a103fed7b8809f820f63.tar.gz
baldeagleos-repo-8a4f25c17601de403342a103fed7b8809f820f63.tar.xz
baldeagleos-repo-8a4f25c17601de403342a103fed7b8809f820f63.zip
Adding metadata
Diffstat (limited to 'dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild')
-rw-r--r--dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild
new file mode 100644
index 000000000000..9f73b5c34396
--- /dev/null
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.19.0.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 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'
+HOMEPAGE="
+ https://cran.r-project.org/package=RcppEnsmallen
+ https://github.com/coatless-rpkg/rcppensmallen
+"
+#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.9.800.0.0
+"
+
+SUGGESTED_PACKAGES="
+ dev-R/knitr
+ dev-R/rmarkdown
+"
+
+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"
+
+ # portage doesn't like symlinks to folders, symlink all the files then
+ rm -rf "${ED}/${R_includedir}"/ensmallen_bits/* || die
+ cp -rs "/usr/include/ensmallen_bits" "${ED}/${R_includedir}" || die
+}