Diff DBD-Pg-3.15.0 with a DBD-Pg-3.16.3
/usr/portage/dev-perl/DBD-Pg/DBD-Pg-3.16.3.ebuild 2023-10-09 14:52:29.840368359 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2023 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 | 6 |
DIST_AUTHOR=TURNSTEP |
7 | 7 |
inherit perl-module |
... | ... | |
10 | 10 | |
11 | 11 |
SLOT="0" |
12 | 12 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
13 |
IUSE="test" |
|
14 |
RESTRICT="!test? ( test )" |
|
15 | 13 | |
16 | 14 |
RDEPEND=" |
17 | 15 |
virtual/perl-version |
... | ... | |
21 | 19 |
DEPEND=" |
22 | 20 |
dev-db/postgresql:* |
23 | 21 |
" |
24 |
BDEPEND="${RDEPEND} |
|
25 |
virtual/perl-ExtUtils-MakeMaker |
|
22 |
BDEPEND=" |
|
23 |
${RDEPEND} |
|
24 |
>=virtual/perl-ExtUtils-MakeMaker-6.580.0 |
|
26 | 25 |
test? ( |
26 |
virtual/perl-File-Temp |
|
27 | 27 |
>=virtual/perl-Test-Simple-0.880.0 |
28 | 28 |
virtual/perl-Time-HiRes |
29 | 29 |
) |
30 | 30 |
" |
31 | ||
31 | 32 |
PERL_RM_FILES=( |
32 | 33 |
"t/00_signature.t" |
33 | 34 |
) |
35 | ||
34 | 36 |
src_prepare() { |
35 | 37 |
postgres_include="$(readlink -f "${EPREFIX}"/usr/include/postgresql)" |
36 | 38 |
postgres_lib="${postgres_include//include/lib}" |
... | ... | |
49 | 51 |
perl-module_src_prepare |
50 | 52 |
} |
51 | 53 | |
52 |
src_compile() { |
|
53 |
mymake=( |
|
54 |
"OPTIMIZE=${CFLAGS}" |
|
55 |
) |
|
56 |
perl-module_src_compile |
|
57 |
} |
|
58 | ||
59 | 54 |
src_test() { |
60 | 55 |
local MODULES=( |
61 | 56 |
"Bundle::DBD::Pg v${PV}" |
62 | 57 |
"DBD::Pg v${PV}" |
63 | 58 |
) |
64 | 59 |
local failed=() |
60 | ||
61 |
local dep |
|
65 | 62 |
for dep in "${MODULES[@]}"; do |
66 | 63 |
ebegin "Compile testing ${dep}" |
67 | 64 |
perl -Mblib="${S}" -M"${dep} ()" -e1 #|| |
68 | 65 |
#die "Could not load ${dep}" |
69 | 66 |
eend $? || failed+=( "$dep" ) |
70 | 67 |
done |
68 | ||
71 | 69 |
if [[ ${failed[@]} ]]; then |
72 | 70 |
echo |
73 | 71 |
eerror "One or more modules failed compile:"; |
... | ... | |
104 | 102 |
ewarn " https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/DBD-Pg" |
105 | 103 |
perl_rm_files "${LIVEDB_TESTS[@]}" |
106 | 104 |
fi |
105 | ||
107 | 106 |
# Parallel testing breaks database access |
108 | 107 |
DBDPG_TEST_ALWAYS_ENV=1 DIST_TEST="do" perl-module_src_test |
109 | ||
110 | 108 |
} |