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

(-)lang/rust/Makefile (-8 / +37 lines)
Lines 70-76 Link Here
70
70
71
# See WRKSRC/src/stage0.txt for the date and version values.
71
# See WRKSRC/src/stage0.txt for the date and version values.
72
BOOTSTRAPS_DATE?=		2020-11-19
72
BOOTSTRAPS_DATE?=		2020-11-19
73
RUST_BOOTSTRAP_VERSION?=	1.48.0
73
RUST_BOOTSTRAP_VERSION?=	1.49.0
74
74
75
BOOTSTRAPS_SUFFIX?=		${BOOTSTRAPS_SUFFIX_${ARCH}}
75
BOOTSTRAPS_SUFFIX?=		${BOOTSTRAPS_SUFFIX_${ARCH}}
76
BOOTSTRAPS_SUFFIX_powerpc64?=	-${PPC_ABI:tl}
76
BOOTSTRAPS_SUFFIX_powerpc64?=	-${PPC_ABI:tl}
Lines 186-206 Link Here
186
186
187
do-build:
187
do-build:
188
	@cd ${WRKSRC} && \
188
	@cd ${WRKSRC} && \
189
		${SETENV} ${MAKE_ENV} ${PYTHON_CMD} x.py build --jobs=${MAKE_JOBS_NUMBER}
189
		${SETENV} ${MAKE_ENV} ${PYTHON_CMD} x.py dist --jobs=${MAKE_JOBS_NUMBER} \
190
			library/std src/librustc cargo clippy rustfmt src
191
	${RM} -rf ${WRKSRC}/build/tmp/dist
190
192
193
COMPONENTS=	rustc-${PORTVERSION}-${_RUST_TARGET} \
194
		rust-std-${PORTVERSION}-${_RUST_TARGET} \
195
		cargo-${PORTVERSION}-${_RUST_TARGET} \
196
		clippy-${PORTVERSION}-${_RUST_TARGET} \
197
		rustfmt-${PORTVERSION}-${_RUST_TARGET}
198
199
.if ${PORT_OPTIONS:MSOURCES}
200
COMPONENTS+=	rust-src-${PORTVERSION}
201
.endif
202
203
.if ${PORT_OPTIONS:MWASM}
204
COMPONENTS+=	rust-std-${PORTVERSION}-wasm32-unknown-unknown
205
.endif
206
191
do-install:
207
do-install:
192
	@cd ${WRKSRC} && \
208
	@${RM} -r ${WRKSRC}/_extractdist
193
		${SETENV} ${MAKE_ENV} ${PYTHON_CMD} x.py install --jobs=${MAKE_JOBS_NUMBER}
209
.for _c in ${COMPONENTS}
210
	${MKDIR} ${WRKSRC}/_extractdist
211
	cd ${WRKSRC}/_extractdist && ${TAR} xf \
212
		${WRKSRC}/build/dist/${_c}.tar.xz
213
	${REINPLACE_CMD} 's|/bin/bash|${LOCALBASE}/bin/bash|' \
214
		${WRKSRC}/_extractdist/${_c}/install.sh
215
	cd ${WRKSRC}/_extractdist/${_c} && \
216
		${LOCALBASE}/bin/bash ./install.sh \
217
		--prefix="${STAGEDIR}${PREFIX}" \
218
		--mandir="${STAGEDIR}${PREFIX}/share/man"
219
	@${RM} -r ${WRKSRC}/_extractdist
