View | Details | Raw Unified | Return to bug 206091
Collapse All | Expand All

(-)Makefile (-18 / +34 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	rust-nightly
4
PORTNAME=	rust-nightly
5
PORTVERSION=	1.3.0.20150703
5
PORTVERSION=	1.7.0.20160108
6
CATEGORIES=	lang
6
CATEGORIES=	lang
7
MASTER_SITES=	http://static.rust-lang.org/stage0-snapshots/:bootstrap
7
MASTER_SITES=	http://static.rust-lang.org/stage0-snapshots/:bootstrap
8
DISTFILES=	${RUST_BOOT}:bootstrap
8
DISTFILES=	${RUST_BOOT}:bootstrap
Lines 10-30 Link Here
10
		${DISTFILE_compiler_rt} \
10
		${DISTFILE_compiler_rt} \
11
		${DISTFILE_hoedown} \
11
		${DISTFILE_hoedown} \
12
		${DISTFILE_jemalloc} \
12
		${DISTFILE_jemalloc} \
13
		${DISTFILE_liblibc} \
13
		${DISTFILE_rust_installer}
14
		${DISTFILE_rust_installer}
14
15
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	rust-lang
17
GH_PROJECT=	rust \
18
		compiler-rt:compiler_rt \
19
		hoedown:hoedown \
20
		jemalloc:jemalloc \
21
		rust-installer:rust_installer
22
GH_TAGNAME=	7b148381c7 \
23
		58ab642:compiler_rt \
24
		238c4d5:hoedown \
25
		e24a1a0:jemalloc \
26
		8e4f8ea:rust_installer
27
28
MAINTAINER=	dumbbell@FreeBSD.org
16
MAINTAINER=	dumbbell@FreeBSD.org
29
COMMENT=	Language with a focus on memory safety and concurrency
17
COMMENT=	Language with a focus on memory safety and concurrency
30
18
Lines 34-39 Link Here
34
LICENSE_FILE=	${WRKSRC}/LICENSE-APACHE \
22
LICENSE_FILE=	${WRKSRC}/LICENSE-APACHE \
35
		${WRKSRC}/LICENSE-MIT
23
		${WRKSRC}/LICENSE-MIT
36
24
25
USE_GITHUB=	yes
26
GH_ACCOUNT=	rust-lang \
27
			rust-lang-nursery:liblibc
28
GH_PROJECT=	rust \
29
		compiler-rt:compiler_rt \
30
		hoedown:hoedown \
31
		jemalloc:jemalloc \
32
		libc:liblibc \
33
		rust-installer:rust_installer
34
GH_TAGNAME=	d70ab2b \
35
		b6087e8:compiler_rt \
36
		4638c60:hoedown \
37
		f84e309:jemalloc \
38
		e0c0bf4:liblibc \
39
		4915c75:rust_installer
40
37
ONLY_FOR_ARCHS=	amd64
41
ONLY_FOR_ARCHS=	amd64
38
ONLY_FOR_ARCHS_REASON=	requires prebuilt bootstrap compiler
42
ONLY_FOR_ARCHS_REASON=	requires prebuilt bootstrap compiler
39
43
Lines 45-51 Link Here
45
CONFLICTS_INSTALL=	rust-nightly
49
CONFLICTS_INSTALL=	rust-nightly
46
50
47
RUST_BOOT=	rust-stage0-${RUST_BOOT_SIG}.tar.bz2
51
RUST_BOOT=	rust-stage0-${RUST_BOOT_SIG}.tar.bz2
48
RUST_BOOT_SIG=	2015-05-24-ba0e1cd-freebsd-x86_64-370db40613f5c08563ed7e38357826dd42d4e0f8
52
RUST_BOOT_SIG=	2015-12-18-3391630-freebsd-x86_64-91724d4e655807a2a2e940ac50992ebeaac16ea9
49
53
50
# Rust's libraries are named librustc_${component}-${RUST_VSN_HASH}.so.
54
# Rust's libraries are named librustc_${component}-${RUST_VSN_HASH}.so.
51
# The hash depends on Rust version and, if the channel is not "stable",
55
# The hash depends on Rust version and, if the channel is not "stable",
Lines 59-65 Link Here
59
63
60
USES=		gmake libedit python:2,build
64
USES=		gmake libedit python:2,build
61
HAS_CONFIGURE=	yes
65
HAS_CONFIGURE=	yes
62
CONFIGURE_ARGS=	--disable-valgrind --disable-docs \
66
CONFIGURE_ARGS=	--disable-valgrind-rpass --disable-docs \
63
		--enable-clang --mandir=${MANPREFIX}/man \
67
		--enable-clang --mandir=${MANPREFIX}/man \
64
		--release-channel=${RUST_CHANNEL}
68
		--release-channel=${RUST_CHANNEL}
65
69
Lines 116-124 Link Here
116
	  ${MV} ${WRKSRC_jemalloc} ${WRKSRC}/src/jemalloc)
