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

Collapse All | Expand All

(-)mplayer-9999.ebuild (-1 / +21 lines)
Lines 637-643 Link Here
637
src_compile() {
637
src_compile() {
638
	base_src_compile
638
	base_src_compile
639
	emake || die "Failed to build MPlayer!"
639
	emake || die "Failed to build MPlayer!"
640
	use doc && make -C DOCS/xml html-chunked
640
 	# Install only user-requested docs if they're available.
641
	use doc && {
642
		if [[ -z $LINGUAS ]]
643
		then 
644
			make -C DOCS/xml html-chunked || die "Failed to generate html docs"
645
		else
646
		# select available languages from $LINGUAS
647
		LINGUAS=${LINGUAS/zh/zh_CN}
648
		local a1=( cs de en es fr hu it pl ru zh_CN )
649
		local a2=( $LINGUAS )
650
		for (( i=0; i<${#a1[*]}; i++ )); do
651
			for (( j=0; j<${#a1[*]}; j++ )); do
652
				[[ ${a1[i]} == ${a2[j]} ]] && {
653
					make -C DOCS/xml html-chunked-${a2[j]} ||
654
					die "Failed to generate html docs for ${a2[j]}"
655
				}
656
			done
657
		done
658
		fi
659
	}
641
}
660
}
642
661
643
src_install() {
662
src_install() {
Lines 668-673 Link Here
668
	dodoc DOCS/tech/mirrors/* || die
687
	dodoc DOCS/tech/mirrors/* || die
669
688
670
	if use doc; then
689
	if use doc; then
690
		docinto html/
671
		dohtml -r "${S}"/DOCS/HTML/* || die
691
		dohtml -r "${S}"/DOCS/HTML/* || die
672
	fi
692
	fi
673
693

Return to bug 299405