blob: 8431667f54dba3f6bd12469381dec9ba9b9e91c9 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/sunstudioexpress/sunstudioexpress-2009.03.ebuild,v 1.2 2009/08/11 15:09:42 alexxy Exp $
inherit versionator
MY_PN="StudioExpress"
MY_TAG="-ii"
MY_PV="$(replace_all_version_separators -)"
MY_P="${MY_PN}-lin-x86-${MY_PV}${MY_TAG}"
DESCRIPTION="Sun Studio Express Compilers for Linux"
HOMEPAGE="http://developers.sun.com/sunstudio/downloads/express/index.jsp"
RESTRICT="fetch strip"
SRC_URI="${MY_P}.sh"
LICENSE="SunStudioExpress LGPL-2 BSD as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs )
sys-libs/zlib"
DEPEND=""
S="${WORKDIR}"
pkg_nofetch() {
einfo "Go to ${HOMEPAGE}"
einfo "and download ${SRC_URI}"
einfo "Choose the Option 2 section when downloading the file."
}
src_unpack() {
sh "${DISTDIR}/${A}" --accept-sla || die "unpack failed"
}
src_install() {
DIR="/opt/SunStudioExpress"
dodir /opt
cp -r sunstudioceres "${D}"${DIR}
# Set SUNW_NO_UPDATE_NOTIFY to anything but false to disable
# writes to /root/.sunstudio
# These writes break the sandbox when building anything with Sun
# compilers
cat << EOF >> "${T}"/envd
ROOTPATH="${DIR}/bin"
PATH="${DIR}/bin"
LDPATH="${DIR}/rtlibs:${DIR}/rtlibs/amd64"
MANPATH="${DIR}/man"
SUNW_NO_UPDATE_NOTIFY="true"
EOF
newenvd "${T}"/envd 05${PN}
}
|