blob: 818391b5c1b4acb9739e578339946c8560134a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils
KEYWORDS="~amd64 ~x86"
DESCRIPTION="A db access library for C++ that makes the illusion of embedding SQL queries in the regular C++ code"
HOMEPAGE="http://soci.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="Boost-1.0"
SLOT="0"
IUSE="boost doc +empty firebird mysql odbc oracle postgres sqlite"
DEPEND="boost? ( dev-libs/boost )
firebird? ( dev-db/firebird )
mysql? ( virtual/mysql )
odbc? ( dev-db/unixODBC )
oracle? ( dev-db/oracle-instantclient-basic )
postgres? ( dev-db/postgresql:= )
sqlite? ( dev-db/sqlite:3 )
"
RDEPEND=${DEPEND}
src_configure() {
local mycmakeargs="$(cmake-utils_use_with boost )
$(cmake-utils_use empty SOCI_EMPTY)
$(cmake-utils_use_with firebird FIREBIRD)
$(cmake-utils_use_with mysql MYSQL)
$(cmake-utils_use_with odbc ODBC)
$(cmake-utils_use_with oracle ORACLE)
$(cmake-utils_use_with postgres POSTGRESQL)
$(cmake-utils_use_with sqlite SQLITE3)
-DWITH_DB2=OFF" #use MYCMAKEARGS if you want enable IBM DB2 support
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
dodoc AUTHORS CHANGES
if use doc; then
dohtml -r doc/*
fi
}
|