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

EAPI=4

DESCRIPTION="PathScale EKOPath Compiler Suite"
HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
SRC_URI="http://c591116.r16.cf2.rackcdn.com/ekopath/nightly/Linux/ekopath-2011-06-12-installer.run"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

S=${WORKDIR}

PATHSCALE_SDP_DIR=/opt/${P}

QA_PREBUILT="
	${PATHSCALE_SDP_DIR}/lib/4.0.10/x8664/*
	${PATHSCALE_SDP_DIR}/bin/pathcc
	${PATHSCALE_SDP_DIR}/bin/pathas
	${PATHSCALE_SDP_DIR}/bin/assign
"

src_unpack() {
	cp ${DISTDIR}/${A} ${S}/${P}.run #work around BitRock failing on symlink
	fperms 0755 ${P}.run
}

src_prepare() {
	cat > "99${PN}" <<-EOF
		PATH=/opt/${P}/bin
		ROOTPATH=/opt/${P}/bin
		LDPATH=/opt/${P}/lib
	EOF
}

src_install() {
	./${P}.run \
		--prefix "${D}/opt/${P}" \
		--mode unattended || die
	rm -rf "${D}"/opt/${P}/uninstall || die
	doenvd "99${PN}"
}