From eb987fe3efe229522a1eadda5fcc159aba2f22ba Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Tue, 27 Sep 2022 14:18:34 +0200 Subject: dev-scheme/slib: improve guile support install logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- dev-scheme/slib/slib-3.2.5-r2.ebuild | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'dev-scheme') diff --git a/dev-scheme/slib/slib-3.2.5-r2.ebuild b/dev-scheme/slib/slib-3.2.5-r2.ebuild index ef77505b6a2a..8b903a95d860 100644 --- a/dev-scheme/slib/slib-3.2.5-r2.ebuild +++ b/dev-scheme/slib/slib-3.2.5-r2.ebuild @@ -62,19 +62,13 @@ src_install() { doenvd "${FILESDIR}"/50slib # guile - if has_version '=dev-scheme/guile-3.0*'; then - dodir /usr/share/guile/3.0 - dosym -r /usr/share/${PN}/ /usr/share/guile/3.0/${PN} - elif has_version '=dev-scheme/guile-2.2*'; then - dodir /usr/share/guile/2.2 - dosym -r /usr/share/${PN}/ /usr/share/guile/2.2/${PN} - elif has_version '=dev-scheme/guile-2.0*'; then - dodir /usr/share/guile/2.0 - dosym -r /usr/share/${PN}/ /usr/share/guile/2.0/${PN} - else - dodir /usr/share/guile/1.8 - dosym -r /usr/share/${PN}/ /usr/share/guile/1.8/${PN} - fi + for guile_version in 3.0 2.2 2.0 1.8 ; do + if has_version "=dev-scheme/guile-${guile_version}*" ; then + dodir /usr/share/guile/${guile_version} + dosym -r /usr/share/${PN}/ /usr/share/guile/${guile_version}/${PN} + break + fi + done # gambit use gambit && dodir /usr/share/gambc -- cgit v1.2.3-65-gdbad