commit:     39141ad444b24a3c137d765be5675177dd8f99dc
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Fri Mar 26 03:00:00 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 14:38:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39141ad4

app-i18n/opencc: Disable dev-cpp/benchmark dependency on HPPA and SPARC.

Bug: https://bugs.gentoo.org/760803

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 app-i18n/opencc/opencc-1.1.1.ebuild | 6 +++---
 app-i18n/opencc/opencc-9999.ebuild  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app-i18n/opencc/opencc-1.1.1.ebuild 
b/app-i18n/opencc/opencc-1.1.1.ebuild
index 896492a3195..049871a6581 100644
--- a/app-i18n/opencc/opencc-1.1.1.ebuild
+++ b/app-i18n/opencc/opencc-1.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2010-2020 Gentoo Authors
+# Copyright 2010-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -33,8 +33,8 @@ DEPEND="dev-cpp/tclap
        dev-libs/marisa:0=
        dev-libs/rapidjson
        test? (
-               dev-cpp/benchmark
                dev-cpp/gtest
+               !hppa? ( !sparc? ( dev-cpp/benchmark ) )
        )"
 RDEPEND="dev-libs/marisa:0="
 
@@ -62,7 +62,7 @@ src_configure() {
 
        local mycmakeargs=(
                -DBUILD_DOCUMENTATION=$(usex doc ON OFF)
-               -DENABLE_BENCHMARK=$(usex test ON OFF)
+               -DENABLE_BENCHMARK=$(if use test && has_version -d 
dev-cpp/benchmark; then echo ON; else echo OFF; fi)
                -DENABLE_GTEST=$(usex test ON OFF)
                -DUSE_SYSTEM_DARTS=ON
                -DUSE_SYSTEM_GOOGLE_BENCHMARK=ON

diff --git a/app-i18n/opencc/opencc-9999.ebuild 
b/app-i18n/opencc/opencc-9999.ebuild
index 5a7b902e810..2bcf333bd7c 100644
--- a/app-i18n/opencc/opencc-9999.ebuild
+++ b/app-i18n/opencc/opencc-9999.ebuild
@@ -33,8 +33,8 @@ DEPEND="dev-cpp/tclap
        dev-libs/marisa:0=
        dev-libs/rapidjson
        test? (
-               dev-cpp/benchmark
                dev-cpp/gtest
+               !hppa? ( !sparc? ( dev-cpp/benchmark ) )
        )"
 RDEPEND="dev-libs/marisa:0="
 
@@ -55,7 +55,7 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DBUILD_DOCUMENTATION=$(usex doc ON OFF)
-               -DENABLE_BENCHMARK=$(usex test ON OFF)
+               -DENABLE_BENCHMARK=$(if use test && has_version -d 
dev-cpp/benchmark; then echo ON; else echo OFF; fi)
                -DENABLE_GTEST=$(usex test ON OFF)
                -DUSE_SYSTEM_DARTS=ON
                -DUSE_SYSTEM_GOOGLE_BENCHMARK=ON

Reply via email to