blob: 1d64c056e0d5861d04d55a24d26393ab6a7340b2 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/smarteiffel/smarteiffel-1.0.ebuild,v 1.10 2005/04/24 03:31:32 hansmi Exp $
IUSE="doc"
#IUSE="doc tcc"
DESCRIPTION="GNU Eiffel compiler"
HOMEPAGE="http://smarteiffel.loria.fr/"
SRC_URI="ftp://ftp.loria.fr/pub/loria/SmartEiffel/se-${PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~alpha ~sparc"
#DEPEND="tcc? ( >=dev-lang/tcc-0.9.14 )"
DEPEND="virtual/libc"
S="${WORKDIR}/SmartEiffel"
# Destination directory to hold most of the SmartEiffel distribution.
SE_DIR="/usr/lib/SmartEiffel"
src_compile() {
#tcc did not work for me while processing the ebuild
#commenting out until resolved
#George Shapovalov <george@gentoo.org>, see #8897
# use tcc && COMPILER=tcc
# use tcc || COMPILER=gcc
# use tcc && CFLAGS=""
COMPILER=gcc
einfo "Using ${COMPILER} as default C-compiler for SmartEiffel!"
export SmartEiffel="${S}/sys/system.se"
export PATH="${S}/bin:${PATH}"
cd ${S}
ebegin "Compiling install-program"
${COMPILER} ${CFLAGS} -o install install.c || die
eend $?
einfo "Running install-program"
( echo yes
echo no
echo UNIX
echo ${COMPILER}
echo ${CFLAGS}
echo yes
) | ./install -interactive || die
# Regenerate a proper loadpath.UNIX file.
cp sys/loadpath.UNIX sys/loadpath.UNIX.orig
sed -e "s:^${S}:${SE_DIR}:" \
sys/loadpath.UNIX.orig > sys/loadpath.UNIX || die
}
src_install () {
dodir ${SE_DIR}
cp -a ${S}/{lib,tools,sys,bin} ${D}/${SE_DIR} || die
# Create symlinks to the appropriate executable binaries.
dodir /usr/bin
for NAME in ${S}/bin/*; do
NAME=`basename ${NAME}`
dosym ${SE_DIR}/bin/${NAME} /usr/bin/${NAME}
done
# Install documentation.
if use doc; then
einfo "Installing documentation"
dodir /usr/share/doc/${PF}
cp -a ${S}/{man,misc,tutorial,READ_ME} ${D}/usr/share/doc/${PF} || die
fi
# Setup 'SmartEiffel' environment variable.
dodir /etc/env.d
echo "SmartEiffel=${SE_DIR}/sys/system.se" > ${D}/etc/env.d/20smarteiffel
echo "SmartEiffelDirectory=${SE_DIR}" >> ${D}/etc/env.d/20smarteiffel
}
|