# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 DESCRIPTION="Gnome Database Access Library" HOMEPAGE="http://www.gnome-db.org/" LICENSE="GPL-2 LGPL-2" IUSE="bdb odbc postgres mysql ldap firebird freetds sqlite mdb oci8 doc tds xbase" SLOT="2" KEYWORDS="~x86" RDEPEND=">=dev-libs/glib-2.0 >=dev-libs/libxml2-2.0 >=dev-libs/libxslt-1.0.9 dev-libs/popt sys-libs/ncurses sys-libs/readline mysql? ( >=dev-db/mysql-3.23.51 ) postgres? ( >=dev-db/postgresql-7.2.1 ) odbc? ( >=dev-db/unixODBC-2.0.6 ) ldap? ( >=net-nds/openldap-2.0.25 ) x86? ( firebird? ( dev-db/firebird ) ) freetds? ( >=dev-db/freetds-0.5 ) sqlite? ( =dev-db/sqlite-2* ) bdb? ( >=dev-db/libdbi-0.7.2 ) xbase? ( >=dev-db/xbase-2.0.0 ) !ia64? ( mdb? ( >=app-office/mdbtools-0.5 ) )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.8 >=dev-util/intltool-0.22 >=sys-devel/gettext-0.11 app-text/scrollkeeper" # problems with parallel builds MAKEOPTS="${MAKEOPTS} -j1" src_unpack() { unpack ${A} gnome2_omf_fix ${S}/doc/Makefile.in } G2CONF="${G2CONF} `use_with mysql mysql /usr` \ `use_with postgres postgres /usr` \ `use_with odbc odbc /usr` \ `use_with ldap ldap /usr` \ `use_with sqlite sqlite /usr` \ `use_with tds tds /usr` \ `use_with firebird firebird /usr` \ `use_with mdb mdb /usr` \ `use_with xbase xbase /usr`" # closed source dbs #msql not in portage G2CONF="${G2CONF} --without-ibmdb2 \ --without-msql \ --without-sybase" use oci8 || G2CONF="${G2CONF} --without-oracle" DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README"