summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild')
-rw-r--r--dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild b/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild
index cb604bb08beb..0c1ff573a5be 100644
--- a/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild
+++ b/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild,v 1.6 2007/04/15 20:28:13 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/BerkeleyDB/BerkeleyDB-0.31.ebuild,v 1.7 2007/07/09 13:29:34 mcummings Exp $
-inherit perl-module eutils
+inherit perl-module eutils db-use
DESCRIPTION="This module provides Berkeley DB interface for Perl."
HOMEPAGE="http://search.cpan.org/~pmqs/BerkeleyDB"
@@ -24,4 +24,8 @@ src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/Gentoo-config-0.26.diff
+ # on Gentoo/FreeBSD we cannot trust on the symlink /usr/include/db.h
+ # as for Gentoo/Linux, so we need to esplicitely declare the exact berkdb
+ # include path
+ sed -i -e "s:/usr/include:$(db_includedir):" config.in || die "berkdb include directory"
}