Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 617744 | Differences between
and this patch

Collapse All | Expand All

(-)gentoo/dev-util/cargo/cargo-0.17.0.ebuild (-55 / +78 lines)
Lines 3-99 Link Here
3
3
4
EAPI=6
4
EAPI=6
5
5
6
CARGO_SNAPSHOT_DATE="2016-09-01"
6
inherit cargo bash-completion-r1
7
7
CRATES="
8
CRATES="
8
advapi32-sys-0.2.0
9
advapi32-sys-0.2.0
9
aho-corasick-0.5.3
10
aho-corasick-0.5.3
10
bitflags-0.1.1
11
aho-corasick-0.6.3
11
bitflags-0.7.0
12
bitflags-0.7.0
12
bufstream-0.1.2
13
bufstream-0.1.2
13
cargotest-0.1.0
14
cfg-if-0.1.0
14
cfg-if-0.1.0
15
cmake-0.1.19
15
chrono-0.2.25
16
crates-io-0.6.0
16
cmake-0.1.22
17
crossbeam-0.2.10
17
crossbeam-0.2.10
18
curl-0.4.1
18
curl-0.4.6
19
curl-sys-0.3.6
19
curl-sys-0.3.11
20
docopt-0.6.86
20
docopt-0.7.0
21
env_logger-0.3.5
21
dtoa-0.4.1
22
error-chain-0.7.2
22
env_logger-0.4.2
23
filetime-0.1.10
23
filetime-0.1.10
24
flate2-0.2.14
24
flate2-0.2.17
25
fs2-0.3.0
25
foreign-types-0.2.0
26
gcc-0.3.39
26
fs2-0.4.1
27
gcc-0.3.45
27
gdi32-sys-0.2.0
28
gdi32-sys-0.2.0
28
git2-0.6.3
29
git2-0.6.4
29
git2-curl-0.7.0
30
git2-curl-0.7.0
30
glob-0.2.11
31
glob-0.2.11
31
hamcrest-0.1.1
32
hamcrest-0.1.1
32
idna-0.1.0
33
idna-0.1.0
34
itoa-0.3.1
33
kernel32-sys-0.2.2
35
kernel32-sys-0.2.2
34
lazy_static-0.2.2
36
lazy_static-0.2.5
35
libc-0.2.18
37
libc-0.2.21
36
libgit2-sys-0.6.6
38
libgit2-sys-0.6.8
37
libssh2-sys-0.2.5
39
libssh2-sys-0.2.5
38
libz-sys-1.0.13
40
libz-sys-1.0.13
39
log-0.3.6
41
log-0.3.7
40
matches-0.1.4
42
matches-0.1.4
41
memchr-0.1.11
43
memchr-0.1.11
42
metadeps-1.1.1
44
memchr-1.0.1
43
miniz-sys-0.1.7
45
miniz-sys-0.1.9
44
miow-0.1.3
46
miow-0.2.1
45
net2-0.2.26
47
net2-0.2.27
46
num-0.1.36
48
num-0.1.37
47
num-bigint-0.1.35
49
num-bigint-0.1.37
48
num-complex-0.1.35
50
num-complex-0.1.36
49
num-integer-0.1.32
51
num_cpus-1.3.0
50
num-iter-0.1.32
52
num-integer-0.1.33
51
num-rational-0.1.35
53
num-iter-0.1.33
52
num-traits-0.1.36
54
num-rational-0.1.36
53
num_cpus-1.1.0
55
num-traits-0.1.37
54
openssl-0.9.6
56
openssl-0.9.10
55
openssl-probe-0.1.0
57
openssl-probe-0.1.0
56
openssl-sys-0.9.6
58
openssl-sys-0.9.10
57
pkg-config-0.3.8
59
pkg-config-0.3.9
58
psapi-sys-0.1.0
60
psapi-sys-0.1.0
59
rand-0.3.14
61
quote-0.3.15
62
rand-0.3.15
63
redox_syscall-0.1.17
60
regex-0.1.80
64
regex-0.1.80
65
regex-0.2.1
61
regex-syntax-0.3.9
66
regex-syntax-0.3.9
62
rustc-serialize-0.3.21
67
regex-syntax-0.4.0
63
semver-0.5.1
68
rustc-serialize-0.3.23
64
semver-parser-0.6.1
69
semver-0.6.0
70
semver-parser-0.7.0
71
serde-0.9.12
72
serde_codegen_internals-0.14.2
73
serde_derive-0.9.12
74
serde_ignored-0.0.2
75
serde_json-0.9.9
65
shell-escape-0.1.3
76
shell-escape-0.1.3
66
strsim-0.5.1
77
strsim-0.6.0
67
tar-0.4.9
78
syn-0.11.9
79
synom-0.11.3
80
tar-0.4.11
68
tempdir-0.3.5
81
tempdir-0.3.5
69
term-0.4.4
82
term-0.4.5
70
thread-id-2.0.0
83
thread-id-2.0.0
84
thread-id-3.0.0
71
thread_local-0.2.7
85
thread_local-0.2.7
72
toml-0.2.1
86
thread_local-0.3.3
73
unicode-bidi-0.2.3
87
time-0.1.36
74
unicode-normalization-0.1.2
88
toml-0.3.1
75
url-1.2.3
89
unicode-bidi-0.2.5
90
unicode-normalization-0.1.4
91
unicode-xid-0.0.4
92
unreachable-0.1.1
93
url-1.4.0
76
user32-sys-0.2.0
94
user32-sys-0.2.0
77
utf8-ranges-0.1.3
95
utf8-ranges-0.1.3
96
utf8-ranges-1.0.0
97
void-1.0.2
78
winapi-0.2.8
98
winapi-0.2.8
79
winapi-build-0.1.1
99
winapi-build-0.1.1
80
ws2_32-sys-0.2.1
100
ws2_32-sys-0.2.1
81
"
101
"
82
102
83
inherit cargo bash-completion-r1
103
CHOST_amd64=x86_64-unknown-linux-gnu
104
CHOST_x86=i686-unknown-linux-gnu
105
106
CARGO_STAGE0_VERSION="${PV}"
107
CARGO_STAGE0_amd64="cargo-${CARGO_STAGE0_VERSION}-${CHOST_amd64}"
108
CARGO_STAGE0_x86="cargo-${CARGO_STAGE0_VERSION}-${CHOST_x86}"
84
109
85
DESCRIPTION="The Rust's package manager"
110
DESCRIPTION="The Rust's package manager"
86
HOMEPAGE="http://crates.io"
111
HOMEPAGE="http://crates.io"
87
SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
112
SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
88
	$(cargo_crate_uris ${CRATES})
