blob: 0cfcfc122c89a3f4e3ad1f6a7613c67eda6f0922 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-scheme/mzscheme/mzscheme-201-r1.ebuild,v 1.1 2006/05/11 21:50:11 mkennedy Exp $
IUSE=""
S=${WORKDIR}/plt
DESCRIPTION="MzScheme scheme compiler"
HOMEPAGE="http://www.plt-scheme.org/software/mzscheme/"
SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/mzscheme.src.unix-201.tar.gz"
DEPEND=">=sys-devel/gcc-2.95.3-r7"
#RDEPEND=""
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86"
src_compile() {
cd ${S}/src
econf || die "./configure failed"
make || die
}
src_install () {
cd ${S}/src
echo -e "n\n" | einstall || die "installation failed"
cd ${S}
dodoc README
dodoc notes/COPYING.LIB
dodoc notes/mzscheme/*
# 2002-09-06: karltk
# Normally, one specifies the full path to the collects,
# so this should work, but it's not been tested properly.
mv ${D}/usr/install ${D}/usr/bin/mzscheme-install
dodir /usr/share/mzscheme
mv ${D}/usr/collects/ ${D}/usr/share/mzscheme/collects/
rm -rf ${D}/usr/notes/
#the resultant files are infected with ${D} and Makefiles do not recognize
#standard conventions. Looks like the simples way out is to
#strip ${D}'s here
cd ${D}/usr
grep -rle "${D}" . | xargs sed -i -e "s:${D}:/:g"
}
|