From f28ca7b6cb4501e9f8190ef5ec83985d0cf982bc Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Mon, 15 Jul 2019 14:07:48 +1000 Subject: [PATCH] Small fixes in gmt ebuilds --- sci-geosciences/gmt/gmt-5.4.4.ebuild | 2 +- sci-geosciences/gmt/gmt-9999.ebuild | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/sci-geosciences/gmt/gmt-5.4.4.ebuild b/sci-geosciences/gmt/gmt-5.4.4.ebuild index 310cf05..6730d2f 100644 --- a/sci-geosciences/gmt/gmt-5.4.4.ebuild +++ b/sci-geosciences/gmt/gmt-5.4.4.ebuild @@ -121,5 +121,5 @@ src_install() { rm "${ED}/usr/bin/gmtswitch" || die # Rename bash completion file - mv "$ED/$(get_bashcompdir)/gmt_completion.bash" "$ED/$(get_bashcompdir)/gmt" || die + mv "${D}/$(get_bashcompdir)/gmt_completion.bash" "${D}/$(get_bashcompdir)/gmt" || die } diff --git a/sci-geosciences/gmt/gmt-9999.ebuild b/sci-geosciences/gmt/gmt-9999.ebuild index 5ed3e5f..fbbe669 100644 --- a/sci-geosciences/gmt/gmt-9999.ebuild +++ b/sci-geosciences/gmt/gmt-9999.ebuild @@ -114,16 +114,7 @@ src_install() { # Decompress manuals if use doc || use htmldoc; then - pushd "${ED}/usr/share/man" || die - local d f - for d in man*; do - pushd $d || die - for f in *.gz; do - gunzip $f || die - done - popd || die - done - popd || die + find "${ED}/usr/share/man" -name "*.gz" -exec gunzip {} + || die fi if use multislot; then @@ -134,5 +125,5 @@ src_install() { rm "${ED}/usr/bin/gmtswitch" || die # Rename bash completion file - mv "$ED/$(get_bashcompdir)/gmt_completion.bash" "$ED/$(get_bashcompdir)/gmt" || die + mv "${D}/$(get_bashcompdir)/gmt_completion.bash" "${D}/$(get_bashcompdir)/gmt" || die }