diff options
Diffstat (limited to 'dev-db/cppdb')
-rw-r--r-- | dev-db/cppdb/Manifest | 3 | ||||
-rw-r--r-- | dev-db/cppdb/cppdb-0.3.1-r1.ebuild | 49 | ||||
-rw-r--r-- | dev-db/cppdb/metadata.xml | 13 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-db/cppdb/Manifest b/dev-db/cppdb/Manifest new file mode 100644 index 000000000000..381f67da2d0e --- /dev/null +++ b/dev-db/cppdb/Manifest @@ -0,0 +1,3 @@ +DIST cppdb-0.3.1.tar.bz2 251449 BLAKE2B 13a59b50b53e276c3714c35a11dee09054d3017d4c60335028c1e41dece749e6b13e94cd6ca4ad40e8bd47c5530ff3310c5735b373ee7289afe657f31c6186de SHA512 19e60becbffef7a252eda5fdd5821b44c2eeb5d69e84cf46e89ed6af3cea315f3cfe7b2cc4f62fbe154be8abdad3363761dd0252f94671421010273eeae65678 +EBUILD cppdb-0.3.1-r1.ebuild 1353 BLAKE2B 5ed160a4f5dbd555bd7885e77302a04b47f0cfe6b36ad0b44e5c069596a19b4ec71484a867cda55992f41a339b3fc06a969a80639f961a95a38c37ef06f34a49 SHA512 bb1a2d18a3ec7843f519c788d59697b53cfc10c321b4caa1dba4910b764246f542794fae49f1b4971d6521d7ef191573cf45c9c161254ede6871f147af60c4bb +MISC metadata.xml 767 BLAKE2B 6012059a499f2c722e9eaac433a605eb8473f047f1f78543da7a08d6fb816bc3e83726e53285303dd1c14a09c2955d8d03e6fff9a617e2cc2ead27d329eb5c9e SHA512 930b662cc22169de50ef67af931799380b229c09a0b9b82c1ace9fa0abe75a685a3c3793c02cb85ac3d8f18f6450ea178e1a097e42e4d84c024286da9cbc085a 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..bcc4bd16cdc4 --- /dev/null +++ b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ) + 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..b4e431927502 --- /dev/null +++ b/dev-db/cppdb/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <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> + <upstream> + <remote-id type="sourceforge">cppcms</remote-id> + </upstream> +</pkgmetadata> |