}
java_prepare() {
cp "${FILESDIR}"/${SLOT}-xshm-fix.patch patches/xshm-fix.patch || die
export DISTRIBUTION_PATCHES="patches/xshm-fix.patch"
if ! use cups; then
# CUPS is always needed at build time but you can at least make it dlopen.
sed -i 's/SYSTEM_CUPS="true"/SYSTEM_CUPS="false"/g' Makefile.in || die