diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-01-22 20:04:29 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-01-22 20:04:29 +0000 |
commit | eb8ada1860f009896726b6f648162de68541143e (patch) | |
tree | ee1508346c476c02765646a514597b6f0e724f7a /net-p2p/dctc/dctc-0.85.9.ebuild | |
parent | bump duali for bug 67252 and bug 110441 (diff) | |
download | historical-eb8ada1860f009896726b6f648162de68541143e.tar.gz historical-eb8ada1860f009896726b6f648162de68541143e.tar.bz2 historical-eb8ada1860f009896726b6f648162de68541143e.zip |
Fix again db-4.2 issue, bug 135320
Package-Manager: portage-2.1.2-r2
Diffstat (limited to 'net-p2p/dctc/dctc-0.85.9.ebuild')
-rw-r--r-- | net-p2p/dctc/dctc-0.85.9.ebuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/net-p2p/dctc/dctc-0.85.9.ebuild b/net-p2p/dctc/dctc-0.85.9.ebuild index 85e70191e992..5ea7cad7c024 100644 --- a/net-p2p/dctc/dctc-0.85.9.ebuild +++ b/net-p2p/dctc/dctc-0.85.9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/dctc/dctc-0.85.9.ebuild,v 1.16 2007/01/11 19:50:38 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/dctc/dctc-0.85.9.ebuild,v 1.17 2007/01/22 20:04:29 armin76 Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" @@ -32,16 +32,17 @@ src_unpack() { eautoreconf - - # fix for #26708 (db4 support) - local dbfunc="`grep '^#define.*db_env_create' /usr/include/db.h | awk '{print $NF}'`" - if [ "${dbfunc}" != "db_env_create" ] ; then - sed -i "s:db_env_create:${dbfunc}:g" configure + # This fix fails with db-4.3 + if has_version "=sys-libs/db-4.2*" && ! has_version ">=sys-libs/db-4.3*"; then + local dbfunc="`grep '^#define.*db_env_create' /usr/include/db.h | awk '{print $NF}'`" + if [ "${dbfunc}" != "db_env_create" ] ; then + sed -i "s:db_env_create:${dbfunc}:g" configure + fi fi } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc Documentation/Documentation/* Documentation/Documentation/DCextensions/* - dodoc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS NEWS README TODO + dodoc AUTHORS ChangeLog KNOWN_BUGS NEWS README TODO } |