mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/blazesym_c: clean up old
Merges: https://codeberg.org/gentoo/gentoo/pulls/1502 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
committed by
Yixun Lan
parent
b586dc8400
commit
199a7a134e
@@ -1,7 +1,5 @@
|
||||
DIST blazesym-capi-v0.1.10-crates.tar.xz 31962480 BLAKE2B eb4c67cc402e81d8f1f1f15a2ed8dc9129131fdcbe15f047eb2fa4fa1317a58af2db8aa29ca0a6e05fb42420606f92a4e23e2b6038f5d17df1e35a4704a40d66 SHA512 670a66ceb182623fec9a8e6e27630c6b7555c17a7477e6ba8f1ac008443f1138c4f8a66c3a79a22071f7d31ab382b276e17f1cfcb3c2bf6634ce248d4215a598
|
||||
DIST blazesym-capi-v0.1.8-crates.tar.xz 31772456 BLAKE2B 7f6ad49e7a123cf8e8811735c1873329987b5687bba267f11d7617798f60c8584c0725eb64dcad8b50eaa7aeb5a4501af7079c5e6bce260a1cf7d29d8c7c8c3d SHA512 fdd5b1e6b9d992dc8f245543b636ec17165ed8d6970f1641f43dd450b582edf677d9c5f52af11437216dd2956663c86ca12ba91ee610e9c2783ebb490c21653f
|
||||
DIST blazesym-capi-v0.1.9-crates.tar.xz 31954584 BLAKE2B 67419b7a9d2ee709234ce944a0e8460cfdbff3a212874e2378db9c64e177bed6e50e4136aa5aa111d97c6b44663eb8b9f22ed6996981a549c7f70fc0d5d75736 SHA512 9a38dfd42dca4b8f0163b068840216ec481e8728a0eb4dcad58ac678af84b06b8f5a60c3a0215cb3a8dea40342339ce7205ede353c626056c8e24500606ef0f0
|
||||
DIST blazesym_c-0.1.10.tar.gz 648856 BLAKE2B 80daea613550ef321f4bf40b01ef8776c13584b5678dff8c3133271f670105f781c900e44d6421c8707bcb007ee91278db847476e1411d94fb3f270c4cf2b5e3 SHA512 42ac9d5fb6731ca7645daae15c6e63ca183c95d38f8b074cea00ecb5d14d8be9d74364456c1ef9db14f626d9701654d748460e8bd3d67b4c4d7f185f9a24b639
|
||||
DIST blazesym_c-0.1.8.tar.gz 642543 BLAKE2B e1c4b80d2705c4f8dd9b946275478fb5906eee06680dac061c0a9371c22e9787c758e1392870ec168b770a49a9aa634fc07e1ee79ec429e8cbd3b7f3d4402d34 SHA512 921ea4e604540e24edaef9efef90a75eee11669bbc6305fba812ee21d9ae6e2891c9e2a15ef4d599281f8d372b769226603d70886c9dbb9936566446da4e398d
|
||||
DIST blazesym_c-0.1.9.tar.gz 644880 BLAKE2B a496a231618f52a5e73bf4b7711b9d798b742deaf7d1fa1d7744a165c7013d16c044afa1145b586a7f0293d4553cfa13f7bf61f45b0654c1641817fc59fb8b81 SHA512 17afe4d8b149c9d32cc712a3ae95df655e0f85048d5391cb95fca925bfb6499330d0e5d5e4d1f15d571339f471408de20f30e0770db247f68e5a753838d4cc85
|
||||
DIST vmlinux.h-a9c092aa771310bf8b00b5018f7d40a1fdb6ec82.gh.tar.gz 3327904 BLAKE2B 4798b43e1b9213fe45b284fe3e4cf86a5df77eddcb4a699dada630c07eddd9365c62ebf09c6ef85d2b304b6dbcbfb3013f7479b32b72fdf836223d36458e9750 SHA512 02f957c3642b22d801c5eac5f9fc70f1606fc045b14fb1b7ffedbd3a3171c53728f664a33d88a90e2a7d15a9fe1c0559a48b52fcbea2e699199e9bc35943fa81
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.14.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
RUST_MIN_VER="1.88.0"
|
||||
|
||||
declare -A GIT_CRATES=(
|
||||
[vmlinux]='https://github.com/libbpf/vmlinux.h;a9c092aa771310bf8b00b5018f7d40a1fdb6ec82;vmlinux.h-%commit%'
|
||||
)
|
||||
|
||||
inherit cargo edo rust-toolchain
|
||||
|
||||
DESCRIPTION="C bindings for blazesym, a library for address symbolization and related tasks"
|
||||
HOMEPAGE="https://github.com/libbpf/blazesym"
|
||||
SRC_URI="
|
||||
https://github.com/libbpf/blazesym/archive/refs/tags/capi-v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/gentoo-crate-dist/blazesym/releases/download/capi-v${PV}/blazesym-capi-v${PV}-crates.tar.xz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
|
||||
# build in the capi subdirectory since cargo has no -C option:
|
||||
# https://github.com/rust-lang/cargo/issues/10098
|
||||
S="${WORKDIR}/blazesym-capi-v${PV}/capi"
|
||||
|
||||
LICENSE="BSD"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
|
||||
CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
# Currently suffers from (at least):
|
||||
# - problems with crate tarball
|
||||
# - hardcoded/hand-rolled multilib assumptions
|
||||
# - possibly sandbox
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND="
|
||||
dev-util/cargo-c
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/lib64/libblazesym_c.so.${PV}"
|
||||
|
||||
src_configure() {
|
||||
CARGO_ARGS=(
|
||||
--library-type=cdylib
|
||||
--prefix="${EPREFIX}"/usr
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
--target="$(rust_abi)"
|
||||
$(usev !debug '--release')
|
||||
)
|
||||
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
edo cargo cbuild "${CARGO_ARGS[@]}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
CARGO_ARGS+=(
|
||||
--destdir="${ED}"
|
||||
)
|
||||
|
||||
edo cargo cinstall "${CARGO_ARGS[@]}" || die
|
||||
}
|
||||
Reference in New Issue
Block a user