blob: d96c1368816a8174c71c0784827653e5c177e108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/BerkeleyDB/BerkeleyDB-0.35.ebuild,v 1.1 2008/09/17 06:49:50 tove Exp $
MODULE_AUTHOR=PMQS
inherit perl-module eutils db-use
DESCRIPTION="This module provides Berkeley DB interface for Perl."
LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
SRC_TEST="do"
# Install DB_File if you want older support. BerkleyDB no longer
# supports less than 2.0.
DEPEND=">=sys-libs/db-2.0
dev-lang/perl"
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):" "${S}"/config.in || die "berkdb include directory"
}
|