1 |
commit: 54c6dcaa1fbb1c0aec8ef307b240fd4a93bb2c5d |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 24 19:59:14 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 24 19:59:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54c6dcaa |
7 |
|
8 |
dev-db/mysql++: Revbump on 2.x series |
9 |
|
10 |
EAPI bump |
11 |
Fix build failures with modern libmysqlclient |
12 |
Change dependency to mysql-connector-c |
13 |
|
14 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
15 |
|
16 |
dev-db/mysql++/mysql++-2.3.2-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 49 insertions(+) |
18 |
|
19 |
diff --git a/dev-db/mysql++/mysql++-2.3.2-r1.ebuild b/dev-db/mysql++/mysql++-2.3.2-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..6fc8b2c2745 |
22 |
--- /dev/null |
23 |
+++ b/dev-db/mysql++/mysql++-2.3.2-r1.ebuild |
24 |
@@ -0,0 +1,49 @@ |
25 |
+# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+DESCRIPTION="C++ API interface to the MySQL database" |
31 |
+HOMEPAGE="http://tangentsoft.net/mysqlpp/" |
32 |
+SRC_URI="http://www.tangentsoft.net/mysqlpp/releases/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="LGPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" |
37 |
+IUSE="" |
38 |
+ |
39 |
+RDEPEND="dev-db/mysql-connector-c:=" |
40 |
+DEPEND="${RDEPEND}" |
41 |
+ |
42 |
+HTML_DOCS=( doc/html/{refman,userman} ) |
43 |
+DOCS=( README{,.cygwin,.examples,.mingw,.unix,.vc} CREDITS ChangeLog |
44 |
+ HACKERS Wishlist doc/pdf doc/README.devel doc/README.manuals |
45 |
+ doc/refman doc/ssqls-pretty doc/userman ) |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ eapply "${FILESDIR}"/${P}-gcc-4.3.patch |
49 |
+ |
50 |
+ for i in "${S}"/lib/*.h ; do |
51 |
+ sed -i \ |
52 |
+ -e '/#include </s,mysql.h,mysql/mysql.h,g' \ |
53 |
+ -e '/#include </s,mysql_version.h,mysql/mysql_version.h,g' \ |
54 |
+ "${i}" || die "Failed to sed ${i} for fixing MySQL includes" |
55 |
+ done |
56 |
+ sed -i 's/mysqlclient_r/mysqlclient/' "${S}/configure" || die |
57 |
+ eapply_user |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ local myconf |
62 |
+ # we want C++ exceptions turned on |
63 |
+ myconf="--enable-exceptions" |
64 |
+ # give threads a try |
65 |
+ myconf="${myconf} --enable-thread-check" |
66 |
+ # not including the directives to where MySQL is because it seems to |
67 |
+ # find it just fine without |
68 |
+ |
69 |
+ # force the cflags into place otherwise they get totally ignored by |
70 |
+ # configure |
71 |
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ |
72 |
+ econf ${myconf} |
73 |
+} |