dev-libs/xxhash: Mark ~hppa too.
authorJeroen Roovers <jer@gentoo.org>
Sat, 8 Sep 2018 11:30:05 +0000 (13:30 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 8 Sep 2018 11:30:41 +0000 (13:30 +0200)
Package-Manager: Portage-2.3.49, Repoman-2.3.10
RepoMan-Options: --ignore-arches

dev-libs/xxhash/xxhash-0.6.5.ebuild

index 2b31be40a06710af33b22633fbf7f98a19abfa5d..f23c18c478a8d816ee2216d6d7b7b04c6cbbc17c 100644 (file)
@@ -2,8 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
 HOMEPAGE="http://www.xxhash.com"
@@ -11,13 +10,17 @@ SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz
 
 LICENSE="BSD-2 GPL-2+"
 SLOT="0"
-KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x64-macos"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x64-macos"
 IUSE="static-libs"
 
 DEPEND=""
 
 S="${WORKDIR}/xxHash-${PV}"
 
+src_configure() {
+       use hppa && replace-flags '-O*' '-O0'
+}
+
 src_compile() {
        PREFIX="${EPREFIX}/usr" \
        LIBDIR="${EPREFIX}/usr/$(get_libdir)" \