You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/psqlodbc/psqlodbc-10.01.0000.ebuild

33 lines
683 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
DESCRIPTION="Official ODBC driver for PostgreSQL"
HOMEPAGE="https://www.postgresql.org/"
SRC_URI="mirror://postgresql/odbc/versions/src/${P}.tar.gz"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="amd64 x86"
IUSE="doc iodbc ssl threads"
DEPEND="dev-db/postgresql:*[ssl?]
!iodbc? ( dev-db/unixODBC )
iodbc? ( dev-db/libiodbc )
"
RDEPEND="${DEPEND}"
src_configure() {
econf \
$(use_with iodbc) \
$(use_with !iodbc unixodbc) \
$(use_enable threads pthreads)
}
src_install() {
emake DESTDIR="${D}" install
dodoc readme.txt
use doc && dodoc docs/*{html,jpg,txt}
}