# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 MODULE_AUTHOR=PMQS MODULE_VERSION=0.55 inherit perl-module epatch db-use DESCRIPTION="This module provides Berkeley DB interface for Perl" SLOT="0" KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 sparc x86" IUSE="" # Install DB_File if you want older support. BerkleyDB no longer # supports less than 2.0. RDEPEND=">=sys-libs/db-2.0:*" DEPEND="${RDEPEND} virtual/perl-ExtUtils-MakeMaker" 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" } src_test() { perl_rm_files t/pod.t perl-module_src_test }