From: Michael Haubenwallner <haubi@gentoo.org>
Date: Wed, 12 Jun 2019 07:15:38 +0000 (+0200)
Subject: app-crypt/rhash: fix configure for Cygwin
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08b98eae25ed4dc6d2c1af6749b172231cd3f5fd;p=gentoo.git

app-crypt/rhash: fix configure for Cygwin

Package-Manager: Portage-2.3.66, Repoman-2.3.11
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
---

diff --git a/app-crypt/rhash/rhash-1.3.8.ebuild b/app-crypt/rhash/rhash-1.3.8.ebuild
index e179038547c0..4f5348c2244b 100644
--- a/app-crypt/rhash/rhash-1.3.8.ebuild
+++ b/app-crypt/rhash/rhash-1.3.8.ebuild
@@ -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
 }