commit:     9d28275ad9ab730b71615854fa0f6707743b3b68
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  3 02:00:03 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun  3 02:18:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d28275a

app-i18n/librime: workaround dev-cpp/glog dependency on sparc

Not available on sparc (marked -sparc) so let's disable logging there.

Bug: https://bugs.gentoo.org/760803
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-i18n/librime/librime-1.7.3.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-i18n/librime/librime-1.7.3.ebuild 
b/app-i18n/librime/librime-1.7.3.ebuild
index 44310ba275b..c42f5d509f4 100644
--- a/app-i18n/librime/librime-1.7.3.ebuild
+++ b/app-i18n/librime/librime-1.7.3.ebuild
@@ -28,7 +28,7 @@ RESTRICT="!test? ( test )"
 
 BDEPEND="dev-libs/capnproto:0"
 RDEPEND="app-i18n/opencc:0=
-       >=dev-cpp/glog-0.3.5:0=
+       !sparc? ( >=dev-cpp/glog-0.3.5:0= )
        dev-cpp/yaml-cpp:0=
        dev-libs/boost:0=[threads]
        dev-libs/capnproto:0=
@@ -66,6 +66,8 @@ src_configure() {
                -DBUILD_TEST=$(usex test ON OFF)
                -DCMAKE_DISABLE_FIND_PACKAGE_Gflags=ON
                -DENABLE_EXTERNAL_PLUGINS=ON
+               # dev-cpp/glog is currently marked -sparc
+               -DENABLE_LOGGING=$(usex !sparc)
                -DINSTALL_PRIVATE_HEADERS=ON
        )
 

Reply via email to