# $Id$ PNAME="groff" PVER="1.19.2" PBUILD="r4" 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 alx SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-infoext.patch mirror://${PNAME}/${PNAME}-${PVER}-no-netpbm-depend.patch mirror://${PNAME}/${PNAME}-${PVER}-man-unicode-dashes.patch mirror://${PNAME}/${PNAME}-1.19.1-gcc-4.1.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix the info pages to have .info extensions, # else they do not get gzipped mpatch ${PNAME}-${PVER}-infoext.patch || die # 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}-${PVER}-man-unicode-dashes.patch || die # fix compile issues with gcc-4.1 mpatch ${PNAME}-1.19.1-gcc-4.1.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 }