# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit cmake-utils DESCRIPTION="MySQL Connector/C++ is a MySQL database connector for C++" HOMEPAGE="http://forge.mysql.com/wiki/Connector_C++" SRC_URI="http://ftp.debian.org/debian/pool/main/m/${PN}/${PN}_${PV/_pre/~r}.orig.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="" DEPEND=">=virtual/mysql-5.0 dev-libs/boost dev-libs/icu" RDEPEND="${DEPEND}" S="${WORKDIR}/${P/_pre/~r}" # cmake config that works ... CMAKE_IN_SOURCE_BUILD="1" CMAKE_USE_DIR="." src_configure() { # native lib/wrapper needs this! append-flags "-fno-strict-aliasing" # configure cmake-utils_src_configure } src_install() { # install cmake-utils_src_install # bogus rm "${D}/usr"/{COPYING,README} cp "${S}/cppconn/sqlstring.h" "${D}/usr/include/cppconn" }