From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 23 Dec 2019 21:16:10 +0000 (+0000) Subject: app-i18n/librime: Add "debug" USE flag. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=313353afecffe37667c99824285f012d0b342676;p=gentoo.git app-i18n/librime: Add "debug" USE flag. Bug: https://bugs.gentoo.org/695702 Signed-off-by: Arfrever Frehtes Taifersar Arahesis Signed-off-by: Mike Gilbert --- diff --git a/app-i18n/librime/librime-1.5.3.ebuild b/app-i18n/librime/librime-1.5.3.ebuild index 074f50244aa8..9827ea65ff66 100644 --- a/app-i18n/librime/librime-1.5.3.ebuild +++ b/app-i18n/librime/librime-1.5.3.ebuild @@ -23,7 +23,7 @@ fi LICENSE="BSD" SLOT="0/1" KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="test" +IUSE="debug test" RESTRICT="!test? ( test )" BDEPEND="" @@ -52,6 +52,12 @@ src_prepare() { src_configure() { local -x CXXFLAGS="${CXXFLAGS} -I${ESYSROOT}/usr/include/utf8cpp" + if use debug; then + CXXFLAGS+=" -DDCHECK_ALWAYS_ON" + else + CXXFLAGS+=" -DNDEBUG" + fi + local mycmakeargs=( -DBOOST_USE_CXX11=ON -DBUILD_TEST=$(usex test ON OFF) diff --git a/app-i18n/librime/metadata.xml b/app-i18n/librime/metadata.xml index 1ef87e42d3d5..777c41df84a4 100644 --- a/app-i18n/librime/metadata.xml +++ b/app-i18n/librime/metadata.xml @@ -9,6 +9,9 @@ cjk@gentoo.org Cjk + + Enable debugging (including logging of input of RIME input methods) + chen.sst@gmail.com