mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 18:13:10 -04:00
dev-R/RcppArmadillo: add 0.10.2.2.0, drop 0.10.5.0.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
38
dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild
Normal file
38
dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# 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"
|
||||
}
|
||||
Reference in New Issue
Block a user