diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-30 15:04:28 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-30 15:08:12 +0200 |
commit | 203dc2714bb3531baec80ca39adc09b1662e0b0f (patch) | |
tree | 81627a944ea662f413a1bc5318335e01a91b3bfe /dev-db/mysql++ | |
parent | app-admin/syslog-ng: remove libressl support (diff) | |
download | gentoo-203dc2714bb3531baec80ca39adc09b1662e0b0f.tar.gz gentoo-203dc2714bb3531baec80ca39adc09b1662e0b0f.tar.bz2 gentoo-203dc2714bb3531baec80ca39adc09b1662e0b0f.zip |
dev-db/mysql++: bump to v3.3.0
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db/mysql++')
-rw-r--r-- | dev-db/mysql++/Manifest | 1 | ||||
-rw-r--r-- | dev-db/mysql++/mysql++-3.3.0.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/mysql++/Manifest b/dev-db/mysql++/Manifest index 620a479d9d30..22fb7ce97e51 100644 --- a/dev-db/mysql++/Manifest +++ b/dev-db/mysql++/Manifest @@ -1 +1,2 @@ DIST mysql++-3.2.5.tar.gz 4748218 BLAKE2B ffceddb360cf6f0f38b7647f68e52ad9b659642c598c2aab7736813bf61d07316900d843749c2f9f4c753bd2087711ca712cc430f12b3a475c63ae3e5b11aff7 SHA512 5fa042a350322fa74afa28dc5e53f15cad32517001ab817493bf0d13a64e6559712f5e61184ef38a97bc8fe69f8732aaf436bc5d1663e4873f8baebee2e00892 +DIST mysql++-3.3.0.tar.gz 4635623 BLAKE2B 0d5bb3dc7eeee92d10eb82b0537a7caff7faec2f330bb3081790b63544caa2e6967aaaf2adc8f68b9b0854da8f0374eda73d4ced50d77fbc119f83fec84376e3 SHA512 cd50f9edc9531b385d91d70aa292629dc7b839fd296f07db470f37c4748617c5c2dba647adf8965d70e2788e9264288d8ca941a6dcd8d08ff7d838e7947e6465 diff --git a/dev-db/mysql++/mysql++-3.3.0.ebuild b/dev-db/mysql++/mysql++-3.3.0.ebuild new file mode 100644 index 000000000000..8e4e26e8bd4c --- /dev/null +++ b/dev-db/mysql++/mysql++-3.3.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools libtool flag-o-matic + +DESCRIPTION="C++ API interface to the MySQL database" +HOMEPAGE="https://tangentsoft.net/mysql++/" +SRC_URI="https://www.tangentsoft.net/mysqlpp/releases/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0/3" +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="doc" + +RDEPEND="|| ( dev-db/mysql-connector-c dev-db/mariadb-connector-c )" +DEPEND="${RDEPEND}" +DOCS=( CREDITS.txt CONTRIBUTING.md doc/ssqls-pretty ) +PATCHES=( + "${FILESDIR}"/${PN}-3.2.1-gold.patch + "${FILESDIR}"/${PN}-3.2.4-only-unit-tests.patch +) + +src_prepare() { + # Bug filed upstream about deprecated std::auto_ptr + append-cxxflags $(test-flags-CXX -Wno-deprecated-declarations) + # Bad symlink for libtool in the archive + rm "${S}/ltmain.sh" || die + + default + + # we don't use eautoreconf to avoid dev-util/bakefile + _elibtoolize --auto-ltdl --install --copy --force + elibtoolize + + # Current MySQL libraries are always with threads and slowly being removed + sed -i -e "s/mysqlclient_r/mysqlclient/" "${S}/configure" || die + rm "${S}/doc/"README-*-RPM.txt || die +} + +src_configure() { + local myconf=( + --enable-thread-check + --with-mysql="${EPREFIX}/usr" + --with-mysql-lib="${EPREFIX}$(mysql_config --variable=pkglibdir)" + --with-mysql-include="${EPREFIX}$(mysql_config --variable=pkgincludedir)" + ) + econf "${myconf[@]}" +} + +src_test() { + ONLY_UNIT_TESTS=1 "${S}"/dtest || die +} + +src_install() { + default + # install the docs and HTML pages + use doc && dodoc -r doc/pdf/ doc/refman/ doc/userman/ doc/html/ +} |