mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
39 lines
993 B
Bash
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"
|
|
}
|