public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-R/RcppArmadillo/
Date: Wed,  2 Jun 2021 16:00:32 +0000 (UTC)	[thread overview]
Message-ID: <1622504274.86b6f3900ae216240f7cfe9b26f268db6e6132c4.andrewammerlaan@gentoo> (raw)

commit:     86b6f3900ae216240f7cfe9b26f268db6e6132c4
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon May 31 23:37:54 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon May 31 23:37:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=86b6f390

dev-R/RcppArmadillo: attempt and unbundling armadillo using symlinks

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
index 849f5e730..f14fd4406 100644
--- a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
+++ b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
@@ -12,8 +12,25 @@ LICENSE='GPL-2+'
 DEPEND="
 	>=dev-lang/R-3.3.0
 	>=dev-R/Rcpp-0.11.0
+	sci-libs/armadillo[lapack]
 "
 RDEPEND="
 	${DEPEND}
 	dev-R/Rcpp
 "
+
+#TODO: correctly link to lapack
+
+src_prepare() {
+	default
+	rm -r inst/include/armadillo_bits || die
+	rm inst/include/armadillo || die
+	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"
+}


             reply	other threads:[~2021-06-02 16:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 16:00 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-31 15:52 [gentoo-commits] repo/proj/guru:master commit in: dev-R/RcppArmadillo/ David Roman
2023-07-31 15:48 [gentoo-commits] repo/proj/guru:dev " David Roman
2023-07-31 15:52 ` [gentoo-commits] repo/proj/guru:master " David Roman
2023-07-31 15:48 [gentoo-commits] repo/proj/guru:dev " David Roman
2023-07-31 15:52 ` [gentoo-commits] repo/proj/guru:master " David Roman
2023-07-29 15:04 Florian Schmaus
2022-02-24 11:10 Ronny Gutbrod
2022-02-24 11:10 Ronny Gutbrod
2022-02-20  8:46 Florian Schmaus
2021-06-02 16:00 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1622504274.86b6f3900ae216240f7cfe9b26f268db6e6132c4.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox