Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 230832
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +26 lines)
Line  Link Here
0
-- app-misc/mc/mc-4.6.2_pre1.ebuild
0
++ app-misc/mc/mc-4.6.2_pre1.ebuild
Lines 49-54 Link Here
49
	# Prevent lazy bindings in cons.saver binary for bug #135009
49
	# Prevent lazy bindings in cons.saver binary for bug #135009
50
	sed -i -e "s:^\(cons_saver_LDADD = .*\):\1 -Wl,-z,now:" \
50
	sed -i -e "s:^\(cons_saver_LDADD = .*\):\1 -Wl,-z,now:" \
51
		src/Makefile.in || die "sed failed."
51
		src/Makefile.in || die "sed failed."
52
53
	if use unicode ; then
54
		local conversion_table=(
55
			"cs ISO-8859-2"
56
			"es ISO-8859-1"
57
			"hu ISO-8859-2"
58
			"nl ISO-8859-1"
59
			"pl ISO-8859-2"
60
			"ru KOI8-R"
61
			"sr ISO-8859-5"
62
			"uk KOI8-U"
63
		)
64
		local element
65
		for element in "${conversion_table[@]}" ; do
66
			local lingua="${element% *}"
67
			local old_encoding="${element#* }"
68
			local file
69
			for file in "doc/${lingua}/xnc.hlp" "lib/mc.hint.${lingua}" "lib/mc.menu.${lingua}" ; do
70
				if [[ -f "${file}" ]] ; then
71
					mv "${file}" "${file}.${old_encoding}"
72
					iconv -f ${old_encoding} -t UTF-8 -o "${file}" "${file}.${old_encoding}" || die "iconv ${file} failed"
73
				fi
74
			done
75
		done
76
	fi
52
}
77
}
53
78
54
src_compile() {
79
src_compile() {

Return to bug 230832