/[gentoo-x86]/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0-r1.ebuild
Gentoo

Contents of /dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Mar 8 14:56:31 2012 UTC (2 years, 7 months ago) by ranger
Branch: MAIN
Changes since 1.4: +3 -3 lines
Marking mysql-connector-c++-1.1.0-r1 ppc64 for bug 387339

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0-r1.ebuild,v 1.4 2011/12/18 17:32:21 halcy0n Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils flag-o-matic multilib
8
9 DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
10 HOMEPAGE="http://forge.mysql.com/wiki/Connector_C++"
11 URI_DIR="Connector-C++"
12 SRC_URI="mirror://mysql/Downloads/${URI_DIR}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ppc64 ~sparc x86"
17 IUSE="debug examples gcov static-libs"
18
19 DEPEND=">=virtual/mysql-5.1
20 dev-libs/boost
21 dev-libs/openssl"
22 RDEPEND="${DEPEND}"
23
24 PATCHES=(
25 "${FILESDIR}/${P}-fix-cmake.patch"
26 "${FILESDIR}/${P}-disable-tests.patch"
27 )
28
29 src_configure() {
30 # native lib/wrapper needs this!
31 append-flags "-fno-strict-aliasing"
32
33 local mycmakeargs=(
34 "-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF"
35 "-DMYSQLCPPCONN_ICU_ENABLE=OFF"
36 $(cmake-utils_use debug MYSQLCPPCONN_TRACE_ENABLE)
37 $(cmake-utils_use gcov MYSQLCPPCONN_GCOV_ENABLE)
38 )
39
40 cmake-utils_src_configure
41 }
42
43 src_install() {
44 cmake-utils_src_install
45
46 # static lib has wrong name so we need to rename it
47 if use static-libs; then
48 mv "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a \
49 "${ED}"/usr/$(get_libdir)/libmysqlcppconn.a || die
50 else
51 rm -f "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a
52 fi
53
54 # docs are installed poorly
55 rm -rf "${ED}"/usr/{ANNOUNCEMENT,COPYING,README}
56 dodoc ANNOUNCEMENT README
57
58 # examples
59 if use examples; then
60 insinto /usr/share/doc/${PF}/examples
61 doins "${S}"/examples/*
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20