lang/rust: Fix paths in manifest-rls-preview

Like other manifests, without this, it still references the stage
directory. This error is reported when DEVELOPER=YES is set.

While here, strip `bin/rls`.

Reported by:	bar@, cpm@
This commit is contained in:
Jean-Sébastien Pédron 2017-10-29 12:38:09 +00:00
parent 608cc173a3
commit 410580ce93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453113

View file

@ -3,6 +3,7 @@
PORTNAME= rust
PORTVERSION?= 1.21.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://static.rust-lang.org/dist/:src \
LOCAL/dumbbell/rust:rust_bootstrap \
@ -82,6 +83,7 @@ LLVM_CONFIG= ${LOCALBASE}/bin/llvm-config${LLVM_VER}
# - pre-install to cleanup the ${STAGEDIR}
# - post-install to populate the ${TMPPLIST}
RUST_MANIFESTS= lib/rustlib/manifest-cargo \
lib/rustlib/manifest-rls-preview \
lib/rustlib/manifest-rustc \
lib/rustlib/manifest-rust-analysis-${RUST_TARGET} \
lib/rustlib/manifest-rust-std-${RUST_TARGET}
@ -321,6 +323,7 @@ post-install:
# but they contain non-object files which make strip(1) unhappy.
@${STRIP_CMD} \
${STAGEDIR}${PREFIX}/bin/cargo \
${STAGEDIR}${PREFIX}/bin/rls \
${STAGEDIR}${PREFIX}/bin/rustc \
${STAGEDIR}${PREFIX}/bin/rustdoc \
${STAGEDIR}${PREFIX}/lib/*.so \