diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-11-26 00:31:37 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-11-26 00:31:37 +0000 |
commit | 23c8a74b4e098453b6aa6e0f061b34c9a3cfe0e4 (patch) | |
tree | 79795e5f9fa133c14e978664eba2d649ef5a5452 /dev-db/libdbi-drivers | |
parent | Stable for HPPA. (diff) | |
download | gentoo-2-23c8a74b4e098453b6aa6e0f061b34c9a3cfe0e4.tar.gz gentoo-2-23c8a74b4e098453b6aa6e0f061b34c9a3cfe0e4.tar.bz2 gentoo-2-23c8a74b4e098453b6aa6e0f061b34c9a3cfe0e4.zip |
Block USE=firebird when USE=bindist is in play, per bug #200284 for license conflicts.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-db/libdbi-drivers')
-rw-r--r-- | dev-db/libdbi-drivers/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/libdbi-drivers/files/digest-libdbi-drivers-0.8.1-r2 | 3 | ||||
-rw-r--r-- | dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild | 77 |
3 files changed, 88 insertions, 1 deletions
diff --git a/dev-db/libdbi-drivers/ChangeLog b/dev-db/libdbi-drivers/ChangeLog index ea0d17235c37..9d8492581642 100644 --- a/dev-db/libdbi-drivers/ChangeLog +++ b/dev-db/libdbi-drivers/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-db/libdbi-drivers # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.24 2007/06/20 07:39:57 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.25 2007/11/26 00:31:37 robbat2 Exp $ + +*libdbi-drivers-0.8.1-r2 (26 Nov 2007) + + 26 Nov 2007; Robin H. Johnson <robbat2@gentoo.org> + +libdbi-drivers-0.8.1-r2.ebuild: + Block USE=firebird when USE=bindist is in play, per bug #200284 for license + conflicts. 20 Jun 2007; Christian Faulhammer <opfer@gentoo.org> libdbi-drivers-0.8.1-r1.ebuild: diff --git a/dev-db/libdbi-drivers/files/digest-libdbi-drivers-0.8.1-r2 b/dev-db/libdbi-drivers/files/digest-libdbi-drivers-0.8.1-r2 new file mode 100644 index 000000000000..bc3c428cfd78 --- /dev/null +++ b/dev-db/libdbi-drivers/files/digest-libdbi-drivers-0.8.1-r2 @@ -0,0 +1,3 @@ +MD5 bca4dd6184e3e78676c35eb9a7ae1186 libdbi-drivers-0.8.1.tar.gz 1147446 +RMD160 280c5ea3a8a2b7029865d4fc48064620d9db2e38 libdbi-drivers-0.8.1.tar.gz 1147446 +SHA256 1b45bb53693feccdcc7fe7d32d37474e3ae15e8013553cc7051faa101f445bcd libdbi-drivers-0.8.1.tar.gz 1147446 diff --git a/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild b/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild new file mode 100644 index 000000000000..7bc6ad770bbc --- /dev/null +++ b/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.1-r2.ebuild,v 1.1 2007/11/26 00:31:37 robbat2 Exp $ + +inherit eutils + +DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://libdbi-drivers.sourceforge.net/" +LICENSE="LGPL-2.1" +DEPEND=">=dev-db/libdbi-0.8.0 + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( <dev-db/sqlite-3 ) + sqlite3? ( >=dev-db/sqlite-3 ) + !bindist? ( firebird? ( dev-db/firebird ) )" + +IUSE="mysql postgres sqlite oci8 firebird sqlite3 bindist" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +SLOT=0 + +src_unpack() { + unpack ${A} + EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/${P}-oci8.diff +} + +pkg_setup() { + local drivers="" + use mysql && drivers="${drivers} mysql" + use postgres && drivers="${drivers} pgsql" + use sqlite && drivers="${drivers} sqlite" + use sqlite3 && drivers="${drivers} sqlite3" + if use firebird; then + if use bindist; then + eerror "The Interbase Public License is incompatible with LGPL, see bug #200284." + eerror "Disabling firebird in the build" + else + drivers="${drivers} firebird" + fi + fi + if use oci8; then + if [ -z "${ORACLE_HOME}" ]; then + die "\$ORACLE_HOME is not set!" + fi + drivers="${drivers} oracle" + fi + # safety check + if [ -z "${drivers// /}" ]; then + die "No supported databases in your USE flags! (mysql, postgres, sqlite, sqlite3, oracle, firebird)" + fi +} + +src_compile() { + local myconf="" + # WARNING: the configure script does NOT work correctly + # --without-$driver does NOT work + # so do NOT use `use_with...` + use mysql && myconf="${myconf} --with-mysql" + use postgres && myconf="${myconf} --with-pgsql" + use sqlite && myconf="${myconf} --with-sqlite" + use sqlite3 && myconf="${myconf} --with-sqlite3" + use !bindist && use firebird && myconf="${myconf} --with-firebird" + if use oci8; then + if [ -z "${ORACLE_HOME}" ]; then + die "\$ORACLE_HOME is not set!" + fi + myconf="${myconf} --with-oracle-dir=${ORACLE_HOME} --with-oracle" + fi + + econf ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install () { + emake install DESTDIR="${D}" || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README README.osx TODO +} |