# $Header: /magellan-cvs/smage/indent/indent-2.2.9-r6.smage2,v 1.1 2008/03/20 12:17:10 niro Exp $ PNAME="indent" PVER="2.2.9" PBUILD="r6" PCATEGORIE="dev-util" STATE="unstable" DESCRIPTION="The indent program can be used to make code easier to read." HOMEPAGE="http://www.gnu.org/software/indent/indent.html" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PVER}-deb-gentoo.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes some segfaults mpatch ${PVER}-deb-gentoo.patch || die # prevent regeneration of the man page touch man/indent.1 || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/share/doc/${PNAME}-${PVER}/html || die mmake DESTDIR=${BINDIR} install || die minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog* NEWS README || die # fix html doc location mv ${BINDIR}/usr/doc/${PNAME}/* ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/html || die rm -rf ${BINDIR}/usr/doc || die }