blob: 8e15800faf84ffa31853ab466001c580aa361d37 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
KEYWORDS="-* ~amd64 ~x86"
MAIN_PV="${PV%.*}"
MAIN_PV="${MAIN_PV/./}"
SUB_PV="${PV##*.}"
DESCRIPTION="EiffelStudio IDE."
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="x86? ( mirror://sourceforge/${PN}/Eiffel${MAIN_PV}_gpl_${SUB_PV}-linux-x86.tar.bz2 )
amd64? ( mirror://sourceforge/${PN}/Eiffel${MAIN_PV}_gpl_${SUB_PV}-linux-x86-64.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
IUSE="precompile"
DEPEND="sys-devel/gcc
dev-util/bsdiff
>=x11-libs/gtk+-2.6.0"
RDEPEND="${DEPEND}"
S="${WORKDIR}/Eiffel${MAIN_PV}"
src_compile() {
if use amd64 ; then
ISE_PLATFORM="linux-x86-64"
else
ISE_PLATFORM="linux-x86"
fi
if use precompile ; then
ISE_EIFFEL="${S}" ISE_PLATFORM=${ISE_PLATFORM} studio/spec/${ISE_PLATFORM}/bin/ec -precompile -config precomp/spec/${ISE_PLATFORM}/base.ecf -c_compile -clean || die "precompile failed"
ISE_EIFFEL="${S}" ISE_PLATFORM=${ISE_PLATFORM} studio/spec/${ISE_PLATFORM}/bin/ec -precompile -config precomp/spec/${ISE_PLATFORM}/base-mt.ecf -c_compile -clean || die "precompile failed"
ISE_EIFFEL="${S}" ISE_PLATFORM=${ISE_PLATFORM} studio/spec/${ISE_PLATFORM}/bin/ec -precompile -config precomp/spec/${ISE_PLATFORM}/vision2.ecf -c_compile -clean || die "precompile failed"
ISE_EIFFEL="${S}" ISE_PLATFORM=${ISE_PLATFORM} studio/spec/${ISE_PLATFORM}/bin/ec -precompile -config precomp/spec/${ISE_PLATFORM}/vision2-mt.ecf -c_compile -clean || die "precompile failed"
fi
}
src_install() {
echo "ISE_EIFFEL=/opt/Eiffel${MAIN_PV}" > "${T}/52${PN}"
ISE_EIFFEL=/opt/Eiffel${MAIN_PV}
if use amd64 ; then
echo "ISE_PLATFORM=linux-x86-64" >> "${T}/52${PN}"
ISE_PLATFORM="linux-x86-64"
else
echo "ISE_PLATFORM=linux-x86" >> "${T}/52${PN}"
ISE_PLATFORM="linux-x86"
fi
echo "PATH=${ISE_EIFFEL}/studio/spec/${ISE_PLATFORM}/bin" >> "${T}/52${PN}"
doenvd "${T}/52${PN}"
dodir /opt/Eiffel${MAIN_PV}
mv -f * "${D}"/opt/Eiffel${MAIN_PV}
}
|