Skip to content

Commit

Permalink
rust-bindgen: add v0.66.0 -> v0.69.4 (spack#45392)
Browse files Browse the repository at this point in the history
* rust-bindgen: add v0.66.0,v0.66.1,v0.68.1,v0.69.0-v0.69.4 & change build system to cargo

Signed-off-by: Teague Sterling <[email protected]>

* fix dep

Signed-off-by: Teague Sterling <[email protected]>

* [@spackbot] updating style on behalf of teaguesterling

* Update var/spack/repos/builtin/packages/rust-bindgen/package.py

Co-authored-by: Alec Scott <[email protected]>

---------

Signed-off-by: Teague Sterling <[email protected]>
Co-authored-by: Alec Scott <[email protected]>
  • Loading branch information
teaguesterling and alecbcs authored Sep 27, 2024
1 parent 9b5f15a commit cdba312
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions var/spack/repos/builtin/packages/rust-bindgen/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,30 @@
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import os

from spack.package import *


class RustBindgen(Package):
class RustBindgen(CargoPackage):
"""The rust programming language toolchain"""

homepage = "https://www.rust-lang.org"
url = "https://github.com/servo/rust-bindgen/archive/v0.20.5.tar.gz"
homepage = "https://rust-lang.github.io/rust-bindgen/"
url = "https://github.com/rust-lang/rust-bindgen/archive/v0.20.5.tar.gz"

license("BSD-3-Clause")

version("0.69.4", sha256="c02ce18b95c4e5021b95b8b461e5dbe6178edffc52a5f555cbca35b910559b5e")
version("0.69.3", sha256="5cdaa156403841e7b286ccbb7b31398c8b49b99f89ebf329457101819aa5eaf0")
version("0.69.2", sha256="78fbb8bd100e145d1effc982eaab21b555ccc3fc1cbe6e734f17cdfe5c33af32")
version("0.69.1", sha256="c10e2806786fb75f05ef32f3f03f4cb7e37bb8e06be5a4a0e95f974fdc567d87")
version("0.69.0", sha256="10790bb9863bff6a6f877b89d9d7cff7eac2ff0f45c1482f5edc9d9d0a82488d")
version("0.68.1", sha256="6a577026184a6f7a99b48f46f2074c83d272d3aadf91c7b94a4c6c34e6acd445")
version("0.66.1", sha256="adedec96f2a00ce835a7c31656e09d6aae6ef55df9ca3d8d65d995f8f2542388")
version("0.66.0", sha256="d2c8e8c1c9fbabecaa1146a02cc3bbbf968931136e7dc94614af06880d291685")
version("0.20.5", sha256="4f5236e7979d262c43267afba365612b1008b91b8f81d1efc6a8a2199d52bb37")

depends_on("cxx", type="build") # generated

extends("rust")
depends_on("llvm")

def install(self, spec, prefix):
env = dict(os.environ)
env["LIBCLANG_PATH"] = os.path.join(spec["llvm"].prefix, "lib")
cargo("install", "--root", prefix, env=env)
def build(self, spec, prefix):
# The carogopackage installer doesn't allow for an option to install from a subdir
# see: https://github.com/rust-lang/cargo/issues/7599
cargo("install", "--root", "out", "bindgen-cli")

0 comments on commit cdba312

Please sign in to comment.