You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/BerkeleyDB/BerkeleyDB-0.500.0.ebuild

33 lines
965 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/BerkeleyDB/BerkeleyDB-0.500.0.ebuild,v 1.4 2012/04/04 08:50:44 jdhore Exp $
EAPI=4
MODULE_AUTHOR=PMQS
MODULE_VERSION=0.50
inherit perl-module eutils db-use
DESCRIPTION="This module provides Berkeley DB interface for Perl."
SLOT="0"
KEYWORDS="~alpha amd64 hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
IUSE="test"
# Install DB_File if you want older support. BerkleyDB no longer
# supports less than 2.0.
RDEPEND=">=sys-libs/db-2.0"
DEPEND="${RDEPEND}
test? ( dev-perl/Test-Pod )"
SRC_TEST="do"
src_prepare() {
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"
}