Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/mysql-connector-c++: mysql-connector-c++-1.1.1.ebuild ChangeLog
Date: Wed, 21 Nov 2012 20:07:20
Message-Id: 20121121200709.21E9120C65@flycatcher.gentoo.org
1 scarabeus 12/11/21 20:07:09
2
3 Modified: ChangeLog
4 Added: mysql-connector-c++-1.1.1.ebuild
5 Log:
6 Version bump to latest.
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)
9
10 Revision Changes Path
11 1.13 dev-db/mysql-connector-c++/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 8 Mar 2012 14:56:31 -0000 1.12
24 +++ ChangeLog 21 Nov 2012 20:07:08 -0000 1.13
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-db/mysql-connector-c++
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v 1.12 2012/03/08 14:56:31 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v 1.13 2012/11/21 20:07:08 scarabeus Exp $
30 +
31 +*mysql-connector-c++-1.1.1 (21 Nov 2012)
32 +
33 + 21 Nov 2012; Tomáš Chvátal <scarabeus@g.o>
34 + +mysql-connector-c++-1.1.1.ebuild:
35 + Version bump to latest.
36
37 08 Mar 2012; Brent Baude <ranger@g.o>
38 mysql-connector-c++-1.1.0-r1.ebuild:
39 @@ -60,4 +66,3 @@
40 +mysql-connector-c++-1.1.0_pre814.ebuild,
41 +files/mysql-connector-c++-1.1.0_pre814-libdir.patch, +metadata.xml:
42 Initial commit, ebuild submission by Hanno Meyer-Thurow <h.mth@×××.de>.
43 -
44
45
46
47 1.1 dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: mysql-connector-c++-1.1.1.ebuild
53 ===================================================================
54 # Copyright 1999-2012 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild,v 1.1 2012/11/21 20:07:08 scarabeus Exp $
57
58 EAPI=4
59
60 inherit eutils cmake-utils flag-o-matic multilib
61
62 DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
63 HOMEPAGE="http://dev.mysql.com/downloads/connector/cpp/"
64 URI_DIR="Connector-C++"
65 SRC_URI="mirror://mysql/Downloads/${URI_DIR}/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
70 IUSE="debug examples gcov static-libs"
71
72 DEPEND=">=virtual/mysql-5.1
73 dev-libs/boost
74 dev-libs/openssl"
75 RDEPEND="${DEPEND}"
76
77 PATCHES=(
78 "${FILESDIR}/${PN}-1.1.0-fix-cmake.patch"
79 "${FILESDIR}/${PN}-1.1.0-disable-tests.patch"
80 )
81
82 src_configure() {
83 # native lib/wrapper needs this!
84 append-flags "-fno-strict-aliasing"
85
86 local mycmakeargs=(
87 "-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF"
88 "-DMYSQLCPPCONN_ICU_ENABLE=OFF"
89 $(cmake-utils_use debug MYSQLCPPCONN_TRACE_ENABLE)
90 $(cmake-utils_use gcov MYSQLCPPCONN_GCOV_ENABLE)
91 )
92
93 cmake-utils_src_configure
94 }
95
96 src_install() {
97 cmake-utils_src_install
98
99 # static lib has wrong name so we need to rename it
100 if use static-libs; then
101 mv "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a \
102 "${ED}"/usr/$(get_libdir)/libmysqlcppconn.a || die
103 else
104 rm -f "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a
105 fi
106
107 # docs are installed poorly
108 rm -rf "${ED}"/usr/{ANNOUNCEMENT,COPYING,README}
109 dodoc ANNOUNCEMENT README
110
111 # examples
112 if use examples; then
113 insinto /usr/share/doc/${PF}/examples
114 doins "${S}"/examples/*
115 fi
116 }