# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr require github [ user=MariaDB tag=v${PV} force_git_clone=true ] require cmake [ api=2 ] SLOT="0" SUMMARY="C client library for MariaDB/MySQL" HOMEPAGE="https://mariadb.org/" LICENCES="LGPL-2.1" MYOPTIONS=" curl gnutls kerberos ( providers: libressl openssl ) [[ number-selected = exactly-one ]] " DEPENDENCIES=" build+run: sys-libs/zlib curl? ( net-misc/curl ) kerberos? ( virtual/kerberos ) gnutls? ( dev-libs/gnutls[>=3.3.24] ) !gnutls? ( providers:libressl? ( dev-libs/libressl:= ) providers:openssl? ( dev-libs/openssl ) ) " CMAKE_SRC_CONFIGURE_PARAMS+=( -DWITH_EXTERNAL_ZLIB=ON ) CMAKE_SRC_CONFIGURE_OPTIONS=( 'gnutls WITH_SSL=GNUTLS' '!gnutls WITH_SSL=OPENSSL' 'kerberos CLIENT_PLUGIN_AUTH_GSSAPI_CLIENT=DYNAMIC' ) CMAKE_SRC_CONFIGURE_WITHS=( curl ) CMAKE_SRC_CONFIGURE_TESTS=( '-DWITH_UNIT_TESTS=on -DWITH_UNIT_TESTS=OFF' )