From: Laurent Cheylus Subject: Re: Add devel/rust-analyzer To: ports@openbsd.org Date: Thu, 18 Jan 2024 09:44:20 -0000 On Wed, 17 Jan 2024 16:22:26 +0100, Sebastien Marie wrote: > a few more comments. > > - license is dual Apache 2.0 / MIT > - SEPARATE_BUILD=Yes is supported > - MODCARGO_RUSTFLAGS setting seems unnecessary (it built fine without > it) > > - do-install is unnecessary when using MODCARGO_INSTALL_TARGET_PATHS = > crates/rust-analyzer > > - MAKE_ENV = ${MODCARGO_ENV} is unnecessary (the default build target > does it already) I have imported and update frequently a port for devel/rust-analyzer in OpenBSD-WIP repository, see my work => https://github.com/jasperla/ openbsd-wip/tree/master/devel/rust-analyzer - Add MAKE_ENV += CFG_RELEASE=${GH_TAGNAME} to set version - Add post-build to generate HTML doc with asciidoctor - Install binary and doc in do-install The RDEP on lang/rust,-src is not optional, rust-analyzer tool needs Rust sources to work properly. Laurent