summaryrefslogtreecommitdiff
blob: 2e3a92a5bf80a2e7c10f8cacbc3e24a7438e8087 (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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/dev-lisp/gcl/gcl-2.4.0.ebuild,v 1.4 2002/04/29 19:49:34 verwilst Exp

S=${WORKDIR}/${P}
DESCRIPTION="GNU Common Lisp"
SRC_URI="ftp://rene.ma.utexas.edu/pub/gcl/gcl-2.4.0.tgz"
HOMEPAGE="http://www.gnu.org/software/gcl/gcl.html"

PROVIDE="virtual/commonlisp"

src_compile() {

    cd ${S} ;  echo `pwd`
    ./configure --prefix=/usr || die

    for i in */makefile makedefs makedefc makefile config.status ; do 
		mv $i $i.orig ;
		cat $i.orig | \
			sed -e 's|./configure: emacs: command not found|${prefix}/share/emacs/site-lisp/gcl|g' > $i
    done

    cd ${S}
    make ${MAKEOPTS} || die

}

src_install() {

    dodir /usr/share/info
    dodir /usr/share/emacs/site-lisp/gcl

    make install prefix=${D}/usr MANDIR=${D}/usr/share/man \
	INFO_DIR=${D}/usr/info EMACS_SITE_LISP=${D}/usr/share/emacs/site-lisp/gcl \
	EMACS_DEFAULT_EL=${D}/usr/share/emacs/site-lisp/gcl/default.el \
	|| die

    mv ${D}/usr/lib/${P}/info/* ${D}/usr/share/info
    rm ${D}/usr/share/info/texinfo.tex
    rm ${D}/usr/share/emacs/site-lisp/gcl/default.el

    mv ${D}/usr/bin/gcl ${D}/usr/bin/gcl.orig
    sed -e "s:${D}::g" < ${D}/usr/bin/gcl.orig > ${D}/usr/bin/gcl
    rm ${D}/usr/bin/gcl.orig

    chmod 0755 ${D}/usr/bin/gcl
}