1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools libtool flag-o-matic
8 DESCRIPTION="C++ API interface to the MySQL database"
9 HOMEPAGE="http://tangentsoft.net/mysql++/"
10 SRC_URI="http://www.tangentsoft.net/mysqlpp/releases/${P}.tar.gz"
14 KEYWORDS="~alpha amd64 hppa ~mips ppc sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
17 RDEPEND="dev-db/mysql-connector-c:="
19 DOCS=( CREDITS.txt HACKERS.txt Wishlist doc/ssqls-pretty )
21 "${FILESDIR}"/${PN}-3.2.1-gold.patch
22 "${FILESDIR}"/${PN}-3.2.3-mariadb-10.2.patch
23 "${FILESDIR}"/${PN}-3.2.3-as-needed.patch
27 # Bug filed upstream about deprecated std::auto_ptr
28 append-cxxflags $(test-flags-CXX -Wno-deprecated-declarations)
29 # Bad symlink for libtool in the archive
30 rm "${S}/ltmain.sh" || die
34 _elibtoolize --auto-ltdl --install --copy --force
36 # Current MySQL libraries are always with threads and slowly being removed
37 sed -i -e "s/mysqlclient_r/mysqlclient/" "${S}/configure" || die
38 rm "${S}/doc/"README-*-RPM.txt || die
44 --with-mysql="${EPREFIX}/usr"
45 --with-mysql-lib="${EPREFIX}$(mysql_config --variable=pkglibdir)"
46 --with-mysql-include="${EPREFIX}$(mysql_config --variable=pkgincludedir)"
53 # install the docs and HTML pages
54 use doc && dodoc -r doc/pdf/ doc/refman/ doc/userman/ doc/html/