app-office/libreoffice: Add gnome-base/dconf to USE=eds as well
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Dec 2017 21:18:37 +0000 (22:18 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Dec 2017 23:18:38 +0000 (00:18 +0100)
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
app-office/libreoffice/libreoffice-6.0.9999.ebuild
app-office/libreoffice/libreoffice-9999.ebuild

index 201395b5c80175222740a2ccf33d9a22a3af11c0..7215809cdb33ef7e3e6462566f720242c7134dae 100644 (file)
@@ -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() {
index 6033b315d7eb0337aabb3c76f2c0f8b4aa8c7cf1..e489cde34e3b4b3b5031797de944f32689021cff 100644 (file)
@@ -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() {
index 6033b315d7eb0337aabb3c76f2c0f8b4aa8c7cf1..e489cde34e3b4b3b5031797de944f32689021cff 100644 (file)
@@ -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() {