# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-text/noweb/noweb-2.9-r3.ebuild,v 1.1 2003/06/28 19:29:42 aliz Exp $ inherit eutils S=${WORKDIR}/src #SRC_URI="ftp://ftp.dante.de/tex-archive/web/noweb/src.tar.gz" SRC_URI="http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/noweb-src-${PV}.tar.gz" HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/" SLOT="0" LICENSE="freedist" DESCRIPTION="a literate programming tool, lighter than web" DEPEND="sys-devel/gcc app-text/tetex sys-apps/gawk sys-apps/debianutils" KEYWORDS="x86 ppc sparc alpha" src_unpack() { unpack ${A} ; cd ${S} epatch ${FILESDIR}/${P}-security.patch epatch ${FILESDIR}/${P}-gentoo.diff } src_compile() { make touch emake || die } src_install () { make DESTDIR=${D} install || die [ -x /usr/bin/nawk ] || dosym /usr/bin/gawk /usr/bin/nawk # fix man pages to be LFH compliant mv ${D}/usr/man ${D}/usr/share } pkg_postinst() { einfo "Running texhash to complete installation.." addwrite "/var/lib/texmf" addwrite "/usr/share/texmf" addwrite "/var/cache/fonts" texhash }