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.
36 lines
727 B
36 lines
727 B
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
|
DESCRIPTION="Official ODBC driver for PostgreSQL"
|
||
4 years ago
|
HOMEPAGE="https://odbc.postgresql.org/"
|
||
5 years ago
|
SRC_URI="https://ftp.postgresql.org/pub/odbc/versions/src/${P}.tar.gz"
|
||
8 years ago
|
SLOT="0"
|
||
|
LICENSE="LGPL-2"
|
||
4 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
IUSE="doc iodbc ssl threads"
|
||
|
|
||
|
DEPEND="dev-db/postgresql:*[ssl?]
|
||
|
!iodbc? ( dev-db/unixODBC )
|
||
|
iodbc? ( dev-db/libiodbc )
|
||
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
4 years ago
|
# No tests to run
|
||
|
RESTRICT="test"
|
||
|
|
||
8 years ago
|
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}
|
||
|
}
|