summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-03-24 21:19:01 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-03-24 21:19:01 +0000
commitd4588ea0df10574fc1141f5508a939e516490733 (patch)
treec3034b7364de77a324890261e89dee39c70ac6cf /dev-db
parentSupport other ways of doing libdir fixes for cmake, as suggested by http://ww... (diff)
downloadhistorical-d4588ea0df10574fc1141f5508a939e516490733.tar.gz
historical-d4588ea0df10574fc1141f5508a939e516490733.tar.bz2
historical-d4588ea0df10574fc1141f5508a939e516490733.zip
Initial commit, ebuild submission by Hanno Meyer-Thurow <h.mth@web.de>.
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql-connector-c++/ChangeLog11
-rw-r--r--dev-db/mysql-connector-c++/Manifest6
-rw-r--r--dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.0_pre814-libdir.patch42
-rw-r--r--dev-db/mysql-connector-c++/metadata.xml8
-rw-r--r--dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0_pre814.ebuild92
5 files changed, 159 insertions, 0 deletions
diff --git a/dev-db/mysql-connector-c++/ChangeLog b/dev-db/mysql-connector-c++/ChangeLog
new file mode 100644
index 000000000000..41e72a01b812
--- /dev/null
+++ b/dev-db/mysql-connector-c++/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-db/mysql-connector-c++
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-connector-c++/ChangeLog,v 1.1 2010/03/24 21:19:00 robbat2 Exp $
+
+*mysql-connector-c++-1.1.0_pre814 (24 Mar 2010)
+
+ 24 Mar 2010; Robin H. Johnson <robbat2@gentoo.org>
+ +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++/Manifest b/dev-db/mysql-connector-c++/Manifest
new file mode 100644
index 000000000000..9cfe2a59004d
--- /dev/null
+++ b/dev-db/mysql-connector-c++/Manifest
@@ -0,0 +1,6 @@
+AUX mysql-connector-c++-1.1.0_pre814-libdir.patch 1592 RMD160 824260dd878311f8ab6f184a3c9f5894a2d8898a SHA1 7a1f85b059401c3b3b651f6c413ffd8ff2fa1e59 SHA256 8117b906e8bb62f7b3ae807e81a7826e4575ab76f22f49765919d06aab3c3c25
+DIST mysql-connector-c++_1.1.0~r814-1.diff.gz 5693 RMD160 c26c7a18ce087b2d286461cbcbe8714293a9cf22 SHA1 6f00b592c6d59e346a85cb4fdec181b425f4591f SHA256 4b0abf2bbc2a5092908a3f96a1b9a2dbc0d6fa47019ab664dce091d3b9318229
+DIST mysql-connector-c++_1.1.0~r814.orig.tar.gz 612017 RMD160 82f1ac597c335d3f102a941a9ed6ca3c06645f8a SHA1 12952ce4915e12d4861c119abe51f2cd75591cc8 SHA256 0cb8bffb793a0770a5d8c3cbbba36b073685493508e54e68260c51e4fe8d5d9c
+EBUILD mysql-connector-c++-1.1.0_pre814.ebuild 2190 RMD160 f1e7035bd9154b63aec1f43252560000818a0494 SHA1 49f6083c85eb91255ae7063d67807e87f79cbe5d SHA256 71cc6ddd455f870636b95fce4cfa5275df289053fd1a39edfc642536501f6c16
+MISC ChangeLog 518 RMD160 b4842b2a0bbc0397fccb8a0ae47bb7d6861b2d4c SHA1 8c7dc14cea39e4f53ed4d936f0ee74471c54a56d SHA256 a65dc89247c794541d93f3d2c8af0f40170ece3120b5a9db7ea3d30496076bc4
+MISC metadata.xml 219 RMD160 0970d2c6de558eb30d8a0e7c484d9cfc9a970a60 SHA1 032c704837606fc82001cc41502df38d90e64d11 SHA256 bbc6df023c7ce965532a45e5baa8cd2dee722e85cbe4117a06779b4926bb06f9
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.0_pre814-libdir.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.0_pre814-libdir.patch
new file mode 100644
index 000000000000..f0dc154906fd
--- /dev/null
+++ b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.0_pre814-libdir.patch
@@ -0,0 +1,42 @@
+diff -Nuar mysql-connector-c++-1.1.0~r814.orig/driver/CMakeLists.txt mysql-connector-c++-1.1.0~r814/driver/CMakeLists.txt
+--- mysql-connector-c++-1.1.0~r814.orig/driver/CMakeLists.txt 2010-03-09 21:40:43.000000000 +0000
++++ mysql-connector-c++-1.1.0~r814/driver/CMakeLists.txt 2010-03-24 21:04:44.836622353 +0000
+@@ -234,13 +234,13 @@
+
+ IF(WIN32)
+ INSTALL(TARGETS mysqlcppconn mysqlcppconn-static
+- RUNTIME DESTINATION lib
+- ARCHIVE DESTINATION lib
++ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ ELSE(WIN32)
+ INSTALL(TARGETS mysqlcppconn mysqlcppconn-static
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ ENDIF(WIN32)
+
+diff -Nuar mysql-connector-c++-1.1.0~r814.orig/thread/CMakeLists.txt mysql-connector-c++-1.1.0~r814/thread/CMakeLists.txt
+--- mysql-connector-c++-1.1.0~r814.orig/thread/CMakeLists.txt 2010-03-09 21:40:43.000000000 +0000
++++ mysql-connector-c++-1.1.0~r814/thread/CMakeLists.txt 2010-03-24 21:05:49.059949215 +0000
+@@ -52,13 +52,13 @@
+
+ IF(WIN32)
+ INSTALL(TARGETS mysqlcppconn_thread mysqlcppconn_thread-static
+- RUNTIME DESTINATION lib
+- ARCHIVE DESTINATION lib
++ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ ELSE(WIN32)
+ INSTALL(TARGETS mysqlcppconn_thread mysqlcppconn_thread-static
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ )
+ ENDIF(WIN32)
+
diff --git a/dev-db/mysql-connector-c++/metadata.xml b/dev-db/mysql-connector-c++/metadata.xml
new file mode 100644
index 000000000000..c0715e3227e4
--- /dev/null
+++ b/dev-db/mysql-connector-c++/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mysql</herd>
+<use>
+<flag name='gcov'>Build coverage support</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0_pre814.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0_pre814.ebuild
new file mode 100644
index 000000000000..ff50e8cfc67d
--- /dev/null
+++ b/dev-db/mysql-connector-c++/mysql-connector-c++-1.1.0_pre814.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2010 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.0_pre814.ebuild,v 1.1 2010/03/24 21:19:00 robbat2 Exp $
+
+EAPI="2"
+
+inherit base cmake-utils flag-o-matic
+
+DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
+HOMEPAGE="http://forge.mysql.com/wiki/Connector_C++"
+
+DEBIAN_PV=1
+MY_PV="${PV/_pre/~r}"
+MY_P="${PN}_${MY_PV}"
+DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}"
+DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz"
+DEBIAN_SRC="${MY_P}.orig.tar.gz"
+SRC_URI="${DEBIAN_URI}/${DEBIAN_SRC} ${DEBIAN_URI}/${DEBIAN_PATCH}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug examples gcov static"
+
+DEPEND=">=virtual/mysql-5.1
+ dev-libs/boost
+ dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P/_pre/~r}"
+
+# cmake config helper function
+use_cmake() {
+ local i_use="0"
+ use ${1} && i_use="1"
+
+ echo ${i_use}
+}
+
+# cmake config that works ...
+CMAKE_USE_DIR="."
+CMAKE_IN_SOURCE_BUILD="1"
+mycmakeargs="-DMYSQLCPPCONN_TRACE_ENABLE:BOOL=$(use_cmake debug) \
+ -DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=0 \
+ MYSQLCPPCONN_GCOV_ENABLE:BOOL=$(use_cmake gcov) \
+ -DMYSQLCPPCONN_ICU_ENABLE:BOOL=0"
+
+src_unpack() {
+ unpack "${DEBIAN_SRC}"
+}
+
+src_prepare() {
+ EPATCH_OPTS="-p1" epatch "${DISTDIR}"/"${DEBIAN_PATCH}"
+ for i in $(<"${S}"/debian/patches/00list) ; do
+ epatch "${S}"/debian/patches/${i}*
+ done
+ epatch "${FILESDIR}"/${PN}-1.1.0_pre814-libdir.patch
+}
+
+src_configure() {
+ # native lib/wrapper needs this!
+ append-flags "-fno-strict-aliasing"
+
+ # configure
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # make
+ cmake-utils_src_compile mysqlcppconn
+
+ # make static
+ use static && cmake-utils_src_compile mysqlcppconn-static
+}
+
+src_install() {
+ # install - ignore failure for now ...
+ emake DESTDIR="${D}" install/fast
+
+ # fast install fails on useflag [-static-libs]
+ # http://bugs.mysql.com/bug.php?id=52281
+ insinto /usr/include
+ doins driver/mysql_{connection,driver}.h
+
+ dodoc ANNOUNCE* CHANGES* README
+
+ # examples
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins "${S}"/examples/*
+ fi
+}