Files
guru/dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild
Alessandro Barbieri 7d69768a68 dev-R/RcppArmadillo: add 0.10.2.2.0, drop 0.10.5.0.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-06-01 06:55:31 +02:00

39 lines
993 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit R-packages
MYPV="$(ver_cut 2-3 ${PV})"
DESCRIPTION='Rcpp Integration for the Armadillo templated linear algebra library'
SRC_URI="mirror://cran/src/contrib/Archive/${PN}/${PN}_${PV}.tar.gz"
KEYWORDS="~amd64"
LICENSE='GPL-2+'
DEPEND="
>=dev-lang/R-3.3.0
>=dev-R/Rcpp-0.11.0
=sci-libs/armadillo-${MYPV}*:=[lapack]
"
RDEPEND="${DEPEND}"
#TODO: correctly link to lapack
src_prepare() {
default
#remove bundled
rm -r inst/include/armadillo_bits || die
rm inst/include/armadillo || die
#link to sci-libs/armadillo
dosym /usr/include/armadillo_bits inst/include/armadillo_bits
dosym /usr/include/armadillo inst/include/armadillo
}
src_install() {
R-packages_src_install
dosym /usr/include/armadillo_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo_bits"
dosym /usr/include/armadillo "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo"
}