mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
Cleaned up the ebuild as well as there isn’t any dependency on a particular version of PostgreSQL. This should prevent any future issue of blocking old slots of dev-db/postgresql. Package-Manager: portage-2.3.0
34 lines
718 B
Bash
34 lines
718 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="6"
|
|
|
|
DESCRIPTION="Official ODBC driver for PostgreSQL"
|
|
HOMEPAGE="http://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 unicode"
|
|
|
|
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) \
|
|
$(use_enable unicode)
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install
|
|
|
|
dodoc readme.txt
|
|
use doc && dodoc docs/*{html,jpg,txt}
|
|
}
|