--- /usr/portage/games-emulation/qmamecat/qmamecat-0.44.45.ebuild 2003-09-09 18:26:50.000000000 +0200 +++ /usr/local/portage/games-emulation/qmamecat/qmamecat-0.44.45.ebuild 2004-02-09 21:54:32.599675184 +0100 @@ -18,6 +18,20 @@ S=${WORKDIR}/${PN} src_compile() { + ### borrowed from kde.eclass # + # + # fix the sandbox errors "can't writ to .kde or .qt" problems. + # this is a fake homedir that is writeable under the sandbox, so that the build + # process can do anything it wants with it. + REALHOME="$HOME" + mkdir -p $T/fakehome/.kde + mkdir -p $T/fakehome/.qt + export HOME="$T/fakehome" + addwrite "${QTDIR}/etc/settings" + + # things that should access the real homedir + [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" + # emake is horribly broken make COPTIM="${CFLAGS}" || die }