|
Lines 2-8
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $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 $ |
3 |
# $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 $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils flag-o-matic libtool |
5 |
inherit eutils flag-o-matic libtool db-use |
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="Apache Portable Runtime Library" |
7 |
DESCRIPTION="Apache Portable Runtime Library" |
| 8 |
HOMEPAGE="http://apr.apache.org/" |
8 |
HOMEPAGE="http://apr.apache.org/" |
|
Lines 31-46
Link Here
|
| 31 |
myconf="${myconf} $(use_with gdbm)" |
31 |
myconf="${myconf} $(use_with gdbm)" |
| 32 |
|
32 |
|
| 33 |
if use berkdb; then |
33 |
if use berkdb; then |
| 34 |
if has_version '=sys-libs/db-4.3*'; then |
34 |
dbver="$(db_findver sys-libs/db)" || die "Unable to find db version" |
| 35 |
myconf="${myconf} --with-dbm=db43 |
35 |
dbver="$(db_ver_to_slot "$dbver")" |
| 36 |
--with-berkeley-db=/usr/include/db4.3:/usr/$(get_libdir)" |
36 |
dbver="${dbver/\./}" |
| 37 |
elif has_version '=sys-libs/db-4.2*'; then |
37 |
myconf="${myconf} --with-dbm=db${dbver} |
| 38 |
myconf="${myconf} --with-dbm=db42 |
38 |
--with-berkeley-db=$(db_includedir):/usr/$(get_libdir)" |
| 39 |
--with-berkeley-db=/usr/include/db4.2:/usr/$(get_libdir)" |
|
|
| 40 |
elif has_version '=sys-libs/db-4*'; then |
| 41 |
myconf="${myconf} --with-dbm=db4 |
| 42 |
--with-berkeley-db=/usr/include/db4:/usr/$(get_libdir)" |
| 43 |
fi |
| 44 |
else |
39 |
else |
| 45 |
myconf="${myconf} --without-berkeley-db" |
40 |
myconf="${myconf} --without-berkeley-db" |
| 46 |
fi |
41 |
fi |