diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-01-06 20:49:20 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-01-06 20:50:24 +0100 |
commit | 98a62031a548747cb66a8f6a5b24dc065aa8d8ac (patch) | |
tree | 433ba828c26879ee7607295ff6f54e00613670df /dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild | |
parent | media-gfx/imagemagick: drop old (diff) | |
download | gentoo-98a62031a548747cb66a8f6a5b24dc065aa8d8ac.tar.gz gentoo-98a62031a548747cb66a8f6a5b24dc065aa8d8ac.tar.bz2 gentoo-98a62031a548747cb66a8f6a5b24dc065aa8d8ac.zip |
dev-db/mysql-connector-c++: bump to v1.1.11 & v8.0.13
Bug: https://bugs.gentoo.org/674450
Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild')
-rw-r--r-- | dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild new file mode 100644 index 000000000000..d7c1ec3619aa --- /dev/null +++ b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.11.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils flag-o-matic + +DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" +HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/" +URI_DIR="Connector-C++" +SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug examples gcov static-libs" + +DEPEND="virtual/libmysqlclient:= + dev-libs/boost:= + dev-libs/openssl:0= + !<dev-db/mysql-connector-c-6.1.8" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.1.6-fix-cmake.patch" + "${FILESDIR}/${PN}-1.1.11-fix-mariadb.patch" + "${FILESDIR}/${PN}-1.1.11-fix-cpp-linking.patch" +) + +src_configure() { + # native lib/wrapper needs this! + append-flags "-fno-strict-aliasing" + + local mycmakeargs=( + -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF + -DMYSQLCPPCONN_ICU_ENABLE=OFF + -DMYSQLCPPCONN_TRACE_ENABLE=$(usex debug ON OFF) + -DMYSQLCPPCONN_GCOV_ENABLE=$(usex gcov ON OFF) + -DINSTALL_DOCS="/usr/share/doc/${PF}" + -DMYSQL_CXX_LINKAGE=0 + -DMYSQL_INCLUDE_DIR=$(mysql_config --variable=pkgincludedir) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # static lib has wrong name so we need to rename it + if use static-libs; then + mv "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a \ + "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn.a || die + else + rm -f "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a + fi + + # examples + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins "${S}"/examples/* + fi +} |