commit:     8a99b86928262c43661eb6b461cbaf8f9ca93063
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 15:49:19 2020 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 15:49:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a99b869

sci-visualization/gr: Only create symlink if target exists

Closes: https://bugs.gentoo.org/750056
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-visualization/gr/{gr-0.50.0-r1.ebuild => gr-0.50.0-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-visualization/gr/gr-0.50.0-r1.ebuild 
b/sci-visualization/gr/gr-0.50.0-r2.ebuild
similarity index 96%
rename from sci-visualization/gr/gr-0.50.0-r1.ebuild
rename to sci-visualization/gr/gr-0.50.0-r2.ebuild
index 7a120d608f3..9d42c16208c 100644
--- a/sci-visualization/gr/gr-0.50.0-r1.ebuild
+++ b/sci-visualization/gr/gr-0.50.0-r2.ebuild
@@ -68,7 +68,7 @@ src_install() {
        echo "LDPATH=/usr/gr/$(get_libdir)" >> "${T}/99gr"
        doenvd "${T}/99gr"
 
-       dosym ../gr/bin/gksqt /usr/bin/gksqt
+       [[ -f "${ED}/usr/gr/bin/gksqt" ]] && dosym ../gr/bin/gksqt 
/usr/bin/gksqt
 
        elog "${P} relies on the environment variable GRDIR. If you want to use 
it in a running shell,"
        elog "e.g. with dev-lang/julia, then run \"source /etc/profile\" first."

Reply via email to