>>> emerge (2 of 5) sys-devel/gettext-0.14.4 to / >>> md5 files ;-) gettext-0.12.1-r2.ebuild >>> md5 files ;-) gettext-0.14.1-r1.ebuild >>> md5 files ;-) gettext-0.14.2.ebuild >>> md5 files ;-) gettext-0.14.4.ebuild >>> md5 files ;-) gettext-0.14.5.ebuild >>> md5 files ;-) files/50po-mode-gentoo.el >>> md5 files ;-) files/digest-gettext-0.12.1-r2 >>> md5 files ;-) files/digest-gettext-0.14.1-r1 >>> md5 files ;-) files/digest-gettext-0.14.2 >>> md5 files ;-) files/digest-gettext-0.14.4 >>> md5 files ;-) files/digest-gettext-0.14.5 >>> md5 files ;-) files/gettext-0.12.1-tempfile.patch >>> md5 files ;-) files/gettext-0.12.1-without_java.patch >>> md5 files ;-) files/gettext-0.14.1-lib-path-tests.patch >>> md5 files ;-) files/gettext-0.14.1-no-java-tests.patch >>> md5 files ;-) files/gettext-0.14.1-tempfile.patch >>> md5 files ;-) files/gettext-0.14.1-without_java.patch >>> md5 files ;-) files/gettext-0.14.2-fix-race.patch >>> md5 files ;-) files/gettext-0.14.2-no-java-tests.patch >>> md5 src_uri ;-) gettext-0.14.4.tar.gz >>> Checking gettext-0.14.4.tar.gz's mtime... >>> Not marked as unpacked; recreating WORKDIR... >>> Unpacking source... >>> Unpacking gettext-0.14.4.tar.gz to /var/tmp/portage/gettext-0.14.4/work * Removing useless C++ checks... [ ok ] * Applying gettext-0.14.1-lib-path-tests.patch ... [ ok ] * Applying gettext-0.14.1-without_java.patch ... [ ok ] * Applying gettext-0.14.2-no-java-tests.patch ... [ ok ] * Applying gettext-0.14.2-fix-race.patch ... [ ok ] sed: 1: "2iexit 77": command i expects \ followed by text ------------ emerge -info: Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.1, libsystem-7.1-r0, 8.4.0 Power Macintosh) ================================================================= System uname: 8.4.0 Power Macintosh powerpc macos-20040726 distcc 2.18.3-Apple powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.57 sys-devel/automake: 1.6.3 sys-devel/binutils: [Not Present] sys-devel/libtool: 2.4.4 virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/wget /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect cvs distlocks keepwork sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X berkdb bzip2 cscope cups curl emboss ldap libedit ncurses nls opengl pcre ppc-macos python ruby samba truetype xml2 zlib userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
This is a known bug; the gettext ebuild uses GNU sed commands which Darwin's BSD sed does not support. USE="-nls" emerge --nodeps sys-apps/sed and then pull gettext once again.
this is quite out of date by now