Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql++/
Date: Fri, 30 Apr 2021 13:08:21
Message-Id: 1619788092.203dc2714bb3531baec80ca39adc09b1662e0b0f.whissi@gentoo
1 commit: 203dc2714bb3531baec80ca39adc09b1662e0b0f
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 13:04:28 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 13:08:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203dc271
7
8 dev-db/mysql++: bump to v3.3.0
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-db/mysql++/Manifest | 1 +
14 dev-db/mysql++/mysql++-3.3.0.ebuild | 60 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-db/mysql++/Manifest b/dev-db/mysql++/Manifest
18 index 620a479d9d3..22fb7ce97e5 100644
19 --- a/dev-db/mysql++/Manifest
20 +++ b/dev-db/mysql++/Manifest
21 @@ -1 +1,2 @@
22 DIST mysql++-3.2.5.tar.gz 4748218 BLAKE2B ffceddb360cf6f0f38b7647f68e52ad9b659642c598c2aab7736813bf61d07316900d843749c2f9f4c753bd2087711ca712cc430f12b3a475c63ae3e5b11aff7 SHA512 5fa042a350322fa74afa28dc5e53f15cad32517001ab817493bf0d13a64e6559712f5e61184ef38a97bc8fe69f8732aaf436bc5d1663e4873f8baebee2e00892
23 +DIST mysql++-3.3.0.tar.gz 4635623 BLAKE2B 0d5bb3dc7eeee92d10eb82b0537a7caff7faec2f330bb3081790b63544caa2e6967aaaf2adc8f68b9b0854da8f0374eda73d4ced50d77fbc119f83fec84376e3 SHA512 cd50f9edc9531b385d91d70aa292629dc7b839fd296f07db470f37c4748617c5c2dba647adf8965d70e2788e9264288d8ca941a6dcd8d08ff7d838e7947e6465
24
25 diff --git a/dev-db/mysql++/mysql++-3.3.0.ebuild b/dev-db/mysql++/mysql++-3.3.0.ebuild
26 new file mode 100644
27 index 00000000000..8e4e26e8bd4
28 --- /dev/null
29 +++ b/dev-db/mysql++/mysql++-3.3.0.ebuild
30 @@ -0,0 +1,60 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit autotools libtool flag-o-matic
37 +
38 +DESCRIPTION="C++ API interface to the MySQL database"
39 +HOMEPAGE="https://tangentsoft.net/mysql++/"
40 +SRC_URI="https://www.tangentsoft.net/mysqlpp/releases/${P}.tar.gz"
41 +
42 +LICENSE="LGPL-2"
43 +SLOT="0/3"
44 +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos"
45 +IUSE="doc"
46 +
47 +RDEPEND="|| ( dev-db/mysql-connector-c dev-db/mariadb-connector-c )"
48 +DEPEND="${RDEPEND}"
49 +DOCS=( CREDITS.txt CONTRIBUTING.md doc/ssqls-pretty )
50 +PATCHES=(
51 + "${FILESDIR}"/${PN}-3.2.1-gold.patch
52 + "${FILESDIR}"/${PN}-3.2.4-only-unit-tests.patch
53 +)
54 +
55 +src_prepare() {
56 + # Bug filed upstream about deprecated std::auto_ptr
57 + append-cxxflags $(test-flags-CXX -Wno-deprecated-declarations)
58 + # Bad symlink for libtool in the archive
59 + rm "${S}/ltmain.sh" || die
60 +
61 + default
62 +
63 + # we don't use eautoreconf to avoid dev-util/bakefile
64 + _elibtoolize --auto-ltdl --install --copy --force
65 + elibtoolize
66 +
67 + # Current MySQL libraries are always with threads and slowly being removed
68 + sed -i -e "s/mysqlclient_r/mysqlclient/" "${S}/configure" || die
69 + rm "${S}/doc/"README-*-RPM.txt || die
70 +}
71 +
72 +src_configure() {
73 + local myconf=(
74 + --enable-thread-check
75 + --with-mysql="${EPREFIX}/usr"
76 + --with-mysql-lib="${EPREFIX}$(mysql_config --variable=pkglibdir)"
77 + --with-mysql-include="${EPREFIX}$(mysql_config --variable=pkgincludedir)"
78 + )
79 + econf "${myconf[@]}"
80 +}
81 +
82 +src_test() {
83 + ONLY_UNIT_TESTS=1 "${S}"/dtest || die
84 +}
85 +
86 +src_install() {
87 + default
88 + # install the docs and HTML pages
89 + use doc && dodoc -r doc/pdf/ doc/refman/ doc/userman/ doc/html/
90 +}