diff options
author | Teague Sterling <teaguesterling@users.noreply.github.com> | 2024-09-30 14:57:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 14:57:51 -0700 |
commit | cb43019455ddc8e70c8911d77a21bd26cb6d5e93 (patch) | |
tree | 0de3ff9fe3b081c90b5254e32558d4bfd24cdea8 | |
parent | 5303ec9aa53d1d493bfb446385b15853d56a6c84 (diff) | |
download | spack-cb43019455ddc8e70c8911d77a21bd26cb6d5e93.tar.gz spack-cb43019455ddc8e70c8911d77a21bd26cb6d5e93.tar.bz2 spack-cb43019455ddc8e70c8911d77a21bd26cb6d5e93.tar.xz spack-cb43019455ddc8e70c8911d77a21bd26cb6d5e93.zip |
cbindgen: new package plus 1 dependency package (#45393)
* cbindgen: new package
* Attempting to add rust dependencies for cbindgen
* adding rust-toml min rust version
* Removing dependencies that don't install with cargo
* cleanup broken packages
---------
Signed-off-by: Teague Sterling <teaguesterling@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/cbindgen/package.py | 40 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/rust-clap/package.py | 25 |
2 files changed, 65 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cbindgen/package.py b/var/spack/repos/builtin/packages/cbindgen/package.py new file mode 100644 index 0000000000..62571e30ae --- /dev/null +++ b/var/spack/repos/builtin/packages/cbindgen/package.py @@ -0,0 +1,40 @@ +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) +from spack.package import * + + +class Cbindgen(CargoPackage): + """A project for generating C bindings from Rust code.""" + + homepage = "https://github.com/mozilla/cbindgen" + url = "https://github.com/mozilla/cbindgen/archive/refs/tags/v0.26.0.tar.gz" + + license("MPL", checked_by="teaguesterling") + + version("0.26.0", sha256="b45e1a64875b615702a86ac3084ef69ae32926241cd2b687a30c12474be15105") + version("0.25.0", sha256="363ac6317a5788de8f2b0104a472a747883d4b9126fa119c681879509dbdbc28") + version("0.24.3", sha256="5d693ab54acc085b9f2dbafbcf0a1f089737f7e0cb1686fa338c2aaa05dc7705") + version("0.24.2", sha256="87ec3c355d08107b72c7b330c54aa2531eac0db754659a98bd58a93516ec9d4c") + version("0.24.1", sha256="7a7098a7659e8dd166e170ebaf3dcd0a8a30119ef230100ff66041a6b4fc76ba") + version("0.24.0", sha256="5cbbf8195b3e5bcee6044697b07b54e7701f047e40d7c86190be385736734cd7") + version("0.23.0", sha256="d7b82a7a4bfe7fc61c6f7c1b848bf586fef4057c84960739484b4f743bf0bab6") + version("0.22.0", sha256="f129b453df9d84e6d098a446f928961241b2a0edc29f827addca154049dcc434") + version("0.21.0", sha256="c254a68039a85fe17c63781e67d09b0bfabc32446615d7c63cd805052ac5b155") + version("0.20.0", sha256="70f810d2b9e5a2db570431872c26377813fb27a63d817cb16b2d69fa3741d066") + + depends_on("rust@1.70:") + + depends_on("rust-clap@4.3:") + + # The following dependencies need more work for spack but are handled by Cargo + # They are included for reference and as a TODO once the Cargo packaging system + # improves its support for more complex packages. + # depends_on("rust-heck@0.4:") + # depends_on("rust-toml@0.8.8:") + # depends_on("rust-log@0.4:") + # depends_on("rust-serde@1.0.103+derive") + # depends_on("rust-serde-json@1.0:") + # depends_on("rust-proc-macro2@1.0.60") + # depends_on("rust-indexmap@2.1.0:") diff --git a/var/spack/repos/builtin/packages/rust-clap/package.py b/var/spack/repos/builtin/packages/rust-clap/package.py new file mode 100644 index 0000000000..47d0f47221 --- /dev/null +++ b/var/spack/repos/builtin/packages/rust-clap/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) +from spack.package import * + + +class RustClap(CargoPackage): + """A full featured, fast Command Line Argument Parser for Rust""" + + homepage = "http://docs.rs/clap" + url = "https://github.com/clap-rs/clap/archive/refs/tags/v4.5.10.tar.gz" + + license("APACHE-2.0 OR MIT", checked_by="teaguesterling") + + version("4.5.10", sha256="854c345f8e1af7067edd4777b5862843f1018b3037658d890619f89678cbc033") + version("4.5.9", sha256="8e0de093cd01b8a5be700ea807e937b36c54598a1902004ed64e0635a84c8f69") + version("4.5.8", sha256="9a00964ac907c1d5c0a87ab950ea9b4eec0fec0f5a73d2f5491570d5a9607823") + version("4.5.7", sha256="206001eda043fd7ba4167874ccd069387cfb98f7935cef44e77219c31e8e9ad6") + version("4.5.6", sha256="88763b098a791af71534ccf8e92bcf0b8c591bb0d2f36adabbad272906e79aca") + version("4.5.4", sha256="7023c210ff45a773b588448a803d05bf543cce6e28696967b7f16c0490faaec4") + version("4.5.3", sha256="01b966f804aba86acfd06ecd3f248c6e523227a157a790f6649a20338b0f2109") + version("4.5.2", sha256="10962660f531b5a1bbd4c7c8e96fdf4aef0ecbc8ad64ca3d9995b6e59ced765f") + version("4.5.1", sha256="f3cc654960dc16bf3212d7964e1033c1e4339acbd3ddb1b153ae731b7a9609e7") + version("4.5.0", sha256="c501afbe05a20d86c62206a66cc3c5e0d39e11bc10b000436a2166fc99a56e65") |