1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A c++-class-library for easy and light database-access. Currently for postgresql, sqlite3 and mysql"
8 HOMEPAGE="http://www.tntnet.org/tntdb.hms"
9 SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
12 KEYWORDS="~amd64 ~x86"
13 IUSE="doc mysql postgres sqlite"
15 RDEPEND="mysql? ( virtual/mysql )
16 postgres? ( virtual/postgresql-base )
17 sqlite? ( dev-db/sqlite:3 )
18 >=dev-libs/cxxtools-1.4.8"
20 doc? ( app-doc/doxygen )"
25 $(use_with postgres postgresql) \
27 $(use_with doc doxygen) \
28 --docdir=/usr/share/doc/${PF} \
29 --htmldir=/usr/share/doc/${PF}/html
33 emake DESTDIR="${D}" install || die "emake install failed"
34 dodoc AUTHORS ChangeLog README NEWS doc/*.pdf
36 insinto /usr/share/doc/${PF}/examples