commit:     36aa1b85c50f1c6eac0106d7c1ae7ca6b8da8e9b
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 27 23:37:30 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 18 21:44:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36aa1b85

sci-libs/lapack: Don't include ROOT in directory of eselect entries

ROOT is not applicable at runtime, so only the EPREFIX should be present.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 sci-libs/lapack/lapack-3.11.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/lapack/lapack-3.11.ebuild 
b/sci-libs/lapack/lapack-3.11.ebuild
index c13b5b123b6d..737bed9e5fdb 100644
--- a/sci-libs/lapack/lapack-3.11.ebuild
+++ b/sci-libs/lapack/lapack-3.11.ebuild
@@ -74,7 +74,7 @@ pkg_postinst() {
 
        local me=reference libdir=$(get_libdir)
        # check eselect-blas
-       eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me}
+       eselect blas add ${libdir} "${EPREFIX}"/usr/${libdir}/blas/${me} ${me}
        local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
        if [[ ${current_blas} == ${me} || -z ${current_blas} ]]; then
                eselect blas set ${libdir} ${me}
@@ -86,7 +86,7 @@ pkg_postinst() {
        fi
 
        # check eselect-lapack
-       eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me}
+       eselect lapack add ${libdir} "${EPREFIX}"/usr/${libdir}/lapack/${me} 
${me}
        local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2)
        if [[ ${current_lapack} == ${me} || -z ${current_lapack} ]]; then
                eselect lapack set ${libdir} ${me}

Reply via email to