Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 520756 | Differences between
and this patch

Collapse All | Expand All

(-)perl-module.eclass (+30 lines)
Lines 362-367 Link Here
362
	fi
362
	fi
363
}
363
}
364
364
365
# @FUNCTION: perl_rm_files
366
# @USAGE: perl_rm_files "file_1" "file_2"
367
# @DESCRIPTION:
368
# Remove certain files from a Perl release and remove them from the MANIFEST
369
# while we're there.
370
# 
371
# Most useful in src_prepare for nuking bad tests, and is highly recommended
372
# for any tests like 'pod.t', 'pod-coverage.t' or 'kwalitee.t', as what they
373
# test is completely irrelevant to end users, and frequently fail simply
374
# because the authors of Test::Pod... changed their recommendations, and thus
375
# failures are only useful feedback to Authors, not users.
376
#
377
# Removing from MANIFEST also avoids needless log messages warning
378
# users about files "missing from their kit".
379
perl_rm_files() {
380
	debug-print-function $FUNCNAME "$@"
381
	local skipfile=${S}/.gentoo_makefile_skip
382
	local manifile=${S}/MANIFEST
383
	local manitemp=${S}/.gentoo_manifest_temp
384
	for filename in "$@"; do
385
		einfo "Removing un-needed ${filename}";
386
		# Remove the file
387
		rm ${S}/$filename
388
		echo ${filename} >> ${skipfile}
389
	done
390
	grep -v -F -f $skipfile $manifile > $manitemp
391
	mv $manitemp $manifile
392
	rm $skipfile;
393
}
394
365
perl_remove_temppath() {
395
perl_remove_temppath() {
366
	debug-print-function $FUNCNAME "$@"
396
	debug-print-function $FUNCNAME "$@"
367
397

Return to bug 520756