On 2023/06/22 12:15, Benjamin Stürz wrote:
> Hi,
>
> to use the rust-analyzer (port to be announced),
> I need the source code of the Rust stdlib installed.
> Unfortunately the current lang/rust port doesn't provide this.
> Could you consider adding the source code as a rust-src sub-port?
>
> I'm gonna attach a mystuff port I'm using on my machines for reference.
>
> Best regards,
> Benjamin Stürz
No opinion on whether to include it or not, but...
: CATEGORIES = mystuff devel
don't include mystuff
: do-install:
: mkdir -p ${DESTDIR}/usr/local/lib/rustlib/src/rust/src/llvm-project
${DESTDIR}/usr/local should be spelt "${PREFIX}"
mkdir -p "${INSTALL_DATA_DIR}"
: cp -rf ${WRKDIR}/rustc-$V-src/library ${DESTDIR}/usr/local/lib/rustlib/src/rust/
: cp -rf ${WRKDIR}/rustc-$V-src/src/llvm-project/libunwind \
: ${DESTDIR}/usr/local/lib/rustlib/src/rust/src/llvm-project/
(and, if this was to be included, making it a subpackage of lang/rust
itself would make more sense - saves having to extract 170MB tar.xz
twice)
No comments:
Post a Comment