diff options
Diffstat (limited to 'dev-libs/apr-util/apr-util-0.9.12.ebuild')
-rw-r--r-- | dev-libs/apr-util/apr-util-0.9.12.ebuild | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/dev-libs/apr-util/apr-util-0.9.12.ebuild b/dev-libs/apr-util/apr-util-0.9.12.ebuild index 6387dd0a9169..dc1e09984c8c 100644 --- a/dev-libs/apr-util/apr-util-0.9.12.ebuild +++ b/dev-libs/apr-util/apr-util-0.9.12.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-0.9.12.ebuild,v 1.4 2006/05/18 18:19:19 vericgar Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-0.9.12.ebuild,v 1.5 2006/06/04 13:23:34 chtekk Exp $ -inherit eutils flag-o-matic libtool +inherit eutils flag-o-matic libtool db-use DESCRIPTION="Apache Portable Runtime Library" HOMEPAGE="http://apr.apache.org/" @@ -31,16 +31,11 @@ src_compile() { myconf="${myconf} $(use_with gdbm)" if use berkdb; then - if has_version '=sys-libs/db-4.3*'; then - myconf="${myconf} --with-dbm=db43 - --with-berkeley-db=/usr/include/db4.3:/usr/$(get_libdir)" - elif has_version '=sys-libs/db-4.2*'; then - myconf="${myconf} --with-dbm=db42 - --with-berkeley-db=/usr/include/db4.2:/usr/$(get_libdir)" - elif has_version '=sys-libs/db-4*'; then - myconf="${myconf} --with-dbm=db4 - --with-berkeley-db=/usr/include/db4:/usr/$(get_libdir)" - fi + dbver="$(db_findver sys-libs/db)" || die "Unable to find db version" + dbver="$(db_ver_to_slot "$dbver")" + dbver="${dbver/\./}" + myconf="${myconf} --with-dbm=db${dbver} + --with-berkeley-db=$(db_includedir):/usr/$(get_libdir)" else myconf="${myconf} --without-berkeley-db" fi |