--- gettext-0.18.1.ebuild.old 2010-06-10 01:45:12.000000000 +0300 +++ gettext-0.18.1.ebuild 2010-06-09 03:01:57.000000000 +0300 @@ -13,7 +13,7 @@ LICENSE="GPL-3 LGPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" -IUSE="acl doc emacs nls nocxx openmp elibc_glibc" +IUSE="acl doc emacs nls nocxx openmp elibc_glibc elibc_uclibc" DEPEND="virtual/libiconv dev-libs/libxml2 @@ -27,6 +27,8 @@ } src_configure() { + epatch "${FILESDIR}"/${P}-nls-uclibc.patch + local myconf="" # Build with --without-included-gettext (on glibc systems) if use elibc_glibc ; then @@ -50,7 +52,11 @@ } src_install() { - emake install DESTDIR="${D}" || die "install failed" + emake install DESTDIR="${D}" \ + || ( use elibc_uclibc \ + && epatch "${FILESDIR}"/${P}-nls-uclibc.patch \ + && emake install DESTDIR="${D}" ) \ + || die "install failed" use nls || rm -r "${D}"/usr/share/locale dosym msgfmt /usr/bin/gmsgfmt #43435 dobin gettext-tools/misc/gettextize || die "gettextize"