summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-12-18 15:49:46 +0100
committerFabian Groffen <grobian@gentoo.org>2020-12-18 15:49:50 +0100
commit2c048b24de295c4767ab8b7f0edb6532f63932f3 (patch)
tree10e80524893e2cf683a7902d700300ca93605cf6 /app-crypt/rhash
parentdev-db/pgadmin4: Bump to 4.29 (diff)
downloadgentoo-2c048b24de295c4767ab8b7f0edb6532f63932f3.tar.gz
gentoo-2c048b24de295c4767ab8b7f0edb6532f63932f3.tar.bz2
gentoo-2c048b24de295c4767ab8b7f0edb6532f63932f3.zip
app-crypt/rhash-1.4.0: fix compilation on ppc-macos
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-crypt/rhash')
-rw-r--r--app-crypt/rhash/rhash-1.4.0.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-crypt/rhash/rhash-1.4.0.ebuild b/app-crypt/rhash/rhash-1.4.0.ebuild
index e777c4b21ffd..88a8e3ebfe3f 100644
--- a/app-crypt/rhash/rhash-1.4.0.ebuild
+++ b/app-crypt/rhash/rhash-1.4.0.ebuild
@@ -32,6 +32,13 @@ S="${WORKDIR}/RHash-${PV}"
src_prepare() {
default
+
+ if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then
+ # we lack posix_memalign
+ sed -i -e '/if _POSIX_VERSION/s/if .*$/if 0/' \
+ librhash/util.h || die
+ fi
+
multilib_copy_sources
}