commit:     2d79721b639c9a5870f808685c9a2c0a367ed9f9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 13 21:18:37 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 23:18:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d79721b

app-office/libreoffice: Add gnome-base/dconf to USE=eds as well

It simplifies REQUIRED_USE further, esp. with gtk3 still not being stable.

Package-Manager: Portage-2.3.18, Repoman-2.3.6

 app-office/libreoffice/libreoffice-5.4.9999.ebuild | 18 +++++++++++-------
 app-office/libreoffice/libreoffice-6.0.9999.ebuild | 18 +++++++++++-------
 app-office/libreoffice/libreoffice-9999.ebuild     | 18 +++++++++++-------
 3 files changed, 33 insertions(+), 21 deletions(-)

diff --git a/app-office/libreoffice/libreoffice-5.4.9999.ebuild 
b/app-office/libreoffice/libreoffice-5.4.9999.ebuild
index 201395b5c80..7215809cdb3 100644
--- a/app-office/libreoffice/libreoffice-5.4.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-5.4.9999.ebuild
@@ -139,6 +139,7 @@ COMMON_DEPEND="${PYTHON_DEPS}
        dbus? ( dev-libs/dbus-glib )
        eds? (
                dev-libs/glib:2
+               gnome-base/dconf
                gnome-extra/evolution-data-server
        )
        firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
@@ -231,7 +232,6 @@ DEPEND="${COMMON_DEPEND}
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
        bluetooth? ( dbus )
        collada? ( gltf )
-       eds? ( gtk3 )
        libreoffice_extensions_nlpsolver? ( java )
        libreoffice_extensions_scripting-beanshell? ( java )
        libreoffice_extensions_scripting-javascript? ( java )
@@ -349,8 +349,7 @@ src_prepare() {
 }
 
 src_configure() {
-       local java_opts
-       local ext_opts
+       local ext_opts gtk_opts java_opts
 
        # Set up Google API keys, see 
https://www.chromium.org/developers/how-tos/api-keys
        # Note: these are for Gentoo use ONLY. For your own distribution, 
please get
@@ -378,6 +377,12 @@ src_configure() {
                fi
        done
 
+       if use eds || use gtk3; then
+               gtk_opts=( --enable-dconf --enable-gio )
+       else
+               gtk_opts=( --disable-dconf --disable-gio )
+       fi
+
        if use java; then
                # hsqldb: system one is too new
                java_opts="
@@ -465,8 +470,6 @@ src_configure() {
                $(use_enable gstreamer gstreamer-1-0) \
                $(use_enable gtk) \
                $(use_enable gtk3) \
-               $(use_enable gtk3 dconf) \
-               $(use_enable gtk3 gio) \
                $(use_enable kde kde4) \
                $(use_enable mysql ext-mariadb-connector) \
                $(use_enable odk) \
@@ -482,8 +485,9 @@ src_configure() {
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
-               ${java_opts} \
-               ${ext_opts}
+               ${ext_opts} \
+               ${gtk_opts[@]} \
+               ${java_opts}
 }
 
 src_compile() {

diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild 
b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
index 6033b315d7e..e489cde34e3 100644
--- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild
@@ -139,6 +139,7 @@ COMMON_DEPEND="${PYTHON_DEPS}
        dbus? ( dev-libs/dbus-glib )
        eds? (
                dev-libs/glib:2
+               gnome-base/dconf
                gnome-extra/evolution-data-server
        )
        firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
@@ -234,7 +235,6 @@ DEPEND="${COMMON_DEPEND}
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
        bluetooth? ( dbus )
-       eds? ( gtk3 )
        kde? ( || ( qt4 qt5 ) )
        libreoffice_extensions_nlpsolver? ( java )
        libreoffice_extensions_scripting-beanshell? ( java )
@@ -354,8 +354,7 @@ src_prepare() {
 }
 
 src_configure() {
-       local java_opts
-       local ext_opts
+       local ext_opts gtk_opts java_opts
 
        # Set up Google API keys, see 
https://www.chromium.org/developers/how-tos/api-keys
        # Note: these are for Gentoo use ONLY. For your own distribution, 
please get
@@ -378,6 +377,12 @@ src_configure() {
                fi
        done
 
+       if use eds || use gtk3; then
+               gtk_opts=( --enable-dconf --enable-gio )
+       else
+               gtk_opts=( --disable-dconf --disable-gio )
+       fi
+
        if use java; then
                # hsqldb: system one is too new
                java_opts="
@@ -468,8 +473,6 @@ src_configure() {
                $(use_enable gstreamer gstreamer-1-0) \
                $(use_enable gtk) \
                $(use_enable gtk3) \
-               $(use_enable gtk3 dconf) \
-               $(use_enable gtk3 gio) \
                $(use_enable mysql ext-mariadb-connector) \
                $(use_enable odk) \
                $(use_enable pdfimport) \
@@ -483,8 +486,9 @@ src_configure() {
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
-               ${java_opts} \
-               ${ext_opts}
+               ${ext_opts} \
+               ${gtk_opts[@]} \
+               ${java_opts}
 }
 
 src_compile() {

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild 
b/app-office/libreoffice/libreoffice-9999.ebuild
index 6033b315d7e..e489cde34e3 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -139,6 +139,7 @@ COMMON_DEPEND="${PYTHON_DEPS}
        dbus? ( dev-libs/dbus-glib )
        eds? (
                dev-libs/glib:2
+               gnome-base/dconf
                gnome-extra/evolution-data-server
        )
        firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
@@ -234,7 +235,6 @@ DEPEND="${COMMON_DEPEND}
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
        bluetooth? ( dbus )
-       eds? ( gtk3 )
        kde? ( || ( qt4 qt5 ) )
        libreoffice_extensions_nlpsolver? ( java )
        libreoffice_extensions_scripting-beanshell? ( java )
@@ -354,8 +354,7 @@ src_prepare() {
 }
 
 src_configure() {
-       local java_opts
-       local ext_opts
+       local ext_opts gtk_opts java_opts
 
        # Set up Google API keys, see 
https://www.chromium.org/developers/how-tos/api-keys
        # Note: these are for Gentoo use ONLY. For your own distribution, 
please get
@@ -378,6 +377,12 @@ src_configure() {
                fi
        done
 
+       if use eds || use gtk3; then
+               gtk_opts=( --enable-dconf --enable-gio )
+       else
+               gtk_opts=( --disable-dconf --disable-gio )
+       fi
+
        if use java; then
                # hsqldb: system one is too new
                java_opts="
@@ -468,8 +473,6 @@ src_configure() {
                $(use_enable gstreamer gstreamer-1-0) \
                $(use_enable gtk) \
                $(use_enable gtk3) \
-               $(use_enable gtk3 dconf) \
-               $(use_enable gtk3 gio) \
                $(use_enable mysql ext-mariadb-connector) \
                $(use_enable odk) \
                $(use_enable pdfimport) \
@@ -483,8 +486,9 @@ src_configure() {
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
-               ${java_opts} \
-               ${ext_opts}
+               ${ext_opts} \
+               ${gtk_opts[@]} \
+               ${java_opts}
 }
 
 src_compile() {

Reply via email to