/[gentoo-x86]/eclass/perl-module.eclass
Gentoo

Diff of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.144 Revision 1.145
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.144 2014/11/01 17:34:28 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.145 2014/11/01 22:08:54 monsieurp Exp $
4 4
5# @ECLASS: perl-module.eclass 5# @ECLASS: perl-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# perl@gentoo.org 7# perl@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
120 debug-print-function $FUNCNAME "$@" 120 debug-print-function $FUNCNAME "$@"
121 has src_prepare ${PERL_EXPF} && \ 121 has src_prepare ${PERL_EXPF} && \
122 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" 122 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
123 debug-print "$FUNCNAME: applying user patches" 123 debug-print "$FUNCNAME: applying user patches"
124 epatch_user 124 epatch_user
125 if [[ ${PERL_RM_FILES[@]} ]]; then
126 debug-print "$FUNCNAME: stripping unneeded files"
127 perl_rm_files "${PERL_RM_FILES[@]}"
128 fi
125 perl_fix_osx_extra 129 perl_fix_osx_extra
126 esvn_clean 130 esvn_clean
127} 131}
128 132
129perl-module_src_configure() { 133perl-module_src_configure() {
396 sed -i -e "s:${D}:/:g" "${f}" 400 sed -i -e "s:${D}:/:g" "${f}"
397 fi 401 fi
398 done 402 done
399} 403}
400 404
405# @FUNCTION: perl_rm_files
406# @USAGE: perl_rm_files "file_1" "file_2"
407# @DESCRIPTION:
408# Remove certain files from a Perl release and remove them from the MANIFEST
409# while we're there.
410#
411# Most useful in src_prepare for nuking bad tests, and is highly recommended
412# for any tests like 'pod.t', 'pod-coverage.t' or 'kwalitee.t', as what they
413# test is completely irrelevant to end users, and frequently fail simply
414# because the authors of Test::Pod... changed their recommendations, and thus
415# failures are only useful feedback to Authors, not users.
416#
417# Removing from MANIFEST also avoids needless log messages warning
418# users about files "missing from their kit".
419perl_rm_files() {
420 debug-print-function $FUNCNAME "$@"
421 local skipfile="${T}/.gentoo_makefile_skip"
422 local manifile="${S}/MANIFEST"
423 local manitemp="${T}/.gentoo_manifest_temp"
424 oldifs="$IFS"
425 IFS="\n"
426 for filename in "$@"; do
427 einfo "Removing un-needed ${filename}";
428 # Remove the file
429 rm -f "${S}/${filename}"
430 [[ -e "${manifile}" ]] && echo "${filename}" >> "${skipfile}"
431 done
432 if [[ -e "${manifile}" && -e "${skipfile}" ]]; then
433 einfo "Fixing Manifest"
434 grep -v -F -f "${skipfile}" "${manifile}" > "${manitemp}"
435 mv -f -- "${manitemp}" "${manifile}"
436 rm -- "${skipfile}";
437 fi
438 IFS="$oldifs"
439}
440
401perl_link_duallife_scripts() { 441perl_link_duallife_scripts() {
402 debug-print-function $FUNCNAME "$@" 442 debug-print-function $FUNCNAME "$@"
403 if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then 443 if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then
404 return 0 444 return 0
405 fi 445 fi

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145

  ViewVC Help
Powered by ViewVC 1.1.20