summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-08-25 16:51:05 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-08-25 16:53:42 +0200
commit7796f35638b4d770aa6353c1e48db5c1990af04e (patch)
treebf9990a3971c29e880818a88829be34b269e123d /dev-db
parentdev-util/min-cscope: EAPI-6 bump (diff)
downloadgentoo-7796f35638b4d770aa6353c1e48db5c1990af04e.tar.gz
gentoo-7796f35638b4d770aa6353c1e48db5c1990af04e.tar.bz2
gentoo-7796f35638b4d770aa6353c1e48db5c1990af04e.zip
dev-db/cppdb: EAPI-6 bump
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/cppdb/cppdb-0.3.1-r2.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-db/cppdb/cppdb-0.3.1-r2.ebuild b/dev-db/cppdb/cppdb-0.3.1-r2.ebuild
new file mode 100644
index 000000000000..b7b59c0c0d76
--- /dev/null
+++ b/dev-db/cppdb/cppdb-0.3.1-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="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:* )
+ sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DDISABLE_MYSQL=$(usex !mysql)
+ -DMYSQL_BACKEND_INTERNAL=$(usex mysql_internal)
+ -DDISABLE_ODBC=$(usex !odbc)
+ -DODBC_BACKEND_INTERNAL=$(usex odbc_internal)
+ -DDISABLE_PQ=$(usex !postgres)
+ -DPQ_BACKEND_INTERNAL=$(usex postgres_internal)
+ -DDISABLE_SQLITE=$(usex !sqlite)
+ -DSQLITE_BACKEND_INTERNAL=$(usex sqlite_internal)
+ -DLIBDIR=$(get_libdir)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ rm docs/build.txt || die
+ dodoc docs/*
+ local HTML_DOCS=( html/. )
+ fi
+ cmake-utils_src_install
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}