# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Tntdb is a c++-class-library for easy and light database-access. Currently postgresql, sqlite3 and mysql are supported." HOMEPAGE="http://www.tntnet.org/tntdb.hms" SRC_URI="http://www.tntnet.org/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="mysql postgres sqlite" DEPEND="dev-libs/tntnet" src_compile() { econf ${myconf} \ $(use_with mysql) \ $(use_with postgres postgresql) \ $(use_with sqlite) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "Install failed" dodoc AUTHORS ChangeLog README NEWS doc/*.pdf }