summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2021-03-26 03:00:00 +0000
committerMike Gilbert <floppym@gentoo.org>2021-03-26 10:38:03 -0400
commit39141ad444b24a3c137d765be5675177dd8f99dc (patch)
treedc725ab8b641dab8aa4eda3bd6caec675df805da /app-i18n
parentapp-i18n/opencc: Stop using no longer needed patch. (diff)
downloadgentoo-39141ad444b24a3c137d765be5675177dd8f99dc.tar.gz
gentoo-39141ad444b24a3c137d765be5675177dd8f99dc.tar.bz2
gentoo-39141ad444b24a3c137d765be5675177dd8f99dc.zip
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@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/opencc/opencc-1.1.1.ebuild6
-rw-r--r--app-i18n/opencc/opencc-9999.ebuild4
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 896492a3195f..049871a65815 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 5a7b902e810d..2bcf333bd7cf 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