# $Id: gettext-0.17-r6.smage2 5604 2010-07-12 11:10:39Z niro $ PNAME="gettext" PVER="0.18.1.1" PBUILD="r1" PCATEGORIE="sys-dev" STATE="unstable" DESCRIPTION="GNU locale utilities." HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html" # libstdc++ provides libgomp.so for the msgmerge program DEPEND=">= virtual/glibc >= sys-libs/libstdc++-4.5 >= sys-libs/ncurses-5.7" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mcore SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-0.14.5-fix-race.patch ) UP2DATE="updatecmd_gnu ${PNAME} gz" src_prepare() { munpack ${SRCFILE} || die # fixes a race condition with opts >= -j2 mpatch ${PNAME}-0.14.5-fix-race.patch || die } src_compile() { # use included libcroco and glib2 to not depend on external glib2 mconfigure \ --without-emacs \ --disable-java \ --with-included-glib \ --with-included-libcroco \ || die mmake || die } src_install() { minstall_destdir || die # clean up stuff (needs to many space) rm -rf ${BINDIR}/usr/share/doc/${PNAME} || die minstalldocs AUTHORS COPYING ChangeLog* PACKAGING README THANKS || die }