mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/blazesym_c: add 0.1.2
Closes: https://github.com/gentoo/gentoo/pull/43039 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
11908b6a7e
commit
299816fd05
@@ -1,4 +1,6 @@
|
||||
DIST blazesym-capi-v0.1.1-crates.tar.xz 34294836 BLAKE2B 85e163004ac8762b50be99bfd794a59c4eb2e2a11857f0962b19a8a93f78d3d195dbab1f8c629045f08e9d27d70287e50728fbcd1542b34923d756d225b38f9f SHA512 42bec9f03bfaea3bec17674d5b8d99de998b596894952fb960e60db8e979ac5e8d8ea97b9dfe4e73e5f74d67f48f3480e1048268321b5d696cc0525906efc260
|
||||
DIST blazesym-capi-v0.1.2-crates.tar.xz 33483048 BLAKE2B 2837b2210fe83a37e8ea695f2d60104fcd045c47588c788bfb952ecb5dd0886a13a8b3cbeb5aa935c2b2c0d442f6da38692a19f60f621e2e0fc3721505332453 SHA512 740d3bd38b223692d37bcbbe65cfb4ace937baadd3a90d9e82e56dcf13179bccdd72559b3232762fc62dda75e8e65a05206c46f9ef5108b8f78b1e181fe6d88a
|
||||
DIST blazesym_c-0.1.1.tar.gz 597215 BLAKE2B b38eff7ab56f35049a88afecb573596430a45a39b5631b82c05817a844b9db2535d0780ded7242b9ef123fe8871930469f4399c447a80c5b29e5bcf7b28529f9 SHA512 13d597b65f11504ea68299738cecccae3659a87e46bef88fdb848887b5bb59bcd987782d67791d225a9f206d02d302ceff9eb3b07748c5b8c7c84273ca4a3890
|
||||
DIST blazesym_c-0.1.2.tar.gz 605693 BLAKE2B 447b3add4c5ab65f44e25bddaa61a38376b044f04c459617c218146832a0082a020642ff2e44a4f2e89c9f5a13b4f8aec6818c9593e5a25785b02ce7da5b7af8 SHA512 e652cc299d268ea013bb2fd3eb2ecc980ef29655ed65bd00295e20f1db126931530e142dfb444eb03c79cf5abeb1016e8a0b000ac1f01051753bbfef6451c7a5
|
||||
DIST criterion.rs-b913e232edd98780961ecfbae836ec77ede49259.gh.tar.gz 786764 BLAKE2B 007c75791d93d2d24e11a6ca367ab53a45cfb0be67e1d65c4cdee4696709365a9417b4448ffcf44e790bf3582e8e17a15598e5cfff49bcd11cb61e4f8fb1f7b9 SHA512 2374fd2bb86e3c734a054215f5d350f159831c42e8889fba4c59d2d70a90f27eba6869ddb89daee16ce9a7b70d99266cf3e9370d433415ff23b515f3b5d4eb22
|
||||
DIST vmlinux.h-a9c092aa771310bf8b00b5018f7d40a1fdb6ec82.gh.tar.gz 3327904 BLAKE2B 4798b43e1b9213fe45b284fe3e4cf86a5df77eddcb4a699dada630c07eddd9365c62ebf09c6ef85d2b304b6dbcbfb3013f7479b32b72fdf836223d36458e9750 SHA512 02f957c3642b22d801c5eac5f9fc70f1606fc045b14fb1b7ffedbd3a3171c53728f664a33d88a90e2a7d15a9fe1c0559a48b52fcbea2e699199e9bc35943fa81
|
||||
|
||||
73
dev-libs/blazesym_c/blazesym_c-0.1.2.ebuild
Normal file
73
dev-libs/blazesym_c/blazesym_c-0.1.2.ebuild
Normal file
@@ -0,0 +1,73 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.14.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
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