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 | \ |