Skip to content

Commit

Permalink
dev-scheme/slib: use EAPI 8 dosym's -r switch
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed Aug 5, 2022
1 parent 461943f commit 0cb7183
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions dev-scheme/slib/slib-3.2.5-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -56,37 +56,36 @@ src_install() {

# bin
dodir /usr/bin/
dosym ../../usr/share/${PN}/${PN}.sh /usr/bin/${PN}
dosym -r /usr/share/${PN}/${PN}.sh /usr/bin/${PN}

# env
doenvd "${FILESDIR}"/50slib

# docs
doinfo slib.info
doman slib.1

# guile
if has_version '=dev-scheme/guile-3.0*'; then
dodir /usr/share/guile/3.0
dosym ../../../../usr/share/${PN}/ /usr/share/guile/3.0/${PN}
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 ../../../../usr/share/${PN}/ /usr/share/guile/2.2/${PN}
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 ../../../../usr/share/${PN}/ /usr/share/guile/2.0/${PN}
dosym -r /usr/share/${PN}/ /usr/share/guile/2.0/${PN}
else
dodir /usr/share/guile/1.8
dosym ../../../../usr/share/${PN}/ /usr/share/guile/1.8/${PN}
dosym -r /usr/share/${PN}/ /usr/share/guile/1.8/${PN}
fi

# gambit
use gambit && dodir /usr/share/gambc

# backwards compatibility
dodir /usr/lib/
dosym ../../usr/share/${PN}/ /usr/lib/${PN}
dosym -r /usr/share/${PN}/ /usr/lib/${PN}

# docs
doinfo slib.info
doman slib.1
einstalldocs
}

Expand Down

0 comments on commit 0cb7183

Please sign in to comment.