app-crypt/rhash: fix configure for Cygwin
authorMichael Haubenwallner <haubi@gentoo.org>
Wed, 12 Jun 2019 07:15:38 +0000 (09:15 +0200)
committerMichael Haubenwallner <haubi@gentoo.org>
Thu, 13 Jun 2019 13:07:29 +0000 (15:07 +0200)
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
app-crypt/rhash/rhash-1.3.8.ebuild

index e179038547c02c0342d2bcdc4a12cd356d317a67..4f5348c2244bdd8813fa1e99ad11bca78ace069f 100644 (file)
@@ -35,6 +35,9 @@ src_prepare() {
        # fix Solaris detection, upstream:
        # https://github.com/rhash/RHash/pull/81
        sed -i -e 's/sunos)/solaris2.*)/' configure || die
+       # fix Cygwin detection, upstream:
+       # https://github.com/rhash/RHash/pull/89
+       sed -i -e '/TARGET_OS=Darwin/acygwin*) TARGET_OS=CYGWIN ;;' configure || die
        multilib_copy_sources
 }