1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION="A db access library for C++ that makes the illusion of embedding SQL queries in the regular C++ code"
12 HOMEPAGE="http://soci.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
16 IUSE="boost doc +empty mysql odbc oracle postgres sqlite"
18 DEPEND="boost? ( dev-libs/boost )
19 mysql? ( virtual/mysql )
20 odbc? ( dev-db/unixODBC )
21 oracle? ( dev-db/oracle-instantclient-basic )
22 postgres? ( dev-db/postgresql-base )
23 sqlite? ( dev-db/sqlite:3 )
28 local mycmakeargs="$(cmake-utils_use_with boost )
29 $(cmake-utils_use empty SOCI_EMPTY)
30 $(cmake-utils_use_with mysql MYSQL)
31 $(cmake-utils_use_with odbc ODBC)
32 $(cmake-utils_use_with oracle ORACLE)
33 $(cmake-utils_use_with postgres POSTGRESQL)
34 $(cmake-utils_use_with sqlite SQLITE3)"
35 cmake-utils_src_configure
39 cmake-utils_src_install