app-office/libreoffice: Re-apply add mariadb USE flag
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 27 Jan 2019 18:25:44 +0000 (19:25 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 27 Jan 2019 23:12:01 +0000 (00:12 +0100)
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-office/libreoffice/libreoffice-6.2.0.3.ebuild

index 2d7e26ac310414a87c3a6790513fb5ff49ee85a0..4861ff9850d1edf51746c93f346700ef60450ac0 100644 (file)
@@ -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[@]}"
 }