Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/BerkeleyDB/
Date: Sun, 16 Aug 2020 02:04:40
Message-Id: 1597543443.718e746de9728f24f346870c6652bbdece559965.kentnl@gentoo
1 commit: 718e746de9728f24f346870c6652bbdece559965
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 16 02:04:03 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 16 02:04:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=718e746d
7
8 dev-perl/BerkeleyDB: Fix libdir re bug #737190
9
10 Bug: https://bugs.gentoo.org/737190
11 Package-Manager: Portage-2.3.103, Repoman-2.3.22
12 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
13
14 dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r2.ebuild | 64 ++++++++++++++++++++++++
15 1 file changed, 64 insertions(+)
16
17 diff --git a/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r2.ebuild b/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r2.ebuild
18 new file mode 100644
19 index 00000000000..8a644c1a2e6
20 --- /dev/null
21 +++ b/dev-perl/BerkeleyDB/BerkeleyDB-0.630.0-r2.ebuild
22 @@ -0,0 +1,64 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +DIST_AUTHOR=PMQS
29 +DIST_VERSION=0.63
30 +inherit perl-module db-use multilib
31 +
32 +DESCRIPTION="This module provides Berkeley DB interface for Perl"
33 +
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
36 +
37 +# Install DB_File if you want older support. BerkleyDB no longer
38 +# supports less than 2.0.
39 +
40 +RDEPEND="
41 + >=sys-libs/db-2.0:=
42 + <sys-libs/db-7:=
43 +"
44 +DEPEND="
45 + >=sys-libs/db-2.0:=
46 + <sys-libs/db-7:=
47 +"
48 +BDEPEND="${RDEPEND}
49 + virtual/perl-ExtUtils-MakeMaker"
50 +
51 +PERL_RM_FILES=(
52 + "t/meta-json.t"
53 + "t/meta-yaml.t"
54 + "t/pod.t"
55 + "scan.pl"
56 + "mkconsts.pl"
57 +)
58 +# parallel really broken
59 +DIST_TEST="do"
60 +src_prepare() {
61 + local DB_SUPPORTED=(
62 + 6 5 4 3 2
63 + )
64 + # on Gentoo/FreeBSD we cannot trust on the symlink /usr/include/db.h
65 + # as for Gentoo/Linux, so we need to esplicitely declare the exact berkdb
66 + # include path
67 + local dbdir="$(db_includedir "${DB_SUPPORTED[@]}" )"
68 + local dbname="$(db_libname "${DB_SUPPORTED[@]}" )"
69 + einfo "DB Include Dir: ${dbdir}"
70 + einfo "DB library: ${dbname}"
71 +
72 + rm -f "${S}/config.in" || die "Can't remove packaged config.in"
73 +
74 + printf "INCLUDE = %s\nLIB = %s\nDBNAME = -l%s\n" \
75 + "${dbdir}" \
76 + "${EPREFIX}/usr/$(get_libdir)" \
77 + "${dbname}" > "${S}"/config.in || die "Can't write config.in"
78 +
79 + perl-module_src_prepare
80 +}
81 +src_compile() {
82 + mymake=(
83 + "OPTIMIZE=${CFLAGS}"
84 + )
85 + perl-module_src_compile
86 +}