# $Header: /magellan-cvs/smage/diffutils/diffutils-2.8.7-r5.smage2,v 1.1 2008/02/10 01:37:28 niro Exp $ PNAME="diffutils" PVER="2.8.7" PBUILD="r6" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Tools to make diffs and compare files." HOMEPAGE="http://www.gnu.org/software/diffutils/diffutils.html" DEPEND=">= virtual/glibc" SDEPEND=">= sys-dev/gettext-0.17" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-2.8.4-sdiff-no-waitpid.patch mirror://${PNAME}/${PNAME}-${PVER}-i18n.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # removes waitpid() call after pclose() on a piped diff stream mpatch ${PNAME}-2.8.4-sdiff-no-waitpid.patch || die # fix utf8 mpatch ${PNAME}-${PVER}-i18n.patch || die # do not generate man-pages, needs help2man touch man/*.1 || die # fix permissions chmod ug+w config/* || die } src_compile() { cd ${SRCDIR} mconfigure --enable-nls || die mmake || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die minstalldocs ABOUT-NLS AUTHORS COPYING NEWS README THANKS TODO || die }