blob: f5c312c90420cb3b9885000bd93ddc63273542d5 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/gcl/gcl-2.5.3.ebuild,v 1.4 2003/12/14 03:57:04 pappy Exp $
inherit elisp-common
IUSE="emacs"
S=${WORKDIR}/${P}
DESCRIPTION="GNU Common Lisp"
SRC_URI="ftp://ftp.gnu.org/gnu/gcl/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/gcl/gcl.html"
# uncomment and add to profiles when GCL is integrated into the common lisp controller
# PROVIDE="virtual/commonlisp"
DEPEND=">=app-text/texi2html-1.64
>=dev-libs/gmp-4.1
virtual/tetex"
RDEPEND="${DEPEND}
emacs? ( virtual/emacs )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
src_unpack() {
unpack ${A}
sed -e "s/gcl-doc/${PF}/g" ${S}/info/makefile > ${T}/makefile
mv ${T}/makefile ${S}/info/makefile
}
src_compile() {
has_version "sys-devel/hardened-gcc" && CC="${CC:=gcc} -yet_exec"
econf --enable-locbfd \
--disable-statsysbfd \
--enable-readline \
--enable-infodir=/usr/share/info \
--enable-emacsdir=/usr/share/emacs/site-lisp/gcl \
|| die
make || die
}
src_install() {
make DESTDIR=${D} install || die
rm -rf ${D}/usr/lib/${P}/info
if [ -n "`use emacs`" ] ; then
mv elisp/add-default.el ${T}/50gcl-gentoo.el
elisp-site-file-install ${T}/50gcl-gentoo.el
elisp-install ${PN} elisp/*
fi
dosed /usr/bin/gcl
fperms 0755 /usr/bin/gcl
# fix the GCL_TK_DIR=/var/tmp/portage/${P}/image//
dosed /usr/lib/${P}/gcl-tk/gcltksrv
fperms 0755 /usr/lib/${P}/gcl-tk/gcltksrv
#repair gcl.exe symlink
#rm ${D}/usr/bin/gcl.exe
dosym ../lib/${P}/unixport/saved_gcl /usr/bin/gcl.exe
dodoc readme* RELEASE* ChangeLog* doc/*
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|