# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.3-r2.ebuild,v 1.8 2009/12/16 11:06:40 ssuominen Exp $ EAPI="2" inherit eutils flag-o-matic KEYWORDS="~alpha ~amd64 ~hppa ppc ~x86" DESCRIPTION="Libodbc++ is a c++ class library that provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC." SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.bz2" HOMEPAGE="http://libodbcxx.sourceforge.net/" LICENSE="LGPL-2.1" SLOT=0 IUSE="qt test threads" #unicode don't compile DEPEND="dev-db/unixODBC sys-libs/ncurses qt? ( x11-libs/qt-core )" RDEPEND="${DEPEND}" src_configure() { local myconf myconf="--enable-static --enable-shared" use test || myconf="${myconf} --without-tests" use threads && myconf="${myconf} --enable-threads" use qt && myconf="${myconf} --with-qtsqlxx" econf \ ${myconf} \ || die "econf failed" } src_compile() { emake || die "emake failed" } src_install () { cd "${S}" dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO emake DESTDIR="${D}" install || die "make install failed" }