aboutsummaryrefslogtreecommitdiff
blob: 2126fc1266f87b7d82b13f30e054fe61b70f3492 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_PN="${PN}mars"
DESCRIPTION="Sun Studio Compilers for Linux - technology preview"
HOMEPAGE="http://developers.sun.com/prodtech/cc/downloads/tech_preview.jsp"
RESTRICT="fetch"
SRC_URI="${P}.linux.tar.bz2"
# Change to the actual license if adding to the tree
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE=""
RDEPEND="virtual/libstdc++
	sys-libs/zlib"
DEPEND=""
S="${WORKDIR}/${MY_PN}"

pkg_nofetch() {
	einfo "Go to ${HOMEPAGE}"
	einfo "and download ${SRC_URI}"
}

src_install() {
	DIR="/opt/sun/sunstudio11"

	dodir ${DIR}
	cp -r * ${D}${DIR}/

	cat << EOF >> ${T}/envd
ROOTPATH="${DIR}/bin"
PATH="${DIR}/bin"
MANPATH="${DIR}/man"
EOF

	newenvd ${T}/envd 05${PN}
}