mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
*/*: update for slotted Rust
guru version of this commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ba4dc61965ef7658a24728841c04c9a1ce4871 Closes: https://bugs.gentoo.org/943170 Closes: https://bugs.gentoo.org/943223 Closes: #260 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -55,16 +55,8 @@ KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
# There are inconsistencies in the minimum required version between
|
||||
# the homepage of the package and the README of its primary consumer,
|
||||
# developed by the same person. Since the primary consumer directly
|
||||
# pulls up the library as a Git submodule (patched out to use a
|
||||
# standalone library in Gentoo) and does not require Rust by itself,
|
||||
# we presume that that is more accurate.
|
||||
BDEPEND=">=virtual/rust-1.50.0"
|
||||
|
||||
src_install() {
|
||||
dolib.a target/$(usex debug debug release)/lib${PN}.a
|
||||
dolib.a "$(cargo_target_dir)"/lib${PN}.a
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins "${FILESDIR}"/dmd_core.pc
|
||||
sed -e "s/%VERSION%/${PV}/g" \
|
||||
@@ -6,8 +6,9 @@
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {18..19} )
|
||||
RUST_NEEDS_LLVM=1
|
||||
|
||||
inherit cargo llvm-r1
|
||||
inherit llvm-r1 cargo
|
||||
|
||||
DESCRIPTION="A C ABI library which exposes Signal protocol logic"
|
||||
HOMEPAGE="https://github.com/signalapp/libsignal"
|
||||
@@ -28,6 +29,11 @@ BDEPEND="
|
||||
$(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}')
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
llvm-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cargo_gen_config
|
||||
@@ -6,8 +6,9 @@
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {18..19} )
|
||||
RUST_NEEDS_LLVM=1
|
||||
|
||||
inherit cargo llvm-r1
|
||||
inherit llvm-r1 cargo
|
||||
|
||||
DESCRIPTION="A C ABI library which exposes Signal protocol logic"
|
||||
HOMEPAGE="https://github.com/signalapp/libsignal"
|
||||
@@ -28,6 +29,11 @@ BDEPEND="
|
||||
$(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}')
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
llvm-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cargo_gen_config
|
||||
@@ -6,8 +6,9 @@
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {18..19} )
|
||||
RUST_NEEDS_LLVM=1
|
||||
|
||||
inherit cargo llvm-r1
|
||||
inherit llvm-r1 cargo
|
||||
|
||||
DESCRIPTION="A C ABI library which exposes Signal protocol logic"
|
||||
HOMEPAGE="https://github.com/signalapp/libsignal"
|
||||
@@ -28,6 +29,11 @@ BDEPEND="
|
||||
$(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}')
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
llvm-r1_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cargo_gen_config
|
||||
@@ -132,6 +132,11 @@ declare -A GIT_CRATES=(
|
||||
[cursive_core]='https://github.com/gyscos/cursive;0a95c82c88c8a791d7fd983e7fb9f568b77551a8;cursive-%commit%/cursive-core'
|
||||
)
|
||||
|
||||
# <time@0.3.35
|
||||
# https://github.com/time-rs/time/issues/693
|
||||
RUST_MAX_VER="1.79.0"
|
||||
RUST_MIN_VER="1.74.0"
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="Thunderbolt/USB4 debugging tools"
|
||||
@@ -151,7 +156,6 @@ RDEPEND="virtual/libudev"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
>=virtual/rust-1.74.0
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/.*"
|
||||
Reference in New Issue
Block a user