summaryrefslogtreecommitdiff
blob: 8649f5c52d1d03154db3d9550806d90d500d716d (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Copyright 2002 Marius Bernklev <mariube@unixcore.com>
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-0.7.6-r1.ebuild,v 1.5 2002/12/09 04:21:04 manson Exp $

IUSE=""

DESCRIPTION="Steel Bank Common Lisp"
HOMEPAGE="http://sbcl.sourceforge.net/"
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
	 x86? ( mirror://sourceforge/sbcl/${PN}-0.7.2-x86-linux-binary.tar.bz2 )
         ppc? ( mirror://sourceforge/sbcl/${PN}-0.7.6-ppc-linux-binary.tar.bz2 )
	 mirror://sourceforge/sbcl/${P}-html.tar.bz2"

LICENSE="MIT"
SLOT="0"

KEYWORDS="x86 ppc -sparc " 
PROVIDE="virtual/commonlisp"
# the SRC_URI trickery needs this
DEPEND=">=sys-apps/portage-2.0.27"

src_unpack() {
	
	if ( use x86 ) ; then
		unpack ${PN}-0.7.2-x86-linux-binary.tar.bz2
		mv ${PN}-0.7.2 x86-binary
	elif ( use ppc ) ; then
		unpack ${PN}-0.7.6-ppc-linux-binary.tar.bz2
		mv ${PN}-0.7.6-ppc-linux ppc-binary
	fi
    
	unpack ${P}-source.tar.bz2
	unpack ${P}-html.tar.bz2
}

src_compile() {
	local bindir
	use x86 && bindir=x86-binary
	use ppc && bindir=ppc-binary

	export SBCL_HOME="../${bindir}/output/" 
	export GNUMAKE="make"
    
	sh make.sh "../${bindir}/src/runtime/sbcl" || die
}

src_install() {
	local LIB=${DESTTREE}/lib/sbcl
    
	doman doc/sbcl.1
	dobin src/runtime/sbcl
    
	dodoc BUGS CREDITS NEWS README INSTALL COPYING 
	dohtml doc/html/*
    
	dodir ${LIB}
	insinto ${LIB}
	doins output/sbcl.core
    
	dodir /etc/env.d
    
	echo "SBCL_HOME=${LIB}" > ${D}/etc/env.d/10sbcl
}