# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit multilib DESCRIPTION="Official ODBC driver for PostgreSQL 9.0" HOMEPAGE="http://www.postgresql.org/" SRC_URI="mirror://postgresql/odbc/versions/src/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="iodbc doc unicode threads ssl" DEPEND="dev-db/postgresql-base:9.0 !iodbc? ( dev-db/unixODBC ) iodbc? ( dev-db/libiodbc ) ssl? ( dev-libs/openssl )" RDEPEND="${DEPEND}" src_configure() { econf --with-libpq="${EROOT%/}/usr/$(get_libdir)/postgresql-9.0/bin/pg_config" \ $(use_with iodbc) \ $(use_with !iodbc unixodbc) \ $(use_enable ssl openssl) \ $(use_enable threads pthreads) \ $(use_with unicode) } src_install() { emake DESTDIR="${D}" install dodoc readme.txt use doc && dohtml docs/* }