summaryrefslogtreecommitdiff
path: root/packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib')
-rw-r--r--packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib b/packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib
new file mode 100644
index 0000000..dd7b21b
--- /dev/null
+++ b/packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib
@@ -0,0 +1,50 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+
+
+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' )