summaryrefslogtreecommitdiff
blob: ea62a4166357f3f46de60c986e4f2fb922edcf3d (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
49
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
# /home/cvsroot/gentoo-x86/skel.build,v 1.3 2001/07/05 02:43:36 drobbins Exp

S=${WORKDIR}/${P}

DESCRIPTION="gv is a standard ghostscript frontend used e.g. by LyX"

SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/${P}.tar.gz"
HOMEPAGE="http://wwwthep.physik.uni-mainz.de/~plass/gv/"

# There's probably more, but ghostscript also depends on it,
# so I can't identify it
DEPEND="virtual/x11 x11-libs/Xaw3d app-text/ghostscript"

src_unpack() {
    
    # need to check if this can be done automatically
    
    # The -gentoo patch is std: installation into /usr
    # instead of /usr/local
    unpack ${P}.tar.gz
    cd ${S}
    patch -p0 <${FILESDIR}/${P}-gentoo.diff
    
}

src_compile() {
    
    cd ${S}
    
    # emake may not work
    try xmkmf
    try make Makefiles
    try make
    
}

src_install () {
    
    # BTW, how about using emake install?
    
    try make DESTDIR=${D} install
    try make DESTDIR=${D} install.man
    try make DESTDIR=${D} install.doc
    
}