--- /usr/portage/gnustep-base/gnustep-gui/gnustep-gui-0.24.0.ebuild.orig 2014-01-29 16:12:22.000000000 +0100 +++ /usr/portage/gnustep-base/gnustep-gui/gnustep-gui-0.24.0.ebuild 2014-07-21 19:02:12.000000000 +0200 @@ -35,6 +35,14 @@ Tools/say/GNUmakefile \ Tools/speech/GNUmakefile \ || die + + # cups workaround with clang, bug #517554 + if [ "$CC" = "clang" ]; then + if use cups; then + cp "${EPREFIX}"/usr/include/cups/cups.h Printing/GSCUPS/ + epatch "${FILESDIR}"/${P}-cups-with-clang.patch + fi + fi } src_configure() {