diff options
author | Gregorio Guidi <greg_g@gentoo.org> | 2005-07-29 11:48:25 +0000 |
---|---|---|
committer | Gregorio Guidi <greg_g@gentoo.org> | 2005-07-29 11:48:25 +0000 |
commit | ae8eb03accf783fe773729669a9e19ff45da9d97 (patch) | |
tree | 4ae8d5da53e643fc21d0108008a3c5bb119d26da /kde-base/kbabel | |
parent | add musicbrainz flag to juk (already exists in the kdemultimedia ebuild, this... (diff) | |
download | gentoo-2-ae8eb03accf783fe773729669a9e19ff45da9d97.tar.gz gentoo-2-ae8eb03accf783fe773729669a9e19ff45da9d97.tar.bz2 gentoo-2-ae8eb03accf783fe773729669a9e19ff45da9d97.zip |
Add support for Berkeley DB.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'kde-base/kbabel')
-rw-r--r-- | kde-base/kbabel/kbabel-3.4.2.ebuild | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/kde-base/kbabel/kbabel-3.4.2.ebuild b/kde-base/kbabel/kbabel-3.4.2.ebuild index acf782910a99..58cbe09c779c 100644 --- a/kde-base/kbabel/kbabel-3.4.2.ebuild +++ b/kde-base/kbabel/kbabel-3.4.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kbabel/kbabel-3.4.2.ebuild,v 1.1 2005/07/28 21:16:11 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kbabel/kbabel-3.4.2.ebuild,v 1.2 2005/07/29 11:48:25 greg_g Exp $ KMNAME=kdesdk MAXKDEVER=$PV @@ -9,6 +9,28 @@ inherit kde-meta eutils DESCRIPTION="KBabel - An advanced PO file editor" KEYWORDS=" ~amd64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="" +IUSE="berkdb" -DEPEND="sys-devel/flex"
\ No newline at end of file +DEPEND="sys-devel/flex + berkdb? ( || ( =sys-libs/db-4.3* + =sys-libs/db-4.2* ) )" + +PATCHES1="${FILESDIR}/configure-fix-kdesdk-db-3.4.patch" + +src_compile() { + local myconf="" + + if use berkdb; then + if has_version "=sys-libs/db-4.3*"; then + myconf="${myconf} --with-berkeley-db --with-db-name=db-4.3 + --with-db-include-dir=/usr/include/db4.3" + elif has_version "=sys-libs/db-4.2*"; then + myconf="${myconf} --with-berkeley-db --with-db-name=db-4.2 + --with-db-include-dir=/usr/include/db4.2" + fi + else + myconf="${myconf} --without-berkeley-db" + fi + + kde_src_compile +} |