|
|
# Distributed under the terms of the GNU General Public License v2 | # 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.4 2006/05/18 18:19:19 vericgar Exp $ |
| |
inherit eutils flag-o-matic libtool |
inherit eutils flag-o-matic libtool db-use |
| |
DESCRIPTION="Apache Portable Runtime Library" | DESCRIPTION="Apache Portable Runtime Library" |
HOMEPAGE="http://apr.apache.org/" | HOMEPAGE="http://apr.apache.org/" |
|
|
myconf="${myconf} $(use_with gdbm)" | myconf="${myconf} $(use_with gdbm)" |
| |
if use berkdb; then | if use berkdb; then |
if has_version '=sys-libs/db-4.3*'; then |
dbver="$(db_findver sys-libs/db)" || die "Unable to find db version" |
myconf="${myconf} --with-dbm=db43 |
dbver="$(db_ver_to_slot "$dbver")" |
--with-berkeley-db=/usr/include/db4.3:/usr/$(get_libdir)" |
dbver="${dbver/\./}" |
elif has_version '=sys-libs/db-4.2*'; then |
myconf="${myconf} --with-dbm=db${dbver} |
myconf="${myconf} --with-dbm=db42 |
--with-berkeley-db=$(db_includedir):/usr/$(get_libdir)" |
--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 |
|
else | else |
myconf="${myconf} --without-berkeley-db" | myconf="${myconf} --without-berkeley-db" |
fi | fi |