blob: b3d07d099bce89138ef0e9272700f7fe794612a5 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Geert Bevin <gbevin@uwyn.com>
# $Header: /var/cvsroot/gentoo-x86/dev-lang/sather/sather-1.3.ebuild,v 1.3 2002/03/19 14:58:09 gbevin Exp $
S="${WORKDIR}/Sather-1.3"
DESCRIPTION="Sather is an object oriented language designed to be simple, efficient, safe, flexible and non-proprietary."
SRC_URI="http://www.cs.waikato.ac.nz/sather/release/downloads/Sather-1.3.tar.gz
ftp://ftp.gnu.org/gnu/sather/Doc/sather-tutorial-000328.ps.gz
ftp://ftp.gnu.org/gnu/sather/Doc/sather-tutorial-000328.html.tar.gz
ftp://ftp.gnu.org/gnu/sather/Doc/sather-specification-000328.html.tar.gz
ftp://ftp.gnu.org/gnu/sather/Doc/sather-specification-000328.ps.gz
http://www.icsi.berkeley.edu/~sather/Publications/satish-thatte.ps.gz
http://www.icsi.berkeley.edu/~sather/Documentation/LanguageDescription/Descript.ps.gz"
HOMEPAGE="http://www.cs.waikato.ac.nz/sather/ http://www.icsi.berkeley.edu/~sather/"
DEPEND=">=sys-devel/gcc-2.95.3-r5
>=dev-libs/boehm-gc-6.0"
RDEPEND=">=sys-devel/gcc-2.95.3-r5"
src_unpack() {
unpack Sather-1.3.tar.gz
mkdir doc
cd doc
unpack sather-tutorial-000328.html.tar.gz
unpack sather-specification-000328.html.tar.gz
cp ${DISTDIR}/sather-tutorial-000328.ps.gz .
cp ${DISTDIR}/sather-specification-000328.ps.gz .
cp ${DISTDIR}/satish-thatte.ps.gz .
cp ${DISTDIR}/Descript.ps.gz .
}
src_compile() {
export SATHER_HOME="$S"
export LOCALE="en_NZ"
export SATHER_ENV="$SATHER_HOME/resources/$LOCALE/bin/LIBCHARS-posix"
export SATHER_RESOURCES="$SATHER_HOME/resources/$LOCALE"
export PATH="$PATH:$SATHER_HOME/bin"
./configure linux || die
make || die
}
src_install () {
dodir /usr
cp -a ${WORKDIR}/Sather-1.3 ${D}/usr/sather
rm -rf ${D}/usr/sather/bin/sacomp.code
rm -rf ${D}/usr/sather/bin/sacomp-boot.code
rm -rf ${D}/usr/sather/sacomp
rm -rf ${D}/usr/sather/sacomp-boot
rm -rf ${D}/usr/sather/system
mkdir ${D}/usr/sather/system
cp ${WORKDIR}/Sather-1.3/system/CONFIG ${D}/usr/sather/system
cp ${WORKDIR}/Sather-1.3/system/FORBID ${D}/usr/sather/system
cd ${WORKDIR}
dodoc doc/sather-specification-000328.ps.gz doc/sather-tutorial-000328.ps.gz doc/satish-thatte.ps.gz doc/Descript.ps.gz
cp -a doc/specification.html ${D}/usr/share/doc/${P}
cp -a doc/tutorial.html ${D}/usr/share/doc/${P}
dodir /etc/env.d
cat >> ${D}/etc/env.d/05sather <<EOF
SATHER_HOME="/usr/sather"
LOCALE="en_NZ"
SATHER_ENV="/usr/sather/resources/en_NZ/bin/LIBCHARS-posix"
SATHER_RESOURCES="/usr/sather/resources/en_NZ"
PATH="/usr/sather/bin"
EOF
}
|