1 |
commit: d3693d88561489c4235c967abcb9832e7ca86755 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 12 20:08:32 2019 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 12 20:09:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3693d88 |
7 |
|
8 |
perl-functions.eclass: Add EAPI=7 support |
9 |
|
10 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
11 |
|
12 |
eclass/perl-functions.eclass | 10 +++++----- |
13 |
1 file changed, 5 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass |
16 |
index e7775f31b8e..e6168a07534 100644 |
17 |
--- a/eclass/perl-functions.eclass |
18 |
+++ b/eclass/perl-functions.eclass |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2019 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
# @ECLASS: perl-functions.eclass |
25 |
@@ -8,7 +8,7 @@ |
26 |
# Seemant Kulleen <seemant@g.o> |
27 |
# Andreas K. Huettel <dilfridge@g.o> |
28 |
# Kent Fredric <kentnl@g.o> |
29 |
-# @SUPPORTED_EAPIS: 5 6 |
30 |
+# @SUPPORTED_EAPIS: 5 6 7 |
31 |
# @BLURB: helper functions eclass for perl modules |
32 |
# @DESCRIPTION: |
33 |
# The perl-functions eclass is designed to allow easier installation of perl |
34 |
@@ -19,7 +19,7 @@ |
35 |
[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives |
36 |
|
37 |
case "${EAPI:-0}" in |
38 |
- 5|6) |
39 |
+ 5|6|7) |
40 |
;; |
41 |
*) |
42 |
die "EAPI=${EAPI} is not supported by perl-functions.eclass" |
43 |
@@ -142,7 +142,7 @@ perl_fix_packlist() { |
44 |
einfo "Fixing packlist file /${f#${D}}" |
45 |
|
46 |
# remove the temporary build dir path |
47 |
- sed -i -e "s:${D}:/:g" "${f}" |
48 |
+ sed -i -e "s:${D%/}/:/:g" "${f}" |
49 |
|
50 |
# remove duplicate entries |
51 |
sort -u "${f}" > "${packlist_temp}" |
52 |
@@ -170,7 +170,7 @@ perl_remove_temppath() { |
53 |
find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do |
54 |
if file "${f}" | grep -q -i " text" ; then |
55 |
grep -q "${D}" "${f}" && ewarn "QA: File contains a temporary path ${f}" |
56 |
- sed -i -e "s:${D}:/:g" "${f}" |
57 |
+ sed -i -e "s:${D%/}/:/:g" "${f}" |
58 |
fi |
59 |
done |
60 |
} |