From bcf9f8f3f9772a85788d99fa17501b961986d8da Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Mar 2017 21:05:19 +0100 Subject: [PATCH] dev-db/mysql-connector-c++: initial import Preparation for dev-db/mysql-workbench. --- .../mysql-connector-c++-1.1.8.exheres-0 | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 packages/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.8.exheres-0 diff --git a/packages/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.8.exheres-0 b/packages/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.8.exheres-0 new file mode 100644 index 0000000..9189860 --- /dev/null +++ b/packages/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.8.exheres-0 @@ -0,0 +1,50 @@ +# Copyright 2017 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require cmake [ api=2 ] + +SUMMARY="MySQL database connector for C++ (mimics JDBC 4.0 API)" +HOMEPAGE="http://dev.mysql.com/downloads/connector/cpp/" +DOWNLOADS="https://dev.mysql.com/get/Downloads/Connector-C++/${PNV}.tar.gz" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS=" + ( providers: libressl openssl ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build: + dev-libs/boost + build+run: + virtual/mysql + providers:libressl? ( dev-libs/libressl:= ) + providers:openssl? ( dev-libs/openssl ) +" + +BUGS_TO="hasufell@posteo.de" + +src_configure() { + CMAKE_SRC_CONFIGURE_PARAMS=( + -DINSTALL_DOCS="/usr/share/doc/${PNVR}" + -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF + -DMYSQLCPPCONN_ICU_ENABLE=OFF + -DMYSQL_CXX_LINKAGE=0 + -DMYSQL_INCLUDE_DIR="$(mysql_config --variable=pkgincludedir)" + -DUSE_MYSQLCPPCONN_GCOV_ENABLE=OFF + -DUSE_MYSQLCPPCONN_TRACE_ENABLE=OFF + ) + + cmake_src_configure +} + +src_prepare() { + edo sed -i \ + -e '/ADD_SUBDIRECTORY(test/d' \ + -e 's#DOC_DESTINATION "."#DOC_DESTINATION ${INSTALL_DOCS}#' \ + "${CMAKE_SOURCE}"/CMakeLists.txt + + cmake_src_prepare +} +