113
	$(cargo_crate_uris ${CRATES})
89
	x86?   (
114
	amd64? ( https://static.rust-lang.org/dist/${CARGO_STAGE0_amd64}.tar.gz )
90
		https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz ->
115
	x86? ( https://static.rust-lang.org/dist/${CARGO_STAGE0_x86}.tar.gz )
91
		cargo-snapshot-x86-${CARGO_SNAPSHOT_DATE}.tar.gz
116
"
92
	)
93
	amd64? (
94
		https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz ->
95
		cargo-snapshot-amd64-${CARGO_SNAPSHOT_DATE}.tar.gz
96
	)"
97
117
98
RESTRICT="mirror"
118
RESTRICT="mirror"
99
LICENSE="|| ( MIT Apache-2.0 )"
119
LICENSE="|| ( MIT Apache-2.0 )"
Lines 119-124 Link Here
119
	sys-apps/sed"
139
	sys-apps/sed"
120
140
121
src_configure() {
141
src_configure() {
142
	local cargo_stagename="CARGO_STAGE0_${ARCH}"
143
	local cargo_stage0="${!cargo_stagename}"
144
122
	# Cargo only supports these GNU triples:
145
	# Cargo only supports these GNU triples:
123
	# - Linux: <arch>-unknown-linux-gnu
146
	# - Linux: <arch>-unknown-linux-gnu
124
	# - MacOS: <arch>-apple-darwin
147
	# - MacOS: <arch>-apple-darwin
Lines 136-144 Link Here
136
		--host=${CTARGET}
159
		--host=${CTARGET}
137
		--build=${CTARGET}
160
		--build=${CTARGET}
138
		--target=${CTARGET}
161
		--target=${CTARGET}
139
		--cargo="${WORKDIR}"/${P}/target/snapshot/bin/cargo
162
		--cargo="${WORKDIR}/${cargo_stage0}/cargo/bin/cargo"
140
		--enable-optimize
163
		--enable-optimize
141
#		--release-channel stable
164
		--release-channel=stable
142
		--disable-verify-install
165
		--disable-verify-install
143
		--disable-debug
166
		--disable-debug
144
		--disable-cross-tests
167
		--disable-cross-tests

Return to bug 617744