From 5e66ce77524c00c88ed82f4b0bc37fb2d653563c Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Thu, 28 Apr 2022 14:43:13 +0200 Subject: [PATCH] dev-db/soci: New package from nest Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay + + + + spiderx@spiderx.dp.ua + Vladimir Pavljuchenkov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + A database access library for C++ that makes the illusion of + embedding SQL queries in the regular C++ code, staying entirely + within the Standard C++. + + + SOCI/soci + soci + + diff --git a/dev-db/soci/soci-4.0.3.ebuild b/dev-db/soci/soci-4.0.3.ebuild new file mode 100644 index 0000000..8ef65f4 --- /dev/null +++ b/dev-db/soci/soci-4.0.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Database access library for C++" +HOMEPAGE="https://github.com/SOCI/soci" +SRC_URI="https://github.com/SOCI/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-1" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="firebird mysql odbc oracle postgres sqlite static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/boost:= + firebird? ( dev-db/firebird ) + mysql? ( dev-db/mysql-connector-c:0= ) + odbc? ( dev-db/unixODBC ) + oracle? ( dev-db/oracle-instantclient:= ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DSOCI_CXX11=ON + -DSOCI_STATIC="$(usex static-libs)" + -DSOCI_TESTS="$(usex test)" + ) + + cmake_src_configure +}