Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 611756
Collapse All | Expand All

(-)a/dev-lang/rust-bin/rust-bin-1.15.1.ebuild (-2 / +13 lines)
Lines 3-20 Link Here
3
3
4
EAPI=5
4
EAPI=5
5
5
6
inherit eutils bash-completion-r1
6
inherit eutils bash-completion-r1 toolchain-funcs
7
7
8
MY_P="rust-${PV}"
8
MY_P="rust-${PV}"
9
9
10
DESCRIPTION="Systems programming language from Mozilla"
10
DESCRIPTION="Systems programming language from Mozilla"
11
HOMEPAGE="http://www.rust-lang.org/"
11
HOMEPAGE="http://www.rust-lang.org/"
12
SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
12
SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
13
	arm? (
14
		https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabi.tar.gz
15
		https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabihf.tar.gz
16
	)
13
	x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
17
	x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
14
18
15
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
19
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
16
SLOT="stable"
20
SLOT="stable"
17
KEYWORDS="~amd64 ~x86"
21
KEYWORDS="~amd64 ~arm ~x86"
18
IUSE="doc"
22
IUSE="doc"
19
23
20
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
24
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
Lines 34-39 src_unpack() { Link Here
34
38
35
	local postfix
39
	local postfix
36
	use amd64 && postfix=x86_64-unknown-linux-gnu
40
	use amd64 && postfix=x86_64-unknown-linux-gnu
41
	if use arm; then
42
		if [[ "$(tc-is-softfloat)" != "no" ]]; then
43
			postfix=arm-unknown-linux-gnueabi
44
		else
45
			postfix=arm-unknown-linux-gnueabihf
46
		fi
47
	fi
37
	use x86 && postfix=i686-unknown-linux-gnu
48
	use x86 && postfix=i686-unknown-linux-gnu
38
	mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
49
	mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
39
}
50
}

Return to bug 611756