summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2019-12-23 21:16:10 +0000
committerMike Gilbert <floppym@gentoo.org>2019-12-29 14:31:34 -0500
commit313353afecffe37667c99824285f012d0b342676 (patch)
treebc34e75ff6d145836d0212a9ba7962c160a8b74b /app-i18n/librime
parentdev-cpp/glog: Stabilize 0.4.0 on amd64/x86. (diff)
downloadgentoo-313353afecffe37667c99824285f012d0b342676.tar.gz
gentoo-313353afecffe37667c99824285f012d0b342676.tar.bz2
gentoo-313353afecffe37667c99824285f012d0b342676.zip
app-i18n/librime: Add "debug" USE flag.
Bug: https://bugs.gentoo.org/695702 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n/librime')
-rw-r--r--app-i18n/librime/librime-1.5.3.ebuild8
-rw-r--r--app-i18n/librime/metadata.xml3
2 files changed, 10 insertions, 1 deletions
diff --git a/app-i18n/librime/librime-1.5.3.ebuild b/app-i18n/librime/librime-1.5.3.ebuild
index 074f50244aa..9827ea65ff6 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 1ef87e42d3d..777c41df84a 100644
--- a/app-i18n/librime/metadata.xml
+++ b/app-i18n/librime/metadata.xml
@@ -9,6 +9,9 @@
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
+ <use>
+ <flag name="debug">Enable debugging (including logging of input of RIME input methods)</flag>
+ </use>
<upstream>
<maintainer>
<email>chen.sst@gmail.com</email>