summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/bibletime/bibletime-9999.ebuild')
-rw-r--r--app-text/bibletime/bibletime-9999.ebuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/app-text/bibletime/bibletime-9999.ebuild b/app-text/bibletime/bibletime-9999.ebuild
index fae093f..42b734c 100644
--- a/app-text/bibletime/bibletime-9999.ebuild
+++ b/app-text/bibletime/bibletime-9999.ebuild
@@ -10,6 +10,8 @@ DESCRIPTION="Qt5 Bible study application using the SWORD library."
HOMEPAGE="http://www.bibletime.info/"
EGIT_REPO_URI="https://github.com/bibletime/bibletime.git"
+IUSE="debug"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
@@ -41,5 +43,16 @@ pkg_setup() {
}
src_configure() {
- cmake-utils_src_configure
+ local mycmakeargs=(
+ )
+ if use debug; then
+ mycmakeargs+=(
+ -DCMAKE_BUILD_TYPE=Debug
+ )
+ else
+ mycmakeargs+=(
+ -DCMAKE_BUILD_TYPE=Release
+ )
+ fi
+ cmake-utils_src_configure
}