summaryrefslogtreecommitdiff
blob: 0b5d73d3d79def65a2c8bd679244178bb1d4e292 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Peter Gavin <pbg1854@garnet.acns.fsu.edu>

A=emacs-20.7.tar.gz
S=${WORKDIR}/emacs-20.7
DESCRIPTION="An incredibly powerful, extensible text editor (X11/Motif version)"
SRC_URI="ftp://ftp.gnu.org/pub/gnu/emacs/emacs-20.7.tar.gz"
HOMEPAGE="http://www.gnu.org/software/emacs"

RDEPEND=">=sys-libs/ncurses-5.2
         >=x11-libs/openmotif-2.1.30
         !app-editors/emacs-nogui
         !app-editors/emacs-x11"

DEPEND=">=sys-libs/ncurses-5.2
        >=x11-libs/openmotif-2.1.30
        >=sys-devel/gettext-0.10.35"

PROVIDE="virtual/emacs"

src_compile() {
    try ./configure --prefix=/usr --libexecdir=/usr/lib --host=${CHOST} \
        --mandir=/usr/share/man --infodir=/usr/share/info --with-x-toolkit=motif --with-x
    try make
}

src_install () {
    try make prefix=${D}/usr libexecdir=${D}/usr/lib \
	mandir=${D}/usr/share/man infodir=${D}/usr/share/info install
    cd ${D}/usr/share/info
    rm dir
    for i in *
    do
        mv ${i%.info} $i.info
    done
    dodoc BUGS ChangeLog README
}