# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="kde mysql odbc postgres xbase" inherit kde MY_P=${P/_beta/-beta} S=${WORKDIR}/${MY_P} DESCRIPTION="Rekall - a database frontend for MySQL, PostgreSQL and XBase" HOMEPAGE="http://www.rekallrevealed.org/" SRC_URI="http://www.rekallrevealed.org/packages/${MY_P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" RESTRICT="nomirror" newdepend ">=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 )" if use kde; then need-kde 3 myconf="${myconf} --with-gui=kde" else need-qt 3 myconf="${myconf} --with-gui=qt3" # --with-gui=qt is untested fi use odbc && myconf="${myconf} --enable-odbc=yes --enable-iodbc=yes" \ || myconf="${myconf} --enable-odbc=no --enable-iodbc=no" src_compile() { 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 cd ${D}/usr/share 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 }