sync code with last improvements from OpenBSD
This commit is contained in:
parent
27298272ec
commit
7116a5838e
35 changed files with 509 additions and 254 deletions
|
@ -1,4 +1,4 @@
|
|||
.\" $OpenBSD: cargo-module.5,v 1.5 2023/08/17 05:43:09 tb Exp $
|
||||
.\" $OpenBSD: cargo-module.5,v 1.7 2023/08/18 08:22:29 tb Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2008 Marc Espie
|
||||
.\" Copyright (c) 2017 Daniel Jakots
|
||||
|
@ -25,7 +25,7 @@
|
|||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd $Mdocdate: August 17 2023 $
|
||||
.Dd $Mdocdate: August 18 2023 $
|
||||
.Dt CARGO-MODULE 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -86,26 +86,35 @@ is used to download the crates.
|
|||
.Pp
|
||||
This module defines:
|
||||
.Bl -tag -width MODCARGO_INSTALL_TARGET_PATH
|
||||
.It MODCARGO_CARGOTOML
|
||||
.It Ev MODCARGO_CARGOTOML
|
||||
Path to cargo manifest.
|
||||
Defaults to
|
||||
.Pa ${WRKSRC}/Cargo.toml .
|
||||
.It MODCARGO_CRATES
|
||||
.It Ev MODCARGO_CRATES
|
||||
Crates that will be downloaded by the module.
|
||||
.It MODCARGO_CRATES_UPDATE
|
||||
.It Ev MODCARGO_CRATES_UPDATE
|
||||
List of crates to update, overriding the version listed in Cargo.lock.
|
||||
.It MODCARGO_FEATURES
|
||||
.It Ev MODCARGO_FEATURES
|
||||
List of features to be used when building.
|
||||
.It MODCARGO_INSTALL_TARGET_PATH
|
||||
.It Ev MODCARGO_INSTALL_TARGET_PATH
|
||||
Path to pass to
|
||||
.Cm cargo install
|
||||
instead of
|
||||
.Pa \&. .
|
||||
Needs to be set for some virtual manifests.
|
||||
.It MODCARGO_VENDOR_DIR
|
||||
.It Ev MODCARGO_VENDOR_DIR
|
||||
Name of the local directory for vendoring crates.
|
||||
Defaults to
|
||||
.Pa ${WRKSRC}/modcargo-crates .
|
||||
.It Ev MODCARGO_WANTLIB
|
||||
Architecture-specific
|
||||
.Ev WANTLIB
|
||||
entries required by all Rust code.
|
||||
Should be used instead of explicit entries for
|
||||
.Dq c ,
|
||||
.Dq pthread ,
|
||||
and
|
||||
.Dq c++abi .
|
||||
.El
|
||||
.Pp
|
||||
This module adds three
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $OpenBSD: port-modules.5,v 1.264 2023/05/09 19:44:06 jmc Exp $
|
||||
.\" $OpenBSD: port-modules.5,v 1.265 2023/08/17 10:51:54 sthen Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2008 Marc Espie
|
||||
.\"
|
||||
|
@ -24,7 +24,7 @@
|
|||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd $Mdocdate: May 9 2023 $
|
||||
.Dd $Mdocdate: August 17 2023 $
|
||||
.Dt PORT-MODULES 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -789,7 +789,7 @@ target (if not already defined).
|
|||
It heeds
|
||||
.Ev NO_BUILD .
|
||||
.It lang/clang
|
||||
Similar to gcc3 and gcc4 modules.
|
||||
Similar to gcc4 module.
|
||||
If architecture is in MODCLANG_ARCHS, the Clang compilers will be
|
||||
put at the front of the path.
|
||||
By default, only C language support is included by this module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue