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

Collapse All | Expand All

(-)mplayer-9999.ebuild (-1 / +18 lines)
Lines 543-549 Link Here
543
src_compile() {
543
src_compile() {
544
544
545
	emake || die "Failed to build MPlayer!"
545
	emake || die "Failed to build MPlayer!"
546
	use doc && make -C DOCS/xml html-chunked
546
547
 	# Install only user-requested docs if they're available.
548
	use doc && {
549
		if [[ -z $LINGUAS ]]
550
		then 
551
			make -C DOCS/xml html-chunked
552
		else
553
		# select available languages from $LINGUAS
554
		LINGUAS=${LINGUAS/zh/zh_CN}
555
		local a1=( cs de en es fr hu it pl ru zh_CN )
556
		local a2=( $LINGUAS )
557
		for (( i=0; i<${#a1[*]}; i++ )); do
558
			for (( j=0; j<${#a1[*]}; j++ )); do
559
				[[ ${a1[i]} == ${a2[j]} ]] && make -C DOCS/xml html-chunked-${a2[j]}
560
			done
561
		done
562
		fi
563
	}
547
}
564
}
548
565
549
src_install() {
566
src_install() {

Return to bug 267124