# $Id: groff-1.20.1-r2.smage2 3032 2009-10-07 17:18:03Z niro $ PNAME="groff" PVER="1.20.1" PBUILD="r3" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Text formatter used for man pages." HOMEPAGE="http://www.gnu.org/software/groff/groff.html" DEPEND=">= virtual/glibc >= sys-apps/texinfo-4.0" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # defines default page layout, may become a virtual # -> groff-A4, groff-letter = virtual/groff etc GROFFPAGE=A4 sminclude mtools SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-no-netpbm-depend.patch mirror://${PNAME}/${PNAME}-1.19.2-man-unicode-dashes.patch ) UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME}/|grep tar.gz$|sed 's/.*-\(.*\)\.t.*/\1/'|sort|sed -n '$ p'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not depend on netpbm mpatch ${PNAME}-${PVER}-no-netpbm-depend.patch || die # make dashes the same as minus on the keyboard so that you # can search for it mpatch ${PNAME}-1.19.2-man-unicode-dashes.patch || die } src_compile() { cd ${SRCDIR} # do not use mconfigure, this package is broken # and do not use the parallel-make patch from gentoo, its broken too!! PAGE=${GROFFPAGE} ./configure \ --prefix=/usr \ --libdir='${prefix}'/$(mlibdir) \ --without-x || die mmake -j1 || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr || die make prefix=${BINDIR}/usr install || die mlink soelim /usr/bin/zsoelim || die mlink eqn /usr/bin/geqn || die mlink tbl /usr/bin/gtbl || die minstalldocs BUG-REPORT COPYING ChangeLog FDL LICENSE MANIFEST MORE.STUFF \ NEWS PROBLEMS PROJECTS README REVISION TODO VERSION || die }