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

Collapse All | Expand All

(-)/usr/portage/eclass/texlive-module.eclass (-4 / +5 lines)
Lines 306-326 Link Here
306
# Installs texmf and config files to the system.
306
# Installs texmf and config files to the system.
307
307
308
texlive-module_src_install() {
308
texlive-module_src_install() {
309
	has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}"
309
	for i in texmf-dist/fmtutil/format*.cnf; do
310
	for i in texmf-dist/fmtutil/format*.cnf; do
310
		[ -f "${i}" ] && etexlinks "${i}"
311
		[ -f "${i}" ] && etexlinks "${i}"
311
	done
312
	done
312
313
313
	dodir /usr/share
314
	dodir /usr/share
314
	if [ -z "${PN##*documentation*}" ] || use doc; then
315
	if [ -z "${PN##*documentation*}" ] || use doc; then
315
		[ -d texmf-doc ] && cp -pR texmf-doc "${D}/usr/share/"
316
		[ -d texmf-doc ] && cp -pR texmf-doc "${ED}/usr/share/"
316
	else
317
	else
317
		[ -d texmf/doc ] && rm -rf texmf/doc
318
		[ -d texmf/doc ] && rm -rf texmf/doc
318
		[ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
319
		[ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
319
	fi
320
	fi
320
321
321
	[ -d texmf ] && cp -pR texmf "${D}/usr/share/"
322
	[ -d texmf ] && cp -pR texmf "${ED}/usr/share/"
322
	[ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/"
323
	[ -d texmf-dist ] && cp -pR texmf-dist "${ED}/usr/share/"
323
	[ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/"
324
	[ -d tlpkg ] && use source && cp -pR tlpkg "${ED}/usr/share/"
324
325
325
	insinto /var/lib/texmf
326
	insinto /var/lib/texmf
326
	[ -d texmf-var ] && doins -r texmf-var/*
327
	[ -d texmf-var ] && doins -r texmf-var/*

Return to bug 485604