220
.endfor
221
194
# We autogenerate the plist file.  We do that, instead of the
222
# We autogenerate the plist file.  We do that, instead of the
195
# regular pkg-plist, because several libraries have a computed
223
# regular pkg-plist, because several libraries have a computed
196
# filename based on the absolute path of the source files.  As it
224
# filename based on the absolute path of the source files.  As it
197
# is user-specific, we cannot know their filename in advance.
225
# is user-specific, we cannot know their filename in advance.
226
post-install:
198
	@${RM} -r ${STAGEDIR}${DOCSDIR}/*.old \
227
	@${RM} -r ${STAGEDIR}${DOCSDIR}/*.old \
199
		${STAGEDIR}${DOCSDIR}/html/.lock \
200
		${STAGEDIR}${DOCSDIR}/html/.stamp \
201
		${STAGEDIR}${PREFIX}/lib/rustlib/install.log \
228
		${STAGEDIR}${PREFIX}/lib/rustlib/install.log \
202
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-* \
229
		${STAGEDIR}${PREFIX}/lib/rustlib/uninstall.sh \
203
		${STAGEDIR}${PREFIX}/lib/rustlib/uninstall.sh
230
		${STAGEDIR}${PREFIX}/lib/rustlib/rust-installer-version \
231
		${STAGEDIR}${PREFIX}/lib/rustlib/components \
232
		${STAGEDIR}${PREFIX}/lib/rustlib/manifest-*
204
	@${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/lib -exec ${FILE} -i {} + | \
233
	@${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/lib -exec ${FILE} -i {} + | \
205
		${AWK} -F: '/executable|sharedlib/ { print $$1 }' | ${XARGS} ${STRIP_CMD}
234
		${AWK} -F: '/executable|sharedlib/ { print $$1 }' | ${XARGS} ${STRIP_CMD}
206
	@${FIND} ${STAGEDIR}${PREFIX} -not -type d | \
235
	@${FIND} ${STAGEDIR}${PREFIX} -not -type d | \
(-)lang/rust/distinfo (-6 / +3 lines)
Lines 1-12 Link Here
1
TIMESTAMP = 1609603291
1
TIMESTAMP = 1609603291
2
SHA256 (rust/rustc-1.49.0-src.tar.xz) = ebe910edc824a0a037a10be443446a0511923ba8342fa3c331ec8a22481d5d15
2
SHA256 (rust/rustc-1.49.0-src.tar.xz) = ebe910edc824a0a037a10be443446a0511923ba8342fa3c331ec8a22481d5d15
3
SIZE (rust/rustc-1.49.0-src.tar.xz) = 108330280
3
SIZE (rust/rustc-1.49.0-src.tar.xz) = 108330280
4
SHA256 (rust/2020-11-19/rustc-1.48.0-aarch64-unknown-freebsd.tar.xz) = 1a2d975dc14f30044cdef9045af7fbe47fdb4652b5f1da55afebda59857e56b4
4
SHA256 (rust/2020-11-19/cargo-1.49.0-aarch64-unknown-freebsd.tar.xz) = 01c3013b50bf9a72a430367b5783345b4c837f314d5f410826dc3bd0098bc59e
5
SIZE (rust/2020-11-19/rustc-1.48.0-aarch64-unknown-freebsd.tar.xz) = 39078180
5
SHA256 (rust/2020-11-19/rust-std-1.49.0-aarch64-unknown-freebsd.tar.xz) = 2e7b41755898f61ce66a0b8210f271befdc7c59d4e0200a41711e18c87d2140e
6
SHA256 (rust/2020-11-19/rust-std-1.48.0-aarch64-unknown-freebsd.tar.xz) = 3c4af0093a028c8273e4bcd0c45444a42bfa1627de96ee925795573898dad1c9
6
SHA256 (rust/2020-11-19/rustc-1.49.0-aarch64-unknown-freebsd.tar.xz) = a3fe3d3ba8a5844deefb6a4f9308b30c82b2f6b5ab71a1ba10150a20973ba1a8
7
SIZE (rust/2020-11-19/rust-std-1.48.0-aarch64-unknown-freebsd.tar.xz) = 16735248
8
SHA256 (rust/2020-11-19/cargo-1.48.0-aarch64-unknown-freebsd.tar.xz) = 180b78e030d105818b6989f71491a86edcd69bf7554e1500a0a01d9dc94d6f87
9
SIZE (rust/2020-11-19/cargo-1.48.0-aarch64-unknown-freebsd.tar.xz) = 3276872
10
SHA256 (rust/2020-11-19/rustc-1.48.0-x86_64-unknown-freebsd.tar.xz) = 60306c65024dd56fc23ad23f3815bd2a405603eb9ca2f0695954127bc0c36308
7
SHA256 (rust/2020-11-19/rustc-1.48.0-x86_64-unknown-freebsd.tar.xz) = 60306c65024dd56fc23ad23f3815bd2a405603eb9ca2f0695954127bc0c36308
11
SIZE (rust/2020-11-19/rustc-1.48.0-x86_64-unknown-freebsd.tar.xz) = 38980996
8
SIZE (rust/2020-11-19/rustc-1.48.0-x86_64-unknown-freebsd.tar.xz) = 38980996
12
SHA256 (rust/2020-11-19/rust-std-1.48.0-x86_64-unknown-freebsd.tar.xz) = 2240679f9b4b94fa8dd028f215872d4255a67a6d8c119faeb73624e9a161ce60
9
SHA256 (rust/2020-11-19/rust-std-1.48.0-x86_64-unknown-freebsd.tar.xz) = 2240679f9b4b94fa8dd028f215872d4255a67a6d8c119faeb73624e9a161ce60

Return to bug 251254