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

Collapse All | Expand All

(-)app-emacs/emacs-common-gentoo/emacs-common-gentoo-1.5.ebuild (-1 / +5 lines)
Lines 70-76 Link Here
70
}
70
}
71
71
72
pkg_preinst() {
72
pkg_preinst() {
73
	# make sure that site-gentoo.el exists since site-start.el requires it
73
	# To support portage-multilib (multilib-overlay), only do this once
74
	# because pkg_preinst() will be called multiple times.
75
	if [[ ! -f ${ED}${SITELISP}/site-gentoo.el ]]; then
76
		# make sure that site-gentoo.el exists since site-start.el requires it.
74
	if [[ ! -d ${EROOT}${SITELISP} ]]; then
77
	if [[ ! -d ${EROOT}${SITELISP} ]]; then
75
		mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die
78
		mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die
76
	else
79
	else
Lines 78-83 Link Here
78
		rm "${ED}${SITELISP}/site-gentoo.el.orig" || die
81
		rm "${ED}${SITELISP}/site-gentoo.el.orig" || die
79
		cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die
82
		cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die
80
	fi
83
	fi
84
	fi
81
85
82
	if use games; then
86
	if use games; then
83
		local f
87
		local f

Return to bug 554518