Without export emacs=no in the ebuild, I get this error, even with USE='-emacs'
if test "emacs" != no; then \
set x; \
list='start-po.el po-mode.el po-compat.el'; for p in $list; do \
if test -f "$p"; then d=; else d="./"; fi; \
set x "$@" "$d$p"; shift; \
done; \
shift; \
EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \
else : ; fi
Warning: arch-dependent data dir (/usr/libexec/emacs/21.4/i686-pc-linux-gnu/)
does not exist.
Warning: arch-independent data dir (/usr/share/emacs/21.4/etc/) does not exist.
Warning: Lisp directory `/usr/share/emacs/21.4/site-lisp' does not exist.
Warning: Lisp directory `/usr/share/emacs/site-lisp' does not exist.
Warning: Lisp directory `/usr/share/emacs/21.4/leim' does not exist.
Warning: Lisp directory `/usr/share/emacs/21.4/lisp' does not exist.
Cannot open load file: disp-table
make[3]: *** [elc-stamp] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gettext-0.15/work/gettext-0.15/gettext-tools/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gettext-0.15/work/gettext-0.15/gettext-tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gettext-0.15/work/gettext-0.15/gettext-tools'
make: *** [all-recursive] Error 1
!!! ERROR: sys-devel/gettext-0.15 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
gettext-0.15.ebuild, line 64: Called die
!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
relevant.
Changing the line: 'use emacs || export EMACS=no' to 'use emacs || export
EMACS=no && export emacs=no' makes it ignore emacs.