diff options
author | Kent Fredric <kentnl@gentoo.org> | 2020-07-04 02:11:06 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2020-07-04 03:00:01 +1200 |
commit | de45065b5231d9eee590e90e41e35ab2cb0c709b (patch) | |
tree | efa85c723cefe6f45ccad9c42c92d63bc06bb777 /dev-perl/BerkeleyDB | |
parent | dev-perl/BDB: -r bump for EAPI7 + CFLAGS love (diff) | |
download | gentoo-de45065b5231d9eee590e90e41e35ab2cb0c709b.tar.gz gentoo-de45065b5231d9eee590e90e41e35ab2cb0c709b.tar.bz2 gentoo-de45065b5231d9eee590e90e41e35ab2cb0c709b.zip |
dev-perl/BerkeleyDB: -r bump for CFLAGS love + fixes
- Remove unused 'e-utils' eclass
- Ensure sys-libs/db mentioned in DEPEND
- Ensure CFLAGS passed to make/compiler
- Appease BAS-IMP-ebuild_multiple_deps_per_line
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/BerkeleyDB')
-rw-r--r-- | dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r1.ebuild b/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r1.ebuild new file mode 100644 index 000000000000..848dcc667f74 --- /dev/null +++ b/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=PMQS +DIST_VERSION=0.63 +inherit perl-module db-use + +DESCRIPTION="This module provides Berkeley DB interface for Perl" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +# Install DB_File if you want older support. BerkleyDB no longer +# supports less than 2.0. + +RDEPEND=" + >=sys-libs/db-2.0:= + <sys-libs/db-7:= +" +DEPEND=" + >=sys-libs/db-2.0:= + <sys-libs/db-7:= +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker" + +PERL_RM_FILES=( + "t/meta-json.t" + "t/meta-yaml.t" + "t/pod.t" + "scan.pl" + "mkconsts.pl" +) +# parallel really broken +DIST_TEST="do" +src_prepare() { + local DB_SUPPORTED=( + 6 5 4 3 2 + ) + # 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 + local dbdir="$(db_includedir "${DB_SUPPORTED[@]}" )" + local dbname="$(db_libname "${DB_SUPPORTED[@]}" )" + einfo "DB Include Dir: ${dbdir}" + einfo "DB library: ${dbname}" + + rm -f "${S}/config.in" || die "Can't remove packaged config.in" + + printf "INCLUDE = %s\nLIB = %s\nDBNAME = -l%s\n" \ + "${dbdir}" \ + "/usr/lib" \ + "${dbname}" > "${S}"/config.in || die "Can't write config.in" + + perl-module_src_prepare +} +src_compile() { + mymake=( + "OPTIMIZE=${CFLAGS}" + ) + perl-module_src_compile +} |