public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-R/RcppEnsmallen/
Date: Wed,  9 Feb 2022 13:12:43 +0000 (UTC)	[thread overview]
Message-ID: <1644412326.b1a05a38da86f25de5427125947629fe84381356.cybertailor@gentoo> (raw)

commit:     b1a05a38da86f25de5427125947629fe84381356
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Feb  9 06:12:49 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed Feb  9 13:12:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1a05a38

dev-R/RcppEnsmallen: fix symlinks

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 .../RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild  | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
index 4a00cf0af..08436d0db 100644
--- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
@@ -3,10 +3,9 @@
 
 EAPI=7
 
-MYPV="$(ver_cut 2-4 ${PV})"
-
-inherit R-packages
+inherit R-packages eapi8-dosym
 
+MY_PV="$(ver_cut 2-4 ${PV})"
 DESCRIPTION='Header-Only C++ Mathematical Optimization library for armadillo'
 #SRC_URI="mirror://cran/src/contrib/RcppEnsmallen/RcppEnsmallen_${PV}.tar.gz"
 KEYWORDS="~amd64"
@@ -15,26 +14,27 @@ LICENSE='GPL-2+'
 DEPEND="
 	>=dev-lang/R-3.3.0
 	dev-R/Rcpp
-	=sci-libs/ensmallen-${MYPV}*
+	=sci-libs/ensmallen-${MY_PV}*
 "
-RDEPEND="
-	${DEPEND}
-	dev-R/Rcpp
+RDEPEND="${DEPEND}
 	>=dev-R/RcppArmadillo-0.8.400.0.0
 "
 
 src_prepare() {
 	default
-	#remove bundled
+
+	# remove bundled
 	rm -r inst/include/ensmallen_bits || die
 	rm inst/include/ensmallen.hpp || die
-	#link to sci-libs/ensmallen
-	dosym /usr/include/ensmallen_bits inst/include/ensmallen_bits
-	dosym /usr/include/ensmallen.hpp inst/include/ensmallen.hpp
+
+	# link to sci-libs/ensmallen
+	ln -s "${ESYSROOT}"/usr/include/ensmallen_bits inst/include/ensmallen_bits || die
+	ln -s "${ESYSROOT}"/usr/include/ensmallen.hpp inst/include/ensmallen.hpp || die
 }
 
 src_install() {
 	R-packages_src_install
-	dosym /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits"
-	dosym /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp"
+
+	dosym8 -r /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits"
+	dosym8 -r /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp"
 }


             reply	other threads:[~2022-02-09 13:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09 13:12 Anna Vyalkova [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-28 12:53 [gentoo-commits] repo/proj/guru:dev commit in: dev-R/RcppEnsmallen/ Alessandro Barbieri
2022-05-05  7:32 Alessandro Barbieri
2022-05-04  2:40 Alessandro Barbieri
2022-04-15 20:34 Alessandro Barbieri
2022-02-24  7:54 Anna Vyalkova
2022-02-23 13:44 Anna Vyalkova
2022-02-17 21:11 Anna Vyalkova
2021-10-05 21:29 Alessandro Barbieri
2021-10-05 21:24 Alessandro Barbieri
2021-06-20 23:17 Alessandro Barbieri
2021-06-11 15:23 Alessandro Barbieri
2021-05-31 22:04 Alessandro Barbieri

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=1644412326.b1a05a38da86f25de5427125947629fe84381356.cybertailor@gentoo \
    --to=cyber+gentoo@sysrq.in \
    --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