summaryrefslogtreecommitdiff
blob: 3502196afd1e088164663524ce2f67e5e4522121 (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-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-editors/joe/joe-2.8-r1.ebuild,v 1.1 2000/08/07 11:25:41 achim Exp $

P=joe-2.8      
A=joe2.8.tar.Z
S=${WORKDIR}/joe
CATEGORY="sys"
DESCRIPTION="A free ASCII-Text Screen Editor for UNIX"
SRC_URI="ftp://ftp.std.com/src/editors/"${A}

src_compile() {                           

    make
    make termidx
}

src_unpack() {
    unpack ${A}
    cd ${S}
    patch -p0 < ${O}/files/joe2.8.dif
    cp Makefile Makefile.orig
    sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile
}

src_install() {                              
    into /usr
    dobin joe
    doman joe.1

    for i in jmacs jstar jpico rjoe
    do
      dosym /usr/bin/joe /usr/bin/$i
      dosym /usr/man/man1/joe.1.gz /usr/man/man1/$i.1.gz
    done

    dobin termidx
    dolib joerc
    dolib jmacsrc
    dolib jstarrc
    dolib rjoerc
    dolib jpicorc
    dolib termcap
    dolib terminfo
}