summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2013-03-05 17:12:04 +0800
committerPatrick Lauer <patrick@gentoo.org>2013-03-05 17:12:04 +0800
commite395fabfff56d2f5538d2fda594d96778d0e0dc6 (patch)
tree40c72182b5c2ac2af5e0c0fe4b53468b58fa7209 /dev-db/cppdb/cppdb-0.3.1-r1.ebuild
parentapp-text/orayta: Bump, bump EAPI, fix qt deps (diff)
downloadsunrise-e395fabfff56d2f5538d2fda594d96778d0e0dc6.tar.gz
sunrise-e395fabfff56d2f5538d2fda594d96778d0e0dc6.tar.bz2
sunrise-e395fabfff56d2f5538d2fda594d96778d0e0dc6.zip
dev-db/cppdb: Add ~amd64 keyword, EAPI bump
Diffstat (limited to 'dev-db/cppdb/cppdb-0.3.1-r1.ebuild')
-rw-r--r--dev-db/cppdb/cppdb-0.3.1-r1.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-db/cppdb/cppdb-0.3.1-r1.ebuild b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild
new file mode 100644
index 000000000..1aeb9fc16
--- /dev/null
+++ b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="An SQL connectivity library for platform and database independent connectivity"
+HOMEPAGE="http://cppcms.com/sql/cppdb/"
+SRC_URI="mirror://sourceforge/cppcms/${P}.tar.bz2"
+
+LICENSE="|| ( Boost-1.0 MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples mysql mysql_internal odbc odbc_internal postgres postgres_internal sqlite sqlite_internal"
+
+DEPEND="mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ postgres? ( dev-db/postgresql-base )
+ sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs="$(cmake-utils_use_disable mysql MYSQL)
+ $(cmake-utils_use mysql_internal MYSQL_BACKEND_INTERNAL)
+ $(cmake-utils_use_disable odbc ODBC)
+ $(cmake-utils_use odbc_internal ODBC_BACKEND_INTERNAL)
+ $(cmake-utils_use_disable postgres PQ)
+ $(cmake-utils_use postgres_internal PQ_BACKEND_INTERNAL)
+ $(cmake-utils_use_disable sqlite SQLITE)
+ $(cmake-utils_use sqlite_internal SQLITE_BACKEND_INTERNAL)
+ -DLIBDIR=$(get_libdir)"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use doc; then
+ rm docs/build.txt || die
+ dodoc -r docs/*
+ dohtml -r html/*
+ fi
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}