From 764a739a13fedfed21a943dd19199f4ddc87c0b8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 22 Jan 2018 17:34:18 +0100 Subject: [PATCH] added debug useflag to ebuild --- packages/gentoo/mastodon-cpp-9999.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/gentoo/mastodon-cpp-9999.ebuild b/packages/gentoo/mastodon-cpp-9999.ebuild index aea754f..dbb535b 100644 --- a/packages/gentoo/mastodon-cpp-9999.ebuild +++ b/packages/gentoo/mastodon-cpp-9999.ebuild @@ -11,7 +11,7 @@ EGIT_REPO_URI="https://github.com/tastytea/mastodon-cpp.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="doc" +IUSE="doc debug" RDEPEND=">=dev-libs/boost-1.63.0" DEPEND=">=dev-util/cmake-3.9.6 doc? ( >=app-doc/doxygen-1.8.13-r1 ) @@ -27,6 +27,11 @@ src_configure() { -DWITH_EXAMPLES=NO -DWITH_TESTS=NO ) + if use debug; then + mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug) + else + mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release) + fi cmake-utils_src_configure }