# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="mysql odbc postgres xbase" inherit kde need-kde 3 DESCRIPTION="Rekall - a database frontend for MySQL, PostgreSQL and XBase" HOMEPAGE="http://www.rekallrevealed.org/" SRC_URI="http://www.rekallrevealed.org/packages/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" RESTRICT="nomirror" DEPEND=">=dev-lang/python-2.1.3 mysql? ( >=dev-db/mysql-3.23.57-r1 ) postgres? ( >=dev-db/postgresql-7.3.4-r1 ) xbase? ( =dev-db/xbsql-0.11 )" src_compile() { local myconf="--with-gui=kde" myconf="${myconf} `use_enable doc`" myconf="${myconf} `use_enable mysql`" myconf="${myconf} `use_enable xbase`" use odbc && myconf="${myconf} --enable-odbc=yes --enable-iodbc=yes" \ || myconf="${myconf} --enable-odbc=no --enable-iodbc=no" use postgres && myconf="$myconf --enable-pgsql" \ || myconf="$myconf --disable-pgsql" sed -i -e 's/$(LN_S) $(kde_libs_htmldir)\/$(KDE_LANG)\/common/$(LN_S) common/' ${S}/doc/rekall/Makefile.in kde_src_compile } src_install() { kde_src_install if use postgres; then cd ${D}/usr/lib mv libkbase_driver_pgsql.so libkbase_driver_pgsql.so.0.0.0 ln -s libkbase_driver_pgsql.so.0.0.0 libkbase_driver_pgsql.so.0 ln -s libkbase_driver_pgsql.so.0.0.0 libkbase_driver_pgsql.so fi }