summaryrefslogtreecommitdiff
blob: 3b84561215ff0945c2023ee2b98e4855128ebb96 (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
# 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.9.5.ebuild,v 1.2 2001/11/10 02:54:28 hallski Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A free ASCII-Text Screen Editor for UNIX"
SRC_URI="http://ftp1.sourceforge.net/joe-editor/${P}.tgz"
HOMEPAGE="http://sourceforge.net/projects/joe-editor/"

DEPEND=">=sys-libs/ncurses-5.2-r2"



src_unpack() {

    unpack ${A}
    cd ${S}
    cp Makefile Makefile.orig
    sed -e "s/-O2/${CFLAGS}/" Makefile.orig > Makefile

}

src_compile() {                           

    try make joe termidx
}

src_install() {                              
    into /usr
    dobin joe
    doman joe.1
    dolib joerc
    for i in jmacs jstar jpico rjoe
    do
      dosym joe /usr/bin/$i
      dosym joe.1.gz /usr/share/man/man1/$i.1.gz
      dolib ${i}rc
    done

    dodoc copying INFO LIST README TODO VERSION
}