120
	  ${MV} ${WRKSRC_jemalloc} ${WRKSRC}/src/jemalloc)
117
	@(${RMDIR} ${WRKSRC}/src/rust-installer && \
121
	@(${RMDIR} ${WRKSRC}/src/rust-installer && \
118
	  ${MV} ${WRKSRC_rust_installer} ${WRKSRC}/src/rust-installer)
122
	  ${MV} ${WRKSRC_rust_installer} ${WRKSRC}/src/rust-installer)
123
	@(${RMDIR} ${WRKSRC}/src/liblibc && \
124
	  ${MV} ${WRKSRC_liblibc} ${WRKSRC}/src/liblibc)
119
	@${MKDIR} ${WRKSRC}/dl
125
	@${MKDIR} ${WRKSRC}/dl
120
	${LN} -sf ${DISTDIR}/${RUST_BOOT} ${WRKSRC}/dl
126
	${LN} -sf ${DISTDIR}/${RUST_BOOT} ${WRKSRC}/dl
121
	(cd ${WRKSRC} && find . -type d -exec chmod 0755 {} \;)
127
	(cd ${WRKSRC} && ${FIND} . -type d -exec ${CHMOD} 0755 {} \;)
122
128
123
post-patch:
129
post-patch:
124
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
130
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
Lines 134-139 Link Here
134
		< ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc \
140
		< ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc \
135
		| ${XARGS} ${RM}; \
141
		| ${XARGS} ${RM}; \
136
	fi
142
	fi
143
	@if test -f ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rust-std-x86_64-unknown-freebsd; then \
144
		${SED} -E -e 's,^(dir|file:),${STAGEDIR},' \
145
		< ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rust-std-x86_64-unknown-freebsd \
146
		| ${XARGS} ${RM}; \
147
	fi
137
	@${RM} \
148
	@${RM} \
138
		${STAGEDIR}${PREFIX}/lib/rustlib/components \
149
		${STAGEDIR}${PREFIX}/lib/rustlib/components \
139
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc \
150
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc \
Lines 144-150 Link Here
144
	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/install.log
155
	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/install.log
145
	@${REINPLACE_CMD} -e 's|${STAGEDIR}||' \
156
	@${REINPLACE_CMD} -e 's|${STAGEDIR}||' \
146
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc
157
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc
158
	@${REINPLACE_CMD} -e 's|${STAGEDIR}||' \
159
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rust-std-x86_64-unknown-freebsd
147
	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc.bak
160
	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rustc.bak
161
	@${RM} ${STAGEDIR}${PREFIX}/lib/rustlib/manifest-rust-std-x86_64-unknown-freebsd.bak
148
	@${STRIP_CMD} \
162
	@${STRIP_CMD} \
149
		${STAGEDIR}${PREFIX}/bin/rustc \
163
		${STAGEDIR}${PREFIX}/bin/rustc \
150
		${STAGEDIR}${PREFIX}/bin/rustdoc \
164
		${STAGEDIR}${PREFIX}/bin/rustdoc \
