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

Collapse All | Expand All

(-)a/eclass/texlive-module.eclass (-6 / +9 lines)
Lines 151-164 Link Here
151
texlive-module_add_format() {
151
texlive-module_add_format() {
152
	local name engine mode patterns options
152
	local name engine mode patterns options
153
	eval $@
153
	eval $@
154
	einfo "Appending to format.${PN}.cnf for $@"
154
	if [ `echo $PATH | sed -r -e "s%([^:]+)%-x \1/$engine%g; s/:/ -o /g"` ]
155
	[ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil
155
	then
156
	[ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN}	by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
156
	    einfo "Appending to format.${PN}.cnf for $@"
157
	if [ "${mode}" = "disabled" ]; then
157
	    [ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil
158
	    [ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN}	by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
159
	    if [ "${mode}" = "disabled" ]; then
158
		printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
160
		printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
161
	    fi
162
	    [ -z "${patterns}" ] && patterns="-"
163
	    printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf
159
	fi
164
	fi
160
	[ -z "${patterns}" ] && patterns="-"
161
	printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf
162
}
165
}
163
166
164
# @FUNCTION: texlive-module_make_language_def_lines
167
# @FUNCTION: texlive-module_make_language_def_lines

Return to bug 542620