diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-11-21 20:07:08 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-11-21 20:07:08 +0000 |
commit | 71ec37e7132e3531ce10cb6a83c471d98ebdf94a (patch) | |
tree | 08c18a2c6ed3d75d566be378889ef2c5a4489b77 /dev-db | |
parent | Ensure that 9999 still builds with the changelog moving to Git. (diff) | |
download | gentoo-2-71ec37e7132e3531ce10cb6a83c471d98ebdf94a.tar.gz gentoo-2-71ec37e7132e3531ce10cb6a83c471d98ebdf94a.tar.bz2 gentoo-2-71ec37e7132e3531ce10cb6a83c471d98ebdf94a.zip |
Version bump to latest.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mysql-connector-c++/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild | 63 |
2 files changed, 70 insertions, 2 deletions
diff --git a/dev-db/mysql-connector-c++/ChangeLog b/dev-db/mysql-connector-c++/ChangeLog index 5aceb55df0cd..e1400c1c19cd 100644 --- a/dev-db/mysql-connector-c++/ChangeLog +++ b/dev-db/mysql-connector-c++/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/mysql-connector-c++ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v 1.12 2012/03/08 14:56:31 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v 1.13 2012/11/21 20:07:08 scarabeus Exp $ + +*mysql-connector-c++-1.1.1 (21 Nov 2012) + + 21 Nov 2012; Tomáš Chvátal <scarabeus@gentoo.org> + +mysql-connector-c++-1.1.1.ebuild: + Version bump to latest. 08 Mar 2012; Brent Baude <ranger@gentoo.org> mysql-connector-c++-1.1.0-r1.ebuild: @@ -60,4 +66,3 @@ +mysql-connector-c++-1.1.0_pre814.ebuild, +files/mysql-connector-c++-1.1.0_pre814-libdir.patch, +metadata.xml: Initial commit, ebuild submission by Hanno Meyer-Thurow <h.mth@web.de>. - diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild new file mode 100644 index 000000000000..e196b3815b40 --- /dev/null +++ b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=4 + +inherit eutils cmake-utils flag-o-matic multilib + +DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)" +HOMEPAGE="http://dev.mysql.com/downloads/connector/cpp/" +URI_DIR="Connector-C++" +SRC_URI="mirror://mysql/Downloads/${URI_DIR}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug examples gcov static-libs" + +DEPEND=">=virtual/mysql-5.1 + dev-libs/boost + dev-libs/openssl" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.1.0-fix-cmake.patch" + "${FILESDIR}/${PN}-1.1.0-disable-tests.patch" +) + +src_configure() { + # native lib/wrapper needs this! + append-flags "-fno-strict-aliasing" + + local mycmakeargs=( + "-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF" + "-DMYSQLCPPCONN_ICU_ENABLE=OFF" + $(cmake-utils_use debug MYSQLCPPCONN_TRACE_ENABLE) + $(cmake-utils_use gcov MYSQLCPPCONN_GCOV_ENABLE) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # static lib has wrong name so we need to rename it + if use static-libs; then + mv "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a \ + "${ED}"/usr/$(get_libdir)/libmysqlcppconn.a || die + else + rm -f "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a + fi + + # docs are installed poorly + rm -rf "${ED}"/usr/{ANNOUNCEMENT,COPYING,README} + dodoc ANNOUNCEMENT README + + # examples + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins "${S}"/examples/* + fi +} |