1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools ltprune
8 DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi"
9 SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz"
10 HOMEPAGE="http://libdbi-drivers.sourceforge.net/"
13 IUSE="doc firebird mysql oci8 postgres +sqlite static-libs"
14 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 ~sparc x86"
16 REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )"
17 RESTRICT="firebird? ( bindist )"
21 firebird? ( dev-db/firebird )
22 mysql? ( virtual/mysql )
23 postgres? ( dev-db/postgresql )
24 sqlite? ( dev-db/sqlite:3 )
27 doc? ( app-text/openjade )
30 DOCS="AUTHORS ChangeLog NEWS README README.osx TODO"
33 use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
37 #"${FILESDIR}"/${P}-fix-ac-macro.patch \
38 #"${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch \
39 #"${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch
41 "${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch
47 # WARNING: the configure script does NOT work correctly
48 # --without-$driver does NOT work
49 # so do NOT use `use_with...`
55 use mysql && myconf+=" --with-mysql"
56 use postgres && myconf+=" --with-pgsql"
57 use sqlite && myconf+=" --with-sqlite3"
58 use firebird && myconf+=" --with-firebird"
60 [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
61 myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle"
65 $(use_enable doc docs) \
66 $(use_enable static-libs static) \
67 --with-dbi-libdir=/usr/$(get_libdir) \
72 if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then
73 ewarn "Tests disabled due to interactivity."
74 ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them."
77 einfo "Running interactive tests"
84 prune_libtool_files --all