summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <jauhien@gentoo.org>2014-05-09 22:51:07 +0000
committerJauhien Piatlicki <jauhien@gentoo.org>2014-05-09 22:51:07 +0000
commitad1681c22b7bf3163e7a695a835ff1764fbcf507 (patch)
tree8d6be64060088e990d6bb7f4cbae58ee37b5d876 /dev-db/cppdb
parentRun tests in parallel. (diff)
downloadgentoo-2-ad1681c22b7bf3163e7a695a835ff1764fbcf507.tar.gz
gentoo-2-ad1681c22b7bf3163e7a695a835ff1764fbcf507.tar.bz2
gentoo-2-ad1681c22b7bf3163e7a695a835ff1764fbcf507.zip
Import from sunrise/science, close bug #410713
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
Diffstat (limited to 'dev-db/cppdb')
-rw-r--r--dev-db/cppdb/ChangeLog9
-rw-r--r--dev-db/cppdb/cppdb-0.3.1-r1.ebuild50
-rw-r--r--dev-db/cppdb/metadata.xml14
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-db/cppdb/ChangeLog b/dev-db/cppdb/ChangeLog
new file mode 100644
index 000000000000..11a7ee8bed23
--- /dev/null
+++ b/dev-db/cppdb/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-db/cppdb
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/cppdb/ChangeLog,v 1.1 2014/05/09 22:51:07 jauhien Exp $
+
+*cppdb-0.3.1-r1 (09 May 2014)
+
+ 09 May 2014; Jauhien Piatlicki <jauhien@gentoo.org> +cppdb-0.3.1-r1.ebuild,
+ +metadata.xml:
+ Import from sunrise/science, close bug #410713
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 000000000000..3c92b144355d
--- /dev/null
+++ b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/cppdb/cppdb-0.3.1-r1.ebuild,v 1.1 2014/05/09 22:51:07 jauhien Exp $
+
+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
+}
diff --git a/dev-db/cppdb/metadata.xml b/dev-db/cppdb/metadata.xml
new file mode 100644
index 000000000000..aeb483f59dc6
--- /dev/null
+++ b/dev-db/cppdb/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jauhien@gentoo.org</email>
+ <name>Jauhien Piatlicki</name>
+ </maintainer>
+ <use>
+ <flag name="mysql_internal">Don't build a separate mysql loadable module but rather build it into the cppdb library itself</flag>
+ <flag name="odbc_internal">Don't build a separate postgresql loadable module but rather build it into the cppdb library itself</flag>
+ <flag name="postgres_internal">Don't build a separate odbc loadable module but rather build it into the cppdb library itself</flag>
+ <flag name="sqlite_internal">Don't build a separate sqlite3 loadable module but rather build it into the cppdb library itself</flag>
+ </use>
+</pkgmetadata>