diff --git a/dev-db/soci/Manifest b/dev-db/soci/Manifest new file mode 100644 index 0000000..8451b6e --- /dev/null +++ b/dev-db/soci/Manifest @@ -0,0 +1 @@ +DIST soci-4.0.3.tar.gz 508750 BLAKE2B d444accf033e6876e45989c8d12bd801d6f0651dcec0766bc240052734be6ef0ee319ea198f5d931d0b3a0132d91eb013279df520442f696a4d60e3f04fb6a1f SHA512 d501f55e7e7408e46b4823fd8a97d6ef587f5db0f5b98434be8dfc5693c91b8c3b84a24454279c83142ab1cd1fa139c6e54d6d9a67397b2ead61650fcc88bcdb diff --git a/dev-db/soci/metadata.xml b/dev-db/soci/metadata.xml new file mode 100644 index 0000000..7fd5f42 --- /dev/null +++ b/dev-db/soci/metadata.xml @@ -0,0 +1,21 @@ + + + + + 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 +}