summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/soci/ChangeLog7
-rw-r--r--dev-db/soci/Manifest8
-rw-r--r--dev-db/soci/files/digest-soci-2.1.03
-rw-r--r--dev-db/soci/soci-2.1.0.ebuild55
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-db/soci/ChangeLog b/dev-db/soci/ChangeLog
new file mode 100644
index 000000000..c804e3147
--- /dev/null
+++ b/dev-db/soci/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for dev-db/soci
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 28 Nov 2006; Tiziano M├╝ller <dev-zero@gentoo.org> +soci-2.1.0.ebuild:
+ New ebuild for bug #156506
+
diff --git a/dev-db/soci/Manifest b/dev-db/soci/Manifest
new file mode 100644
index 000000000..4484dd10d
--- /dev/null
+++ b/dev-db/soci/Manifest
@@ -0,0 +1,8 @@
+DIST soci-2.1.0.tar.gz 176852 RMD160 103850babfe25c5e82a9d123e0a6da9f5f6f2752 SHA1 5e0352cd8673bc7a07b35b5d7fda32f9720329d4 SHA256 47f816ad3254ac92039bfc3ab9fc1995d5777a96a7824fbce8457b72dc7d1832
+EBUILD soci-2.1.0.ebuild 1399 RMD160 24d76c55ed1f4f25cd79ee386324c419432b0a5e SHA1 d57e3a4560247bb95a704dd8349016b9008052fe SHA256 11a94f7cba66b5e0a99d8e6bc13d322ae472772a2f425c2102671654503b8d9d
+MD5 4fb81933462b494e9a63afc0f580e31e soci-2.1.0.ebuild 1399
+RMD160 24d76c55ed1f4f25cd79ee386324c419432b0a5e soci-2.1.0.ebuild 1399
+SHA256 11a94f7cba66b5e0a99d8e6bc13d322ae472772a2f425c2102671654503b8d9d soci-2.1.0.ebuild 1399
+MD5 9dcae4ad3e27e7a6a647296f1d125207 files/digest-soci-2.1.0 232
+RMD160 bd899d3446fda66701c68831668f6e53d20fe6f2 files/digest-soci-2.1.0 232
+SHA256 1257b4dd8f7b57f8fe1bd9cdaabc44582b0c42901b87909277864ac0e8b5faae files/digest-soci-2.1.0 232
diff --git a/dev-db/soci/files/digest-soci-2.1.0 b/dev-db/soci/files/digest-soci-2.1.0
new file mode 100644
index 000000000..7f411b1ab
--- /dev/null
+++ b/dev-db/soci/files/digest-soci-2.1.0
@@ -0,0 +1,3 @@
+MD5 97bfd63af7faf6c13a706f8b2080a11f soci-2.1.0.tar.gz 176852
+RMD160 103850babfe25c5e82a9d123e0a6da9f5f6f2752 soci-2.1.0.tar.gz 176852
+SHA256 47f816ad3254ac92039bfc3ab9fc1995d5777a96a7824fbce8457b72dc7d1832 soci-2.1.0.tar.gz 176852
diff --git a/dev-db/soci/soci-2.1.0.ebuild b/dev-db/soci/soci-2.1.0.ebuild
new file mode 100644
index 000000000..245f88f36
--- /dev/null
+++ b/dev-db/soci/soci-2.1.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+KEYWORDS="~x86"
+
+DESCRIPTION="A database 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}.tar.gz"
+LICENSE="Boost-1.0"
+SLOT="0"
+IUSE="mysql postgres sqlite3 static"
+
+DEPEND="mysql? ( dev-db/mysql )
+ postgres? ( dev-db/libpq )
+ sqlit3? ( =dev-db/sqlite-3* )"
+RDEPEND=""
+
+src_compile() {
+ local backends
+ backends="core backends/empty"
+ use mysql && backends="${backends} backends/mysql"
+ use postgres && backends="${backends} backends/postgresql"
+ use sqlite3 && backends="${backends} backends/sqlite3"
+
+ for backend in ${backends} ; do
+ cd "${S}/${backend}"
+ emake \
+ COMPILER=$(tc-getCXX) \
+ CXXFLAGS="${CXXFLAGS}" \
+ shared || die "emake ${backend} failed"
+ if use static ; then
+ emake \
+ COMPILER=$(tc-getCXX) \
+ CXXFLAGS="${CXXFLAGS}" \
+ || die "emake ${backend} failed"
+ fi
+ done
+}
+
+
+src_install() {
+ dohtml doc/*
+ dodoc CHANGES contrib README
+
+ find . -iname "libsoci-*" | xargs dolib
+
+ insinto /usr/include
+ doins core/*.h backends/soci-{common,empty}.h
+ use mysql && doins backends/soci-mysql.h
+ use postgres && doins backends/soci-postgresql.h
+ use sqlite3 && doins backends/soci-sqlite3.h
+}