commit:     8dbd512b9a701f3fdb2aae8cbee8b387a5f4d807
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 26 21:15:15 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 21:15:15 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8dbd512b

app-office/kmymoney: Add USE experimental - only for live

Closes: https://bugs.gentoo.org/705908
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-office/kmymoney/kmymoney-5.0.9999.ebuild | 11 ++++++++++-
 app-office/kmymoney/kmymoney-9999.ebuild     | 11 ++++++++++-
 app-office/kmymoney/metadata.xml             |  1 +
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/app-office/kmymoney/kmymoney-5.0.9999.ebuild 
b/app-office/kmymoney/kmymoney-5.0.9999.ebuild
index add18b3c87..483f0a978f 100644
--- a/app-office/kmymoney/kmymoney-5.0.9999.ebuild
+++ b/app-office/kmymoney/kmymoney-5.0.9999.ebuild
@@ -25,6 +25,7 @@ fi
 LICENSE="GPL-2"
 SLOT="5"
 IUSE="activities addressbook calendar hbci holidays ofx quotes webkit weboob"
+[[ ${KDE_BUILD_TYPE} = live ]] && IUSE+=" experimental"
 
 REQUIRED_USE="weboob? ( ${PYTHON_REQUIRED_USE} )"
 
@@ -77,8 +78,8 @@ COMMON_DEPEND="
        holidays? ( >=kde-frameworks/kholidays-${KFMIN}:5 )
        ofx? ( dev-libs/libofx )
        webkit? (
-               >=kde-frameworks/kdewebkit-${KFMIN}:5
                >=dev-qt/qtwebkit-5.212.0_pre20180120:5
+               >=kde-frameworks/kdewebkit-${KFMIN}:5
        )
        !webkit? ( >=dev-qt/qtwebengine-${QTMIN}:5[widgets] )
        weboob? (
@@ -98,6 +99,11 @@ RDEPEND="${COMMON_DEPEND}
 pkg_setup() {
        use weboob && python_setup
        ecm_pkg_setup
+
+       if [[ ${KDE_BUILD_TYPE} = live ]] && use experimental; then
+               ewarn "USE experimental set: Building infinished features."
+               ewarn "This *will* chew up your data. You have been warned."
+       fi
 }
 
 src_configure() {
@@ -115,6 +121,9 @@ src_configure() {
                -DENABLE_WEBOOB=$(usex weboob)
                $(cmake_use_find_package weboob PythonLibs)
        )
+       [[ ${KDE_BUILD_TYPE} = live ]] &&
+               mycmakeargs+=( -DENABLE_UNFINISHEDFEATURES=$(usex experimental) 
)
+
        ecm_src_configure
 }
 

diff --git a/app-office/kmymoney/kmymoney-9999.ebuild 
b/app-office/kmymoney/kmymoney-9999.ebuild
index 62e386a045..fc9a43ec10 100644
--- a/app-office/kmymoney/kmymoney-9999.ebuild
+++ b/app-office/kmymoney/kmymoney-9999.ebuild
@@ -24,6 +24,7 @@ fi
 LICENSE="GPL-2"
 SLOT="5"
 IUSE="activities addressbook calendar hbci holidays ofx quotes webkit weboob"
+[[ ${KDE_BUILD_TYPE} = live ]] && IUSE+=" experimental"
 
 REQUIRED_USE="weboob? ( ${PYTHON_REQUIRED_USE} )"
 
@@ -76,8 +77,8 @@ COMMON_DEPEND="
        holidays? ( >=kde-frameworks/kholidays-${KFMIN}:5 )
        ofx? ( dev-libs/libofx )
        webkit? (
-               >=kde-frameworks/kdewebkit-${KFMIN}:5
                >=dev-qt/qtwebkit-5.212.0_pre20180120:5
+               >=kde-frameworks/kdewebkit-${KFMIN}:5
        )
        !webkit? ( >=dev-qt/qtwebengine-${QTMIN}:5[widgets] )
        weboob? (
@@ -97,6 +98,11 @@ RDEPEND="${COMMON_DEPEND}
 pkg_setup() {
        use weboob && python_setup
        ecm_pkg_setup
+
+       if [[ ${KDE_BUILD_TYPE} = live ]] && use experimental; then
+               ewarn "USE experimental set: Building infinished features."
+               ewarn "This *will* chew up your data. You have been warned."
+       fi
 }
 
 src_configure() {
@@ -114,6 +120,9 @@ src_configure() {
                -DENABLE_WEBOOB=$(usex weboob)
                $(cmake_use_find_package weboob PythonLibs)
        )
+       [[ ${KDE_BUILD_TYPE} = live ]] &&
+               mycmakeargs+=( -DENABLE_UNFINISHEDFEATURES=$(usex experimental) 
)
+
        ecm_src_configure
 }
 

diff --git a/app-office/kmymoney/metadata.xml b/app-office/kmymoney/metadata.xml
index 34cd0358c5..8bbfa55917 100644
--- a/app-office/kmymoney/metadata.xml
+++ b/app-office/kmymoney/metadata.xml
@@ -8,6 +8,7 @@
        <use>
                <flag name="activities">Enable 
<pkg>kde-frameworks/kactivities</pkg> integration</flag>
                <flag name="addressbook">Enable <pkg>kde-apps/akonadi</pkg> 
contact integration</flag>
+               <flag name="experimental">Build unfinished features. DANGEROUS 
to set - this *will* chew up data</flag>
                <flag name="hbci">Enable HBCI support using 
<pkg>net-libs/aqbanking</pkg></flag>
                <flag name="holidays">Enable 
<pkg>kde-frameworks/kholidays</pkg> integration</flag>
                <flag name="quotes">Enable Online Stock Quote retrieval</flag>

Reply via email to