# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/psqlodbc/psqlodbc-08.00.101.ebuild,v $ DESCRIPTION="psqlODBC driver for Postgresql" HOMEPAGE="http://gborg.postgresql.org/project/psqlodbc/projdisplay.php" SRC_URI="mirror://postgresql/odbc/versions/src/psqlodbc-${PV}.tar.gz" #RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug doc static" RDEPEND=">=dev-db/postgresql-8 dev-db/unixODBC" # perl is required for building docs #DEPEND="${RDEPEND} doc? ( dev-lang/perl )" DEPEND="${RDEPEND}" #S=${WORKDIR}/${MY_P} src_compile() { local myconf="--enable-static" use static \ && myconf="${myconf} --disable-shared" \ || myconf="${myconf} --enable-shared" # --with-unixodbc # --with-iodbc # --with-odbcver=VER # --with-pic # --with-odbcinst=DIR # --enable-pthreads myconf="${myconf}" econf \ --libexecdir=/usr/sbin \ --sysconfdir=/etc/psqlodbc \ --with-odbc-ini=/etc/unixODBC/odbc.ini \ --with-unixODBC=/usr \ ${myconf} || die "econf failed" # --localstatedir=/var/lib/myodbc \ # --with-mysql-libs=/usr/lib/mysql emake || die "emake failed" } src_install() { # into /usr # einstall \ # libexecdir=${D}/usr/sbin \ # sysconfdir=${D}/etc/myodbc \ # localstatedir=${D}/var/lib/myodbc make DESTDIR=${D} install || die "died running make install, $FUNCNAME:make" dodoc README.unix odbcinst.ini *.txt } pkg_postinst() { einfo "If this is a new install, please see /usr/share/doc/${PF}/odbcinst.ini" }