mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
dev-R/RcppArmadillo: add 0.10.8.1.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
55
dev-R/RcppArmadillo/RcppArmadillo-0.10.8.1.0.ebuild
Normal file
55
dev-R/RcppArmadillo/RcppArmadillo-0.10.8.1.0.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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-3 ${PV})"
|
||||
|
||||
DESCRIPTION='Rcpp Integration for the Armadillo templated linear algebra library'
|
||||
SRC_URI="mirror://cran/src/contrib/${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-${MY_PV}*:=[lapack]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
SUGGESTED_PACKAGES="
|
||||
dev-R/tinytest
|
||||
>=dev-R/Matrix-1.3.0
|
||||
dev-R/pkgKitten
|
||||
dev-R/reticulate
|
||||
dev-R/slam
|
||||
"
|
||||
|
||||
#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
|
||||
ln -s "${ESYSROOT}"/usr/include/armadillo_bits inst/include/armadillo_bits || die
|
||||
ln -s "${ESYSROOT}"/usr/include/armadillo inst/include/armadillo || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
R-packages_src_install
|
||||
|
||||
R_includedir="/usr/$(get_libdir)/R/site-library/${PN}/include"
|
||||
dosym8 -r /usr/include/armadillo "${R_includedir}/armadillo"
|
||||
|
||||
dodir /usr/include/armadillo_bits
|
||||
for file in "${ED}/${R_includedir}"/armadillo_bits/*; do
|
||||
filename=$(basename "${file}")
|
||||
dosym8 -r /usr/include/armadillo_bits/${filename} "${R_includedir}/armadillo_bits/${filename}"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user