diff options
author | Sven Wegener <swegener@gentoo.org> | 2007-07-22 12:07:28 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2007-07-22 12:07:28 +0000 |
commit | 098df5d03c38d3114834f8428aaa3a0c662635d1 (patch) | |
tree | 10ee636b5d4cd5be0e830396b56cefc88b9b2ec3 /dev-db | |
parent | Version bump, development release. Added oracle and firebird support. (diff) | |
download | gentoo-2-098df5d03c38d3114834f8428aaa3a0c662635d1.tar.gz gentoo-2-098df5d03c38d3114834f8428aaa3a0c662635d1.tar.bz2 gentoo-2-098df5d03c38d3114834f8428aaa3a0c662635d1.zip |
Revision bump. Added oracle and firebird support.
(Portage version: 7330-svn)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/opendbx/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/opendbx/files/digest-opendbx-1.2.3-r1 | 3 | ||||
-rw-r--r-- | dev-db/opendbx/opendbx-1.2.3-r1.ebuild | 57 |
3 files changed, 66 insertions, 1 deletions
diff --git a/dev-db/opendbx/ChangeLog b/dev-db/opendbx/ChangeLog index 7b5d08d46339..4da0b7b28a37 100644 --- a/dev-db/opendbx/ChangeLog +++ b/dev-db/opendbx/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/opendbx # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/opendbx/ChangeLog,v 1.8 2007/07/22 12:01:51 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/opendbx/ChangeLog,v 1.9 2007/07/22 12:07:28 swegener Exp $ + +*opendbx-1.2.3-r1 (22 Jul 2007) + + 22 Jul 2007; Sven Wegener <swegener@gentoo.org> +opendbx-1.2.3-r1.ebuild: + Revision bump. Added oracle and firebird support. *opendbx-1.3.3 (22 Jul 2007) diff --git a/dev-db/opendbx/files/digest-opendbx-1.2.3-r1 b/dev-db/opendbx/files/digest-opendbx-1.2.3-r1 new file mode 100644 index 000000000000..d2d1e4fb9718 --- /dev/null +++ b/dev-db/opendbx/files/digest-opendbx-1.2.3-r1 @@ -0,0 +1,3 @@ +MD5 7700924e9400ae5e19758d947b01b789 opendbx-1.2.3.tar.gz 480438 +RMD160 f6fb1a5a0f44ba02ca735484506dd2497910934d opendbx-1.2.3.tar.gz 480438 +SHA256 6fe30b8627e25099c8ed0ffbabf65169a8a8cf8a512d6f1cf6c22e3802de7678 opendbx-1.2.3.tar.gz 480438 diff --git a/dev-db/opendbx/opendbx-1.2.3-r1.ebuild b/dev-db/opendbx/opendbx-1.2.3-r1.ebuild new file mode 100644 index 000000000000..4dd7302ad493 --- /dev/null +++ b/dev-db/opendbx/opendbx-1.2.3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/opendbx/opendbx-1.2.3-r1.ebuild,v 1.1 2007/07/22 12:07:28 swegener Exp $ + +inherit flag-o-matic + +DESCRIPTION="OpenDBX - A database abstraction layer" +HOMEPAGE="http://www.linuxnetworks.de/opendbx/" +SRC_URI="http://www.linuxnetworks.de/opendbx/download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="firebird mysql oracle postgres sqlite sqlite3" + +DEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( <dev-db/sqlite-3 ) + sqlite3? ( =dev-db/sqlite-3* ) + oracle? ( dev-db/oracle-instantclient-basic ) + firebird? ( dev-db/firebird )" +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! ( use firebird || use mysql || use oracle || use postgres || use sqlite || use sqlite3 ) + then + die "Need at least one of firebird, mysql, oracle, postgres, sqlite and sqlite3 activated!" + fi + + if use oracle && [[ ! -d ${ORACLE_HOME} ]] + then + die "Oracle support requested, but ORACLE_HOME not set to a valid directory!" + fi + + use mysql && append-cppflags -I/usr/include/mysql + use firebird && append-cppflags -I/opt/firebird/include + use oracle && append-ldflags -L${ORACLE_HOME}/lib +} + +src_compile() { + local backends="" + + use firebird && backends="${backends} firebird" + use mysql && backends="${backends} mysql" + use oracle && backends="${backends} oracle" + use postgres && backends="${backends} pgsql" + use sqlite && backends="${backends} sqlite" + use sqlite3 && backends="${backends} sqlite3" + + econf --with-backends="${backends}" || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "make install failed" + dodoc AUTHORS ChangeLog README +} |