Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ekopath/
Date: Wed, 02 Dec 2015 20:08:51
Message-Id: 1449086915.0d74df1e9a28fe9f9785b926a7c69ba3b29f5a01.mgorny@gentoo
1 commit: 0d74df1e9a28fe9f9785b926a7c69ba3b29f5a01
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 20:08:09 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 20:08:35 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d74df1e
7
8 dev-lang/ekopath: Snapshot bump
9
10 dev-lang/ekopath/Manifest | 1 +
11 dev-lang/ekopath/ekopath-6.0.600_p20151125.ebuild | 74 +++++++++++++++++++++++
12 2 files changed, 75 insertions(+)
13
14 diff --git a/dev-lang/ekopath/Manifest b/dev-lang/ekopath/Manifest
15 index 046151d..95a9238 100644
16 --- a/dev-lang/ekopath/Manifest
17 +++ b/dev-lang/ekopath/Manifest
18 @@ -1,2 +1,3 @@
19 DIST ekopath-2015-10-10-installer.run 57723481 SHA256 0cd16e8c70d3e7938474e8885a721f0e50871a01a742b7a653dd1e6791e32baf SHA512 a4e33475b0fce0f3e9e0b744f1ba898983223cee15861491b6f7c3584c381b25c922fc17a7fd759f609f8c73ecbfbd53eeaaea38ddd9151d1cd7e46d0f1cf883 WHIRLPOOL 45744d16e34297ba47bc028382f1dc29cf0611cbff76a179640629ea89526818b4580c63e69d54541bbe915963c761b9abfe809ee2854be58e73ad80bc4e7143
20 DIST ekopath-2015-10-29-installer.run 57559240 SHA256 eea8bba70f89ccaaf8f5eb48bdd7200d54a1af2d993ac850c5d08f39577eea50 SHA512 62cdb322def3bccfac5c4c12f9b3fb1eeaa5a8251a5a4ee59dfff8e7b30463f45fce04d482cc16abbb3b263a88bf845723f22858bae5933570fc43841f970667 WHIRLPOOL fa3a8dd365840c33dd4139bd139e902bf990b0d3ebc736c661060c4faf4e79f41c93c6961b7fd7b46e9aa20e38fbb4265480a006450f728825440392af228351
21 +DIST ekopath-2015-11-25-installer.run 57197459 SHA256 884877a0586ecac3b21a1575e3d2445bda1daf09d68c0dde4cc0d0eb56a3feb2 SHA512 931b36e55592752b5851c98413082a99d537502a6184fa787043f9986554a1f5004e3a9c197851789f2b251b77a663c0dca6fae304bc5da4318b790c4b396ac9 WHIRLPOOL a783a994d17e214c205ba1ebdce0f071f1cfd5db65adc7a1ec939d0dfd901a875e76260bbf540d8229016967ee3ac5fb3091f894e4edbfe391807e407d3e5a6c
22
23 diff --git a/dev-lang/ekopath/ekopath-6.0.600_p20151125.ebuild b/dev-lang/ekopath/ekopath-6.0.600_p20151125.ebuild
24 new file mode 100644
25 index 0000000..c886d13
26 --- /dev/null
27 +++ b/dev-lang/ekopath/ekopath-6.0.600_p20151125.ebuild
28 @@ -0,0 +1,74 @@
29 +# Copyright 1999-2015 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=5
34 +
35 +inherit versionator multilib pax-utils
36 +
37 +MY_PV=$(get_version_component_range 1-3)
38 +DATE=$(get_version_component_range 4)
39 +DATE=${DATE#p}
40 +DATE=${DATE:0:4}-${DATE:4:2}-${DATE:6}
41 +INSTALLER=${PN}-${DATE}-installer.run
42 +
43 +DESCRIPTION="PathScale EKOPath Compiler Suite"
44 +HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
45 +SRC_URI="http://c591116.r16.cf2.rackcdn.com/${PN}/nightly/Linux/${INSTALLER}"
46 +
47 +LICENSE="all-rights-reserved"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE=""
51 +
52 +DEPEND="!!app-arch/rpm"
53 +RDEPEND=""
54 +
55 +RESTRICT="bindist mirror"
56 +
57 +QA_PREBUILT="
58 + opt/${PN}/lib/${MY_PV}/x8664/*
59 + opt/${PN}/bin/*"
60 +
61 +S="${WORKDIR}"
62 +
63 +src_unpack() {
64 + cp "${DISTDIR}/${INSTALLER}" "${S}/" || die
65 + chmod +x "${S}/${INSTALLER}" || die
66 +}
67 +
68 +src_prepare() {
69 + cat > 99${PN} <<-EOF || die
70 + PATH=${EROOT%/}/opt/${PN}/bin
71 + ROOTPATH=${EROOT%/}/opt/${PN}/bin
72 + LDPATH=${EROOT%/}/opt/${PN}/lib:${EROOT%/}/opt/${PN}/lib/${MY_PV}/x8664/64
73 + MANPATH=${EROOT%/}/opt/${PN}/docs/man
74 + EOF
75 +}
76 +
77 +src_install() {
78 + # EI_PAX marking is obsolete and PT_PAX breaks the binary.
79 + # We must use XT_PAX to run the installer.
80 + if [[ ${PAX_MARKINGS} == "XT" ]]; then
81 + pax-mark m "${INSTALLER}"
82 + fi
83 +
84 + ./"${INSTALLER}" \
85 + --prefix "${ED%/}/opt/${PN}" \
86 + --mode unattended || die
87 +
88 + if [[ ! -d ${ED%/}/opt/${PN}/lib/${MY_PV} ]]; then
89 + local guess
90 + cd "${ED%/}/opt/${PN}/lib" && guess=( * )
91 +
92 + if [[ ${guess[@]} ]]; then
93 + die "Incorrect release version in PV, guessing it should be: ${guess[*]}"
94 + else
95 + die "No libdir installed"
96 + fi
97 + fi
98 + [[ -x ${ED%}/opt/${PN}/bin/pathcc ]] || die "No pathcc executable was installed, your hardware is unsupported most likely"
99 +
100 + rm -r "${ED}/opt/${PN}"/uninstall* || die
101 + doenvd 99${PN}
102 +}