summaryrefslogtreecommitdiff
blob: 01ff8b999628198e7afa10f1d107a0d34fc1024b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.9-r2.ebuild,v 1.2 2002/07/11 06:30:19 drobbins Exp $

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/"
DESCRIPTION="a literate programming tool, lighter than web"

DEPEND="sys-devel/gcc
	app-text/tetex
	sys-apps/gawk"

src_unpack() {
    
    unpack ${A}
    cd ${S}
    patch -p0 <${FILESDIR}/${PF}-gentoo.diff || die
    
}

src_compile() {
    
    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
}