sys-devel/b: update SRC_URI

Closes: https://github.com/gentoo/guru/commit/b623184605ea3a7c87776e8693f44ea41f9bf24d#r193705039
Signed-off-by: Shimon Trolles <shimontrolles@gmail.com>
This commit is contained in:
Shimon Trolles committed 2026-07-25 16:57:15 +03:00
1 parent a605ce9f7c
commit d78f80a408
5 files changed
+97 -5

No files matched your search

-1
View File
@@ -1,5 +1,4 @@
DIST b-0_pre20251029.tar.gz 184767 BLAKE2B 3bbea4a34f8ecb45a7d8dd57b6d1e305452a8735de723bc7b2530dcf98250cf25de2b4ff242d079535cecb68725d0b0eb620544062e7145faccce62278d31c37 SHA512 5344adcb6304d93beb87497cb0c862494720cac399ebdcecec99ef72c4757dedd6838b7a4028f10b49ca155e26d934d29e16cafe0dcb929cae67397b02dbf43b
DIST cc-1.3.0.crate 97752 BLAKE2B 54981272327165bbcebcfa03d3800b9c5fa4109c1d9f20409be94136a93a01ecb11987a2609c540e2c9843f325b8e48407209392e6c1fd1e8dc846a2956423c0 SHA512 c9a121ac509203f8cfce800f01904afe5b393bd44098740b9da28b0e39c3066bdf3cffdb855945587f7037d13e297d2a98ad41539bf90027eca5d45d6c9f5919
DIST find-msvc-tools-0.1.9.crate 31493 BLAKE2B 4137592addf8b58f4e4c02be537a72b132b38cecc1c263c2569fe40e2cfe4377e7141679f32661f44ed467cf9723343ab13732b3d6f4a2a84c610d0958e7e30b SHA512 729b3c1c1d520dffe5d88fc8b58e47fb7e86dc26e568fc317eea5ca8de0ee953fbafaa20ab34a6bfb43173bab39a90ff6954c11dab8d545e902305dafc8cd3de
DIST rust.tar.gz 1080 BLAKE2B c29b72f07c8c413334b887610dbf19ac99496e49a87603fbdbf92ca10a6e450d3e23a38eadd528878b93db4fc60e6d233bd2c683e95f945f20aad83eda01489d SHA512 074b7a766272febfcc6cbf0646d18091e823a00f1dbbfed2449664b6a0aa31adaee09846aea64b30f1f4d01ca3e1db7e4cb3ada38178131ad1e76f4d4963fb87
DIST shlex-2.0.1.crate 19332 BLAKE2B db2b6c5f7f30ad2f968d2dd386d39b362b8d19d7e17fffbb7407d6f35a4e165432b6607f3897c66cf8d32bf6e795ba7297080608c855b796fcf19842f4c509fa SHA512 d1bf35e2c5a93c718d3cc395fc4b06cc0c42d4891c0f37247de7e179492478020f0c57ae74c461d5bb1f833b071fd5c036d8d6d6ab8b61be6140cb64ae525921
+3 -4
View File
@@ -17,7 +17,6 @@ HOMEPAGE="https://github.com/bext-lang/b"
GIT_COMMIT="078429a578202d8f6c4c667c780fc48f3711567f"
SRC_URI="
https://github.com/bext-lang/b/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz
https://github.com/masterwolf-git/b/raw/refs/heads/main/rust.tar.gz
${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
@@ -30,9 +29,9 @@ KEYWORDS="~amd64"
src_prepare()
{
cp "${WORKDIR}/Cargo.toml" "${S}/" || die
cp "${WORKDIR}/Cargo.lock" "${S}/" || die
cp "${WORKDIR}/build.rs" "${S}/" || die
cp "${FILESDIR}/Cargo.toml" "${S}/" || die
cp "${FILESDIR}/Cargo.lock" "${S}/" || die
cp "${FILESDIR}/build.rs" "${S}/" || die
default
}
+32
View File
@@ -0,0 +1,32 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "b"
version = "0.0.20260722"
dependencies = [
"cc",
]
[[package]]
name = "cc"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8"
dependencies = [
"find-msvc-tools",
"shlex",
]
[[package]]
name = "find-msvc-tools"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
[[package]]
name = "shlex"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+25
View File
@@ -0,0 +1,25 @@
[package]
name = "b"
version = "0.0.20260722"
edition = "2018"
build = "build.rs"
[[bin]]
name ="b"
path = "src/b.rs"
[[bin]]
name = "bgen"
path = "src/bgen.rs"
[[bin]]
name = "btest"
path = "src/btest.rs"
[build-dependencies]
cc = "1.0"
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
+37
View File
@@ -0,0 +1,37 @@
use std::process::Command;
fn main() {
// 1. Compile C helper stubs
cc::Build::new()
.file("thirdparty/nob.c")
.file("thirdparty/arena.c")
.file("thirdparty/jim.c")
.file("thirdparty/flag.c")
.file("thirdparty/glob.c")
.file("thirdparty/jimp.c")
.file("thirdparty/libc.c")
.file("thirdparty/shlex.c")
.file("thirdparty/time.c")
.include("thirdparty")
.warnings(false)
.compile("crust_thirdparty");
println!("cargo:rustc-link-lib=c");
// 2. Build and run bgen to generate src/codegen/.INDEX.rs if missing
if !std::path::Path::new("src/codegen/.INDEX.rs").exists() {
let status = Command::new("rustc")
.args(&["src/bgen.rs", "-o", "target/bgen_build"])
.status()
.expect("Failed to compile bgen.rs");
if status.success() {
Command::new("./target/bgen_build")
.status()
.expect("Failed to run bgen");
}
}
println!("cargo:rerun-if-changed=thirdparty/");
println!("cargo:rerun-if-changed=src/codegen/");
}