summaryrefslogtreecommitdiff
blob: f9ac8c2829c6b548bd37fd38fc79d531d7b4865a (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/mzscheme/mzscheme-103_pre1.ebuild,v 1.4 2002/09/21 00:31:00 vapier Exp $

S=${WORKDIR}/plt
DESCRIPTION="MzScheme scheme compiler"
SRC_URI="http://www.cs.rice.edu/CS/PLT/packages/download/103p1/mzscheme/mzscheme.src.unix.tar.gz"
HOMEPAGE="http://www.plt-scheme.org/software/mzscheme/"
DEPEND=""
#RDEPEND=""
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86"

src_compile() {
	cd src
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	cd src
	make DESTDIR=${D} install || die

	cd ${S}
	dodir /usr/share/mzscheme
	dobin bin/*
	cp -dpR collects/* ${D}/usr/share/mzscheme

	doman man/man1/*

	dodoc notes/COPYING.LIB
	dodoc README

	exeinto /usr/bin
	newexe src/mzscheme/mzscheme mzscheme-bin

	echo "#! /bin/sh" > ${D}/usr/bin/mzc
	echo '/usr/bin/mzscheme-bin -mqvL start.ss compiler -- ${1+"$@"}' >> ${D}/usr/bin/mzc

	echo "#! /bin/sh" > ${D}/usr/bin/mzscheme
	echo '/usr/bin/mzscheme-bin ${1+"$@"}' >> ${D}/usr/bin/mzscheme

	rm ${D}/usr/bin/{archsys,setup-plt}
}