You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
9 years ago
|
EAPI=6
|
||
9 years ago
|
|
||
9 years ago
|
inherit pax-utils versionator
|
||
9 years ago
|
|
||
|
MY_PV=$(get_version_component_range 1-3)
|
||
9 years ago
|
MY_P=${PN}-${MY_PV}
|
||
9 years ago
|
DATE=$(get_version_component_range 4)
|
||
|
DATE=${DATE#p}
|
||
|
DATE=${DATE:0:4}-${DATE:4:2}-${DATE:6}
|
||
|
INSTALLER=${PN}-${DATE}-installer.run
|
||
|
|
||
|
DESCRIPTION="PathScale EKOPath Compiler Suite"
|
||
|
HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
|
||
|
SRC_URI="http://c591116.r16.cf2.rackcdn.com/${PN}/nightly/Linux/${INSTALLER}"
|
||
|
|
||
|
LICENSE="all-rights-reserved"
|
||
9 years ago
|
SLOT="${MY_PV}"
|
||
9 years ago
|
KEYWORDS="~amd64"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND="!!app-arch/rpm"
|
||
9 years ago
|
RDEPEND="!dev-lang/ekopath:0/${MY_PV}"
|
||
9 years ago
|
|
||
|
RESTRICT="bindist mirror"
|
||
|
|
||
9 years ago
|
QA_PREBUILT="opt/${MY_P}/*"
|
||
9 years ago
|
|
||
|
S="${WORKDIR}"
|
||
|
|
||
|
src_unpack() {
|
||
|
cp "${DISTDIR}/${INSTALLER}" "${S}/" || die
|
||
|
chmod +x "${S}/${INSTALLER}" || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
# EI_PAX marking is obsolete and PT_PAX breaks the binary.
|
||
|
# We must use XT_PAX to run the installer.
|
||
|
if [[ ${PAX_MARKINGS} == "XT" ]]; then
|
||
|
pax-mark m "${INSTALLER}"
|
||
|
fi
|
||
|
|
||
|
./"${INSTALLER}" \
|
||
9 years ago
|
--prefix "${ED%/}/opt/${MY_P}" \
|
||
9 years ago
|
--mode unattended || die
|
||
|
|
||
9 years ago
|
if [[ ! -d ${ED%/}/opt/${MY_P}/lib/${MY_PV} ]]; then
|
||
9 years ago
|
local guess
|
||
9 years ago
|
cd "${ED%/}/opt/${MY_P}/lib" && guess=( * )
|
||
9 years ago
|
|
||
|
if [[ ${guess[@]} ]]; then
|
||
|
die "Incorrect release version in PV, guessing it should be: ${guess[*]}"
|
||
|
else
|
||
|
die "No libdir installed"
|
||
|
fi
|
||
|
fi
|
||
9 years ago
|
[[ -x ${ED%}/opt/${MY_P}/bin/pathcc ]] || die "No pathcc executable was installed, your hardware is unsupported most likely"
|
||
9 years ago
|
|
||
9 years ago
|
rm -r "${ED}/opt/${MY_P}"/uninstall* || die
|
||
9 years ago
|
}
|