commit:     e2f96e17e79810c1aee9aa788cd6e46ac986df9a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 27 18:25:44 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 27 23:12:01 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f96e17

app-office/libreoffice: Re-apply add mariadb USE flag

Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-office/libreoffice/libreoffice-6.2.0.3.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/app-office/libreoffice/libreoffice-6.2.0.3.ebuild 
b/app-office/libreoffice/libreoffice-6.2.0.3.ebuild
index 2d7e26ac310..4861ff9850d 100644
--- a/app-office/libreoffice/libreoffice-6.2.0.3.ebuild
+++ b/app-office/libreoffice/libreoffice-6.2.0.3.ebuild
@@ -63,7 +63,7 @@ unset ADDONS_SRC
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
 IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
-googledrive gstreamer +gtk gtk2 kde odk pdfimport postgres test vlc
+googledrive gstreamer +gtk gtk2 kde +mariadb odk pdfimport postgres test vlc
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
@@ -103,7 +103,6 @@ COMMON_DEPEND="${PYTHON_DEPS}
        app-text/mythes
        >=dev-cpp/clucene-2.3.3.4-r2
        =dev-cpp/libcmis-0.5*
-       dev-db/mysql-connector-c
        dev-db/unixODBC
        dev-lang/perl
        dev-libs/boost:=[nls]
@@ -189,6 +188,8 @@ COMMON_DEPEND="${PYTHON_DEPS}
        )
        libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
        libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
+       mariadb? ( dev-db/mariadb-connector-c )
+       !mariadb? ( dev-db/mysql-connector-c )
        pdfimport? ( app-text/poppler:=[cxx] )
        postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
 "
@@ -402,6 +403,7 @@ src_configure() {
                --enable-randr
                --enable-release-build
                --disable-breakpad
+               --disable-bundle-mariadb
                --disable-ccache
                --disable-dependency-tracking
                --disable-epm
@@ -491,6 +493,7 @@ src_configure() {
 
        is-flagq "-flto*" && myeconfargs+=( --enable-lto )
 
+       MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
        econf "${myeconfargs[@]}"
 }
 

Reply via email to