commit:     da31ca138ee6cba623e1a029cd9cced09075d5ec
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 16:58:03 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 17:04:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da31ca13

net-misc/wget: simplify hack in src_prepare

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-misc/wget/wget-1.21.2.ebuild | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/net-misc/wget/wget-1.21.2.ebuild b/net-misc/wget/wget-1.21.2.ebuild
index 9d3077c2029a..5188493fdfcb 100644
--- a/net-misc/wget/wget-1.21.2.ebuild
+++ b/net-misc/wget/wget-1.21.2.ebuild
@@ -59,14 +59,11 @@ src_prepare() {
        default
 
        # revert some hack that breaks linking, bug #585924
-       if [[ ${CHOST} == *-darwin* ]] \
-       || [[ ${CHOST} == *-solaris* ]] \
-       || [[ ${CHOST} == *-cygwin* ]] \
-       ; then
-               sed -i \
-                       -e 's/^  LIBICONV=$/:/' \
-                       configure || die
-       fi
+       case ${CHOST} in
+               *-darwin*|*-solaris*|*-cygwin*)
+                       sed -i -e 's/^  LIBICONV=$/:/' configure || die
+                       ;;
+       esac
 
        sed -i -e "s:/usr/local/etc:${EPREFIX}/etc:g" 
doc/{sample.wgetrc,wget.texi} || die
 }

Reply via email to