mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 16:13:21 -04:00
41 lines
1016 B
Bash
41 lines
1016 B
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MYPV="$(ver_cut 2-4 ${PV})"
|
|
|
|
inherit R-packages
|
|
|
|
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-${MYPV}*
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
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"
|
|
}
|