The ebuild uses sed to add "CC = gcc". It should do CC = ${CC}.
> cc -o gencat gencat.o genlib.o > make[1]: cc: Command not found looks like the gencat makefile needs to be patched as well.
Just to save anyone wasting time with this: src_unpack() { unpack ${A} cd ${S} cp configure configure.orig sed -e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \ -e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \ configure.orig > configure local x for x in / src/ man2html/ msgs/ do cd ${S}/${x} cp Makefile.in Makefile.in.orig sed -e '/inst.sh/d' \ -e '/^CC =/c\' \ -e "CC = ${CC}" \ -e '/^CFLAGS =/c\' \ -e "CFLAGS = $CFLAGS" \ Makefile.in.orig > Makefile.in done cd ${S}/gencat sed -e "s:cc -o:${CC} -o:g" Makefile > Makefile.1 cp Makefile.1 Makefile }
Thanks Chris. sorry for the delay.