Lines 151-157 Link Here
151
		${STAGEDIR}${PREFIX}/lib/*.so \
165
		${STAGEDIR}${PREFIX}/lib/*.so \
152
		${STAGEDIR}${PREFIX}/lib/rustlib/*/lib/*.so
166
		${STAGEDIR}${PREFIX}/lib/rustlib/*/lib/*.so
153
.if ${PORT_OPTIONS:MDOCS}
167
.if ${PORT_OPTIONS:MDOCS}
154
	@${MV} ${STAGEDIR}${PREFIX}/share/doc/rust ${STAGEDIR}${DOCSDIR}
168
	@if ! test -d ${STAGEDIR}${DOCSDIR}; then \
169
		${MV} ${STAGEDIR}${PREFIX}/share/doc/rust ${STAGEDIR}${DOCSDIR}; \
170
	fi
155
.endif
171
.endif
156
172
157
.include <bsd.port.mk>
173
.include <bsd.port.mk>
(-)distinfo (-12 / +16 lines)
Lines 1-12 Link Here
1
SHA256 (rust-stage0-2015-05-24-ba0e1cd-freebsd-x86_64-370db40613f5c08563ed7e38357826dd42d4e0f8.tar.bz2) = 454530016c6a2f033de5fdfa6086a8caf78a597b99519f1b9a2ecbdd18b001eb
1
SHA256 (rust-stage0-2015-12-18-3391630-freebsd-x86_64-91724d4e655807a2a2e940ac50992ebeaac16ea9.tar.bz2) = 26bf4aadcb54c1336042fcabb1d50d96ee3630675bd80e8b9be5dacce3681d92
2
SIZE (rust-stage0-2015-05-24-ba0e1cd-freebsd-x86_64-370db40613f5c08563ed7e38357826dd42d4e0f8.tar.bz2) = 13137436
2
SIZE (rust-stage0-2015-12-18-3391630-freebsd-x86_64-91724d4e655807a2a2e940ac50992ebeaac16ea9.tar.bz2) = 14884969
3
SHA256 (rust-lang-rust-1.3.0.20150703-7b148381c7_GH0.tar.gz) = 3df365a30727ffb733fe1cc20545b04eac7be20461c5bf3a51fc95b880a5fcf4
3
SHA256 (rust-lang-rust-1.7.0.20160108-d70ab2b_GH0.tar.gz) = 52c63a2bd434e820345ccb8b34a15dc895aba73ccd991d14189a1be028460d10
4
SIZE (rust-lang-rust-1.3.0.20150703-7b148381c7_GH0.tar.gz) = 6490885
4
SIZE (rust-lang-rust-1.7.0.20160108-d70ab2b_GH0.tar.gz) = 7023546
5
SHA256 (rust-lang-compiler-rt-58ab642_GH0.tar.gz) = 5553488bae570271b7faf9f112b2594bb70d802d3d071f9ab0e37919e6327f98
5
SHA256 (rust-lang-nursery-libc-e0c0bf4_GH0.tar.gz) = 3a30f4849288eeff770a5b082a44eced99caf4615c0fde54554896b42f23a69a
6
SIZE (rust-lang-compiler-rt-58ab642_GH0.tar.gz) = 1938952
6
SIZE (rust-lang-nursery-libc-e0c0bf4_GH0.tar.gz) = 61902
7
SHA256 (rust-lang-hoedown-238c4d5_GH0.tar.gz) = e2e62b68cc4ea415c6d584f5e97a4b94f60023acde30345ec7bd68aa52739368
7
SHA256 (rust-lang-compiler-rt-b6087e8_GH0.tar.gz) = d1af58c1b5680859659becd064b51eb9e30cfec8aa38f43a3c370796311fae7c
8
SIZE (rust-lang-hoedown-238c4d5_GH0.tar.gz) = 60652
8
SIZE (rust-lang-compiler-rt-b6087e8_GH0.tar.gz) = 2170286
9
SHA256 (rust-lang-jemalloc-e24a1a0_GH0.tar.gz) = c50c61eae80772cbc7af0905110c30fcea267a57bbc930df115bd4a647a5e2e1
9
SHA256 (rust-lang-hoedown-4638c60_GH0.tar.gz) = c27c4fd8d24082ea6ced012dfefced9b4b2a3b90383b68276f08569803fe0c84
10
SIZE (rust-lang-jemalloc-e24a1a0_GH0.tar.gz) = 398919
10
SIZE (rust-lang-hoedown-4638c60_GH0.tar.gz) = 65837
11
SHA256 (rust-lang-rust-installer-8e4f8ea_GH0.tar.gz) = c865d4d2542e2a6588d928857caf910e201e32e200005c485964717bde7970aa
11
SHA256 (rust-lang-jemalloc-f84e309_GH0.tar.gz) = 287556535508c71bbf28c1f0ee9fcbe7c97ed40ba614d78af1d238200c55433c
12
SIZE (rust-lang-rust-installer-8e4f8ea_GH0.tar.gz) = 14602
12
SIZE (rust-lang-jemalloc-f84e309_GH0.tar.gz) = 439214
13
SHA256 (rust-lang-llvm-3564439_GH0.tar.gz) = 144e0008cd95854bc8503ad533c61c87abbc6343956ba68ec8021a3924f3d689
14
SIZE (rust-lang-llvm-3564439_GH0.tar.gz) = 21093569
15
SHA256 (rust-lang-rust-installer-4915c75_GH0.tar.gz) = 022116173684c97d61e014940aada20f3830d2d3e1670887bf1861997133c234
16
SIZE (rust-lang-rust-installer-4915c75_GH0.tar.gz) = 19234
(-)pkg-plist (-1 / +15 lines)
Lines 13-20 Link Here
13
lib/librustc_borrowck-%%RUST_VSN_HASH%%.so
13
lib/librustc_borrowck-%%RUST_VSN_HASH%%.so
14
lib/librustc_data_structures-%%RUST_VSN_HASH%%.so
14
lib/librustc_data_structures-%%RUST_VSN_HASH%%.so
15
lib/librustc_driver-%%RUST_VSN_HASH%%.so
15
lib/librustc_driver-%%RUST_VSN_HASH%%.so
16
lib/librustc_front-%%RUST_VSN_HASH%%.so
16
lib/librustc_lint-%%RUST_VSN_HASH%%.so
17
lib/librustc_lint-%%RUST_VSN_HASH%%.so
17
lib/librustc_llvm-%%RUST_VSN_HASH%%.so
18
lib/librustc_llvm-%%RUST_VSN_HASH%%.so
19
lib/librustc_metadata-%%RUST_VSN_HASH%%.so
20
lib/librustc_mir-%%RUST_VSN_HASH%%.so
21
lib/librustc_platform_intrinsics-%%RUST_VSN_HASH%%.so
22
lib/librustc_plugin-%%RUST_VSN_HASH%%.so
18
lib/librustc_privacy-%%RUST_VSN_HASH%%.so
23
lib/librustc_privacy-%%RUST_VSN_HASH%%.so
19
lib/librustc_resolve-%%RUST_VSN_HASH%%.so
24
lib/librustc_resolve-%%RUST_VSN_HASH%%.so
20
lib/librustc_trans-%%RUST_VSN_HASH%%.so
25
lib/librustc_trans-%%RUST_VSN_HASH%%.so
Lines 23-28 Link Here
23
lib/libserialize-%%RUST_VSN_HASH%%.so
28
lib/libserialize-%%RUST_VSN_HASH%%.so
24
lib/libstd-%%RUST_VSN_HASH%%.so
29
lib/libstd-%%RUST_VSN_HASH%%.so
25
lib/libsyntax-%%RUST_VSN_HASH%%.so
30
lib/libsyntax-%%RUST_VSN_HASH%%.so
31
lib/libsyntax_ext-%%RUST_VSN_HASH%%.so
26
lib/libterm-%%RUST_VSN_HASH%%.so
32
lib/libterm-%%RUST_VSN_HASH%%.so
27
lib/libtest-%%RUST_VSN_HASH%%.so
33
lib/libtest-%%RUST_VSN_HASH%%.so
28
lib/rustlib/components
34
lib/rustlib/components
Lines 30-38 Link Here
30
lib/rustlib/etc/gdb_load_rust_pretty_printers.py
36
lib/rustlib/etc/gdb_load_rust_pretty_printers.py
31
lib/rustlib/etc/gdb_rust_pretty_printing.py
37
lib/rustlib/etc/gdb_rust_pretty_printing.py
32
lib/rustlib/manifest-rustc
38
lib/rustlib/manifest-rustc
39
lib/rustlib/manifest-rust-std-%%RUST_TARGET%%
33
lib/rustlib/rust-installer-version
40
lib/rustlib/rust-installer-version
34
lib/rustlib/uninstall.sh
41
lib/rustlib/uninstall.sh
35
lib/rustlib/%%RUST_TARGET%%/lib/liballoc-%%RUST_VSN_HASH%%.rlib
42
lib/rustlib/%%RUST_TARGET%%/lib/liballoc-%%RUST_VSN_HASH%%.rlib
43
lib/rustlib/%%RUST_TARGET%%/lib/liballoc_jemalloc-%%RUST_VSN_HASH%%.rlib
44
lib/rustlib/%%RUST_TARGET%%/lib/liballoc_system-%%RUST_VSN_HASH%%.rlib
36
lib/rustlib/%%RUST_TARGET%%/lib/libarena-%%RUST_VSN_HASH%%.rlib
45
lib/rustlib/%%RUST_TARGET%%/lib/libarena-%%RUST_VSN_HASH%%.rlib
37
lib/rustlib/%%RUST_TARGET%%/lib/libarena-%%RUST_VSN_HASH%%.so
46
lib/rustlib/%%RUST_TARGET%%/lib/libarena-%%RUST_VSN_HASH%%.so
38
lib/rustlib/%%RUST_TARGET%%/lib/libcollections-%%RUST_VSN_HASH%%.rlib
47
lib/rustlib/%%RUST_TARGET%%/lib/libcollections-%%RUST_VSN_HASH%%.rlib
Lines 48-54 Link Here
48
lib/rustlib/%%RUST_TARGET%%/lib/liblibc-%%RUST_VSN_HASH%%.rlib
57
lib/rustlib/%%RUST_TARGET%%/lib/liblibc-%%RUST_VSN_HASH%%.rlib
49
lib/rustlib/%%RUST_TARGET%%/lib/liblog-%%RUST_VSN_HASH%%.rlib
58
lib/rustlib/%%RUST_TARGET%%/lib/liblog-%%RUST_VSN_HASH%%.rlib
50
lib/rustlib/%%RUST_TARGET%%/lib/liblog-%%RUST_VSN_HASH%%.so
59
lib/rustlib/%%RUST_TARGET%%/lib/liblog-%%RUST_VSN_HASH%%.so
51
lib/rustlib/%%RUST_TARGET%%/lib/libmorestack.a
52
lib/rustlib/%%RUST_TARGET%%/lib/librand-%%RUST_VSN_HASH%%.rlib
60
lib/rustlib/%%RUST_TARGET%%/lib/librand-%%RUST_VSN_HASH%%.rlib
53
lib/rustlib/%%RUST_TARGET%%/lib/librbml-%%RUST_VSN_HASH%%.rlib
61
lib/rustlib/%%RUST_TARGET%%/lib/librbml-%%RUST_VSN_HASH%%.rlib
54
lib/rustlib/%%RUST_TARGET%%/lib/librbml-%%RUST_VSN_HASH%%.so
62
lib/rustlib/%%RUST_TARGET%%/lib/librbml-%%RUST_VSN_HASH%%.so
Lines 58-65 Link Here
58
lib/rustlib/%%RUST_TARGET%%/lib/librustc_borrowck-%%RUST_VSN_HASH%%.so
66
lib/rustlib/%%RUST_TARGET%%/lib/librustc_borrowck-%%RUST_VSN_HASH%%.so
59
lib/rustlib/%%RUST_TARGET%%/lib/librustc_data_structures-%%RUST_VSN_HASH%%.so
67
lib/rustlib/%%RUST_TARGET%%/lib/librustc_data_structures-%%RUST_VSN_HASH%%.so
60
lib/rustlib/%%RUST_TARGET%%/lib/librustc_driver-%%RUST_VSN_HASH%%.so
68
lib/rustlib/%%RUST_TARGET%%/lib/librustc_driver-%%RUST_VSN_HASH%%.so
69
lib/rustlib/%%RUST_TARGET%%/lib/librustc_front-%%RUST_VSN_HASH%%.so
61
lib/rustlib/%%RUST_TARGET%%/lib/librustc_lint-%%RUST_VSN_HASH%%.so
70
lib/rustlib/%%RUST_TARGET%%/lib/librustc_lint-%%RUST_VSN_HASH%%.so
62
lib/rustlib/%%RUST_TARGET%%/lib/librustc_llvm-%%RUST_VSN_HASH%%.so
71
lib/rustlib/%%RUST_TARGET%%/lib/librustc_llvm-%%RUST_VSN_HASH%%.so
72
lib/rustlib/%%RUST_TARGET%%/lib/librustc_metadata-%%RUST_VSN_HASH%%.so
73
lib/rustlib/%%RUST_TARGET%%/lib/librustc_mir-%%RUST_VSN_HASH%%.so
74
lib/rustlib/%%RUST_TARGET%%/lib/librustc_platform_intrinsics-%%RUST_VSN_HASH%%.so
75
lib/rustlib/%%RUST_TARGET%%/lib/librustc_plugin-%%RUST_VSN_HASH%%.so
63
lib/rustlib/%%RUST_TARGET%%/lib/librustc_privacy-%%RUST_VSN_HASH%%.so
76
lib/rustlib/%%RUST_TARGET%%/lib/librustc_privacy-%%RUST_VSN_HASH%%.so
64
lib/rustlib/%%RUST_TARGET%%/lib/librustc_resolve-%%RUST_VSN_HASH%%.so
77
lib/rustlib/%%RUST_TARGET%%/lib/librustc_resolve-%%RUST_VSN_HASH%%.so
65
lib/rustlib/%%RUST_TARGET%%/lib/librustc_trans-%%RUST_VSN_HASH%%.so
78
lib/rustlib/%%RUST_TARGET%%/lib/librustc_trans-%%RUST_VSN_HASH%%.so
Lines 71-76 Link Here
71
lib/rustlib/%%RUST_TARGET%%/lib/libstd-%%RUST_VSN_HASH%%.rlib
84
lib/rustlib/%%RUST_TARGET%%/lib/libstd-%%RUST_VSN_HASH%%.rlib
72
lib/rustlib/%%RUST_TARGET%%/lib/libstd-%%RUST_VSN_HASH%%.so
85
lib/rustlib/%%RUST_TARGET%%/lib/libstd-%%RUST_VSN_HASH%%.so
73
lib/rustlib/%%RUST_TARGET%%/lib/libsyntax-%%RUST_VSN_HASH%%.so
86
lib/rustlib/%%RUST_TARGET%%/lib/libsyntax-%%RUST_VSN_HASH%%.so
87
lib/rustlib/%%RUST_TARGET%%/lib/libsyntax_ext-%%RUST_VSN_HASH%%.so
74
lib/rustlib/%%RUST_TARGET%%/lib/libterm-%%RUST_VSN_HASH%%.rlib
88
lib/rustlib/%%RUST_TARGET%%/lib/libterm-%%RUST_VSN_HASH%%.rlib
75
lib/rustlib/%%RUST_TARGET%%/lib/libterm-%%RUST_VSN_HASH%%.so
89
lib/rustlib/%%RUST_TARGET%%/lib/libterm-%%RUST_VSN_HASH%%.so
76
lib/rustlib/%%RUST_TARGET%%/lib/libtest-%%RUST_VSN_HASH%%.rlib
90
lib/rustlib/%%RUST_TARGET%%/lib/libtest-%%RUST_VSN_HASH%%.rlib

Return to bug 206091