Gentoo Archives: gentoo-commits

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: eclass/
Date: Sun, 24 Aug 2014 13:56:28
Message-Id: 1408883354.2b3eb8fa5687ff501687e12d1c133eccc6e3670e.kent@gentoo
1 commit: 2b3eb8fa5687ff501687e12d1c133eccc6e3670e
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 24 12:29:14 2014 +0000
4 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com>
5 CommitDate: Sun Aug 24 12:29:14 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=2b3eb8fa
7
8 add perl_rm_files function to perl-module.eclass ( bug #520756 )
9
10 ---
11 eclass/perl-module.eclass | 30 ++++++++++++++++++++++++++++++
12 1 file changed, 30 insertions(+)
13
14 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
15 index b1d4c2e..6f7b5f4 100644
16 --- a/eclass/perl-module.eclass
17 +++ b/eclass/perl-module.eclass
18 @@ -426,6 +426,36 @@ perl_remove_temppath() {
19 done
20 }
21
22 +# @FUNCTION: perl_rm_files
23 +# @USAGE: perl_rm_files "file_1" "file_2"
24 +# @DESCRIPTION:
25 +# Remove certain files from a Perl release and remove them from the MANIFEST
26 +# while we're there.
27 +#
28 +# Most useful in src_prepare for nuking bad tests, and is highly recommended
29 +# for any tests like 'pod.t', 'pod-coverage.t' or 'kwalitee.t', as what they
30 +# test is completely irrelevant to end users, and frequently fail simply
31 +# because the authors of Test::Pod... changed their recommendations, and thus
32 +# failures are only useful feedback to Authors, not users.
33 +#
34 +# Removing from MANIFEST also avoids needless log messages warning
35 +# users about files "missing from their kit".
36 +perl_rm_files() {
37 + debug-print-function $FUNCNAME "$@"
38 + local skipfile=${S}/.gentoo_makefile_skip
39 + local manifile=${S}/MANIFEST
40 + local manitemp=${S}/.gentoo_manifest_temp
41 + for filename in "$@"; do
42 + einfo "Removing un-needed ${filename}";
43 + # Remove the file
44 + rm ${S}/$filename
45 + echo ${filename} >> ${skipfile}
46 + done
47 + grep -v -F -f $skipfile $manifile > $manitemp
48 + mv $manitemp $manifile
49 + rm $skipfile;
50 +}
51 +
52 perl_link_duallife_scripts() {
53 debug-print-function $FUNCNAME "$@"
54 if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then