*/*: 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:
Takuya Wakazono 2024-11-12 00:07:37 +09:00
parent 74ff5c5014
commit eb317ddb43
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
61 changed files with 770 additions and 935 deletions

View File

@ -300,6 +300,8 @@ CRATES="
zeroize@1.8.1
"
RUST_MIN_VER="1.74.1"
inherit cargo optfeature shell-completion
DESCRIPTION="Unofficial Bitwarden CLI"
@ -322,7 +324,6 @@ LICENSE+=" openssl"
SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.74"
PATCHES="${FILESDIR}"/${P}-gen-completions.patch

View File

@ -299,6 +299,8 @@ CRATES="
zeroize@1.8.1
"
RUST_MIN_VER="1.75.0"
inherit cargo optfeature shell-completion
DESCRIPTION="Unofficial Bitwarden CLI"
@ -321,7 +323,6 @@ LICENSE+=" openssl"
SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.75.0"
PATCHES="${FILESDIR}"/${PN}-1.11.1-gen-completions.patch

View File

@ -299,6 +299,8 @@ CRATES="
zeroize@1.8.1
"
RUST_MIN_VER="1.75.0"
inherit cargo optfeature shell-completion
DESCRIPTION="Unofficial Bitwarden CLI"
@ -321,7 +323,6 @@ LICENSE+=" openssl"
SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.75.0"
PATCHES="${FILESDIR}"/${PN}-1.11.1-gen-completions.patch

View File

@ -3,6 +3,8 @@
EAPI=8
RUST_MIN_VER="1.75.0"
inherit cargo optfeature shell-completion
DESCRIPTION="Unofficial Bitwarden CLI"
@ -25,7 +27,6 @@ LICENSE+=" openssl"
SLOT="0"
RDEPEND="app-crypt/pinentry"
BDEPEND=">=virtual/rust-1.75.0"
QA_FLAGS_IGNORED="
usr/bin/rbw

View File

@ -3,6 +3,9 @@
EAPI=8
# https://github.com/dani-garcia/vaultwarden/issues/4649
RUST_MAX_VER="1.77.1"
inherit cargo check-reqs readme.gentoo-r1 systemd tmpfiles
DESCRIPTION="Unofficial Bitwarden compatible password manager server written in Rust"
@ -63,6 +66,11 @@ DOC_CONTENTS="\n
Admin interface: http://0.0.0.0:8000/admin
"
pkg_setup() {
check-reqs_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999* ]]; then
# clone vaultwarden

View File

@ -3,6 +3,9 @@
EAPI=8
# https://github.com/dani-garcia/vaultwarden/issues/4649
RUST_MAX_VER="1.77.1"
inherit cargo check-reqs readme.gentoo-r1 systemd tmpfiles
DESCRIPTION="Unofficial Bitwarden compatible password manager server written in Rust"
@ -63,6 +66,11 @@ DOC_CONTENTS="\n
Admin interface: http://0.0.0.0:8000/admin
"
pkg_setup() {
check-reqs_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999* ]]; then
# clone vaultwarden

View File

@ -3,6 +3,9 @@
EAPI=8
# https://github.com/dani-garcia/vaultwarden/issues/4649
RUST_MAX_VER="1.77.1"
inherit cargo check-reqs readme.gentoo-r1 systemd tmpfiles
DESCRIPTION="Unofficial Bitwarden compatible password manager server written in Rust"
@ -63,6 +66,11 @@ DOC_CONTENTS="\n
Admin interface: http://0.0.0.0:8000/admin
"
pkg_setup() {
check-reqs_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999* ]]; then
# clone vaultwarden

View File

@ -63,6 +63,11 @@ DOC_CONTENTS="\n
Admin interface: http://0.0.0.0:8000/admin
"
pkg_setup() {
check-reqs_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999* ]]; then
# clone vaultwarden

View File

@ -323,6 +323,7 @@ CRATES="
zxcvbn@2.2.2
"
PYTHON_COMPAT=( python3_{9..13} )
RUST_MIN_VER="1.75.0"
inherit cargo gnome2-utils meson python-single-r1 xdg
DESCRIPTION="Keep your data safe"
@ -357,7 +358,6 @@ RDEPEND="
x11-libs/pango
"
BDEPEND="
>=virtual/rust-1.75.0
dev-util/itstool
sys-devel/gettext
"
@ -365,6 +365,11 @@ BDEPEND="
# Rust
QA_FLAGS_IGNORED="usr/bin/${PN} usr/bin/${PN}-monitor"
pkg_setup() {
python-single-r1_pkg_setup
rust_pkg_setup
}
src_prepare() {
mv -T "${WORKDIR}/${PN}-v${PV}"* "${S}" || die
sed -i -e "/subdir('src')/d" "${S}/meson.build" || die

View File

@ -87,6 +87,4 @@ LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 MIT Unlicense"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="virtual/rust"
QA_FLAGS_IGNORED="usr/bin/${PN}" # silence warnings

View File

@ -2,8 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
inherit cargo desktop xdg-utils
DESCRIPTION="Lightning-fast and Powerful Code Editor written in Rust "
@ -29,7 +27,6 @@ BDEPEND="
dev-build/cmake
sys-devel/gcc
virtual/pkgconfig
>=virtual/rust-1.64
"
# rust does not use *FLAGS from make.conf, silence portage warning

View File

@ -1,4 +1,4 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -20,7 +20,6 @@ BDEPEND="
dev-build/cmake
sys-devel/gcc
virtual/pkgconfig
>=virtual/rust-1.64
"
src_unpack() {

View File

@ -244,3 +244,8 @@ RDEPEND="${DEPEND}"
CONFIG_CHECK="~CONFIG_INTEL_RAPL"
QA_FLAGS_IGNORED="usr/bin/scaphandre"
pkg_setup() {
linux-info_pkg_setup
rust_pkg_setup
}

View File

@ -465,6 +465,8 @@ CRATES="
zune-inflate@0.2.54
"
RUST_MIN_VER="1.74.0"
inherit cargo shell-completion
DESCRIPTION="Command-line Git information tool"
@ -486,7 +488,6 @@ DEPEND="${RDEPEND}"
BDEPEND="
dev-build/cmake
virtual/pkgconfig
>=virtual/rust-1.74.0
test? (
app-arch/xz-utils
dev-vcs/git
@ -498,6 +499,7 @@ QA_FLAGS_IGNORED="usr/bin/onefetch"
pkg_setup() {
export ZSTD_SYS_USE_PKG_CONFIG=1
rust_pkg_setup
}
src_install() {

View File

@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -205,6 +205,10 @@ CRATES="
xdg@2.5.2
"
# <time@0.3.35
# https://github.com/time-rs/time/issues/693
RUST_MAX_VER="1.79.0"
inherit cargo desktop lua-single xdg-utils
DESCRIPTION="A hackable, minimal, fast TUI file explorer"
@ -231,6 +235,11 @@ DEPEND="
QA_FLAGS_IGNORED="usr/bin/xplr"
pkg_setup() {
lua-single_pkg_setup
rust_pkg_setup
}
src_configure() {
cargo_src_configure --bin xplr
}

View File

@ -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" \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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/.*"

View File

@ -51,7 +51,6 @@ RDEPEND="!bundled-jdk? ( >=virtual/jre-1.8 )
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
virtual/rust
"
src_prepare() {

View File

@ -419,6 +419,7 @@ pkg_setup() {
export OPENSSL_NO_VENDOR=1
export PKG_CONFIG_ALLOW_CROSS=1
export ZSTD_SYS_USE_PKG_CONFIG=1
rust_pkg_setup
}
src_install() {

View File

@ -42,6 +42,7 @@ pkg_setup() {
export OPENSSL_NO_VENDOR=1
export PKG_CONFIG_ALLOW_CROSS=1
export ZSTD_SYS_USE_PKG_CONFIG=1
rust_pkg_setup
}
src_unpack() {

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -69,6 +69,11 @@ BDEPEND="
dev-util/spirv-tools
"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
default_src_unpack
cargo_src_unpack

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -59,6 +59,11 @@ BDEPEND="
dev-util/spirv-tools
"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
default_src_unpack

View File

@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -231,9 +231,6 @@ RDEPEND="
x11-libs/gdk-pixbuf
x11-libs/pango
"
BDEPEND="
virtual/rust
"
IUSE="systemd openrc"
PATCHES="${FILESDIR}/ReGreet-0.1.1-cargo-lock-fix.diff"

View File

@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -33,9 +33,6 @@ RDEPEND="
x11-libs/gdk-pixbuf
x11-libs/pango
"
BDEPEND="
virtual/rust
"
IUSE="systemd openrc"
QA_FLAGS_IGNORED="/usr/bin/regreet"

View File

@ -0,0 +1,436 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.4
EAPI=8
CRATES="
adler@1.0.2
aho-corasick@0.7.19
ansi_term@0.11.0
ansi_term@0.12.1
anyhow@1.0.38
arrayref@0.3.6
arrayvec@0.5.2
atty@0.2.14
autocfg@1.0.1
base64@0.13.0
bitflags@0.9.1
bitflags@1.2.1
blake2b_simd@0.5.11
block@0.1.6
block-buffer@0.9.0
bstr@0.2.15
bumpalo@3.7.0
byteorder@1.4.3
bytes@1.1.0
bzip2@0.4.3
bzip2-sys@0.1.11+1.0.8
calloop@0.9.3
caps@0.5.2
cc@1.0.73
cfg-if@0.1.10
cfg-if@1.0.0
chrono@0.4.19
clap@2.33.3
colored@2.0.0
console@0.14.1
const-sha1@0.2.0
const_format@0.2.14
const_format_proc_macros@0.2.14
constant_time_eq@0.1.5
core-foundation@0.9.1
core-foundation-sys@0.8.2
cpufeatures@0.2.1
crc32fast@1.2.1
crossbeam@0.8.1
crossbeam-channel@0.5.0
crossbeam-deque@0.8.1
crossbeam-epoch@0.9.8
crossbeam-queue@0.3.5
crossbeam-utils@0.8.8
cstr_core@0.2.5
ctor@0.1.20
cty@0.2.2
dbus@0.9.1
dialoguer@0.8.0
diff@0.1.12
difference@2.0.0
digest@0.9.0
dirs@1.0.5
dirs@3.0.1
dirs-sys@0.3.5
dlib@0.5.0
downcast@0.10.0
downcast-rs@1.2.0
dtoa@0.4.7
dunce@1.0.1
either@1.6.1
encode_unicode@0.3.6
encoding_rs@0.8.28
enum-as-inner@0.3.3
errno@0.2.7
errno-dragonfly@0.1.1
filetime@0.2.14
flate2@1.0.20
float-cmp@0.8.0
fnv@1.0.7
foreign-types@0.3.2
foreign-types-shared@0.1.1
form_urlencoded@1.0.1
fragile@1.0.0
fs2@0.4.3
fs_extra@1.2.0
fsevent@0.4.0
fsevent-sys@2.0.1
fuchsia-cprng@0.1.1
fuchsia-zircon@0.3.3
fuchsia-zircon-sys@0.3.3
futf@0.1.4
futures-channel@0.3.17
futures-core@0.3.17
futures-io@0.3.17
futures-macro@0.3.17
futures-sink@0.3.17
futures-task@0.3.17
futures-util@0.3.17
gcc@0.3.55
generic-array@0.14.4
getrandom@0.1.16
getrandom@0.2.2
glob@0.3.0
h2@0.3.4
hashbrown@0.11.2
heck@0.3.2
hermit-abi@0.1.18
hex@0.4.3
html2text@0.2.1
html5ever@0.25.1
http@0.2.4
http-body@0.4.3
httparse@1.5.1
httpdate@1.0.1
hyper@0.14.12
hyper-rustls@0.22.1
hyper-tls@0.5.0
idna@0.2.3
include_dir@0.6.0
include_dir_impl@0.6.0
indexmap@1.7.0
indoc@1.0.3
inotify@0.7.1
inotify-sys@0.1.5
iovec@0.1.4
ipnet@2.3.1
itertools@0.10.0
itoa@0.4.7
js-sys@0.3.53
kernel32-sys@0.2.2
lazy_static@1.4.0
lazycell@1.3.0
libc@0.2.126
libdbus-sys@0.2.1
libloading@0.7.0
linked-hash-map@0.5.4
log@0.4.14
log-panics@2.0.0
mac@0.1.1
mac-notification-sys@0.3.0
malloc_buf@0.0.6
maplit@1.0.2
markdown@0.3.0
markup5ever@0.10.1
markup5ever_rcdom@0.1.0
matches@0.1.9
memchr@2.5.0
memmap2@0.3.1
memoffset@0.6.5
mime@0.3.16
miniz_oxide@0.4.4
mio@0.6.23
mio@0.7.13
mio-extras@2.0.6
miow@0.2.2
miow@0.3.7
mockall@0.9.1
mockall_derive@0.9.1
named_pipe@0.4.1
native-tls@0.2.8
natord@1.0.9
net2@0.2.37
new_debug_unreachable@1.0.4
nix@0.22.3
nix@0.24.2
nom@6.1.2
normalize-line-endings@0.3.0
notify@4.0.17
notify-rust@4.2.2
ntapi@0.3.6
num-integer@0.1.44
num-traits@0.2.14
num_cpus@1.13.0
objc@0.2.7
objc-foundation@0.1.1
objc_id@0.1.1
once_cell@1.8.0
opaque-debug@0.3.0
opener@0.5.0
openssl@0.10.36
openssl-probe@0.1.4
openssl-sys@0.9.66
ordered-float@2.1.1
output_vt100@0.1.2
path-slash@0.1.4
percent-encoding@2.1.0
phf@0.8.0
phf_codegen@0.8.0
phf_generator@0.8.0
phf_shared@0.8.0
pin-project-lite@0.2.7
pin-utils@0.1.0
pipeline@0.5.0
pkg-config@0.3.19
ppv-lite86@0.2.10
precomputed-hash@0.1.1
predicates@1.0.8
predicates-core@1.0.2
predicates-tree@1.0.2
pretty_assertions@0.7.2
proc-macro-hack@0.5.19
proc-macro-nested@0.1.7
proc-macro2@1.0.24
pure-rust-locales@0.5.6
quote@0.3.15
quote@1.0.9
rand@0.4.6
rand@0.7.3
rand@0.8.3
rand_chacha@0.2.2
rand_chacha@0.3.0
rand_core@0.3.1
rand_core@0.4.2
rand_core@0.5.1
rand_core@0.6.2
rand_hc@0.2.0
rand_hc@0.3.0
rand_pcg@0.2.1
rayon@1.5.3
rayon-core@1.9.3
rdrand@0.4.0
redox_syscall@0.1.57
redox_syscall@0.2.5
redox_users@0.3.5
regex@1.5.5
regex-automata@0.1.10
regex-syntax@0.6.27
remove_dir_all@0.5.3
reqwest@0.11.4
ring@0.16.20
rust-argon2@0.8.3
rustls@0.19.1
ryu@1.0.5
same-file@1.0.6
schannel@0.1.19
scoped-tls@1.0.0
scopeguard@1.1.0
sct@0.6.1
security-framework@2.3.1
security-framework-sys@2.3.0
serde@1.0.123
serde_derive@1.0.123
serde_json@1.0.62
serde_urlencoded@0.7.0
serde_yaml@0.8.17
sha2@0.9.6
simplelog@0.9.0
siphasher@0.3.6
slab@0.4.3
smallvec@1.6.1
smithay-client-toolkit@0.15.4
socket2@0.4.1
spin@0.5.2
squote@0.1.2
string_cache@0.8.1
string_cache_codegen@0.5.1
strsim@0.8.0
strum@0.8.0
strum@0.20.0
strum_macros@0.8.0
strum_macros@0.20.1
syn@0.11.11
syn@1.0.67
synom@0.11.3
sys-locale@0.1.0
sysinfo@0.24.5
tempdir@0.3.7
tempfile@3.2.0
tendril@0.4.2
termcolor@1.1.2
terminal_size@0.1.17
test-case@1.1.0
textwrap@0.11.0
thiserror@1.0.23
thiserror-impl@1.0.23
time@0.1.44
tinyvec@1.3.1
tinyvec_macros@0.1.0
tokio@1.10.1
tokio-native-tls@0.3.0
tokio-rustls@0.22.0
tokio-util@0.6.7
toml@0.5.8
tower-service@0.3.1
tracing@0.1.26
tracing-core@0.1.19
treeline@0.1.0
try-lock@0.2.3
typenum@1.14.0
unicase@2.6.0
unicode-bidi@0.3.6
unicode-normalization@0.1.19
unicode-segmentation@1.7.1
unicode-width@0.1.8
unicode-xid@0.0.4
unicode-xid@0.2.1
unindent@0.1.7
untrusted@0.7.1
url@2.2.2
utf-8@0.7.6
vcpkg@0.2.15
vec_map@0.8.2
version_check@0.9.2
wait-timeout@0.2.0
walkdir@2.3.1
want@0.3.0
wasi-0.9.0+wasi-snapshot@preview1
wasi-0.10.0+wasi-snapshot@preview1
wasm-bindgen@0.2.76
wasm-bindgen-backend@0.2.76
wasm-bindgen-futures@0.4.26
wasm-bindgen-macro@0.2.76
wasm-bindgen-macro-support@0.2.76
wasm-bindgen-shared@0.2.76
wayland-client@0.29.5
wayland-commons@0.29.5
wayland-cursor@0.29.5
wayland-protocols@0.29.5
wayland-scanner@0.29.5
wayland-sys@0.29.5
web-sys@0.3.53
webpki@0.21.4
webpki-roots@0.21.1
widestring@0.4.3
winapi@0.2.8
winapi@0.3.9
winapi-build@0.1.1
winapi-i686-pc-windows-gnu@0.4.0
winapi-util@0.1.5
winapi-x86_64-pc-windows-gnu@0.4.0
windows@0.3.1
windows_gen@0.3.1
windows_gen_macros@0.3.1
windows_macros@0.3.1
windows_winmd@0.3.1
windows_winmd_macros@0.3.1
winreg@0.7.0
winreg@0.9.0
winres@0.1.11
winrt@0.4.0
winrt-notification@0.2.2
winrt-notification@0.3.1
ws2_32-sys@0.2.1
xcursor@0.3.3
xml-rs@0.6.1
xml-rs@0.8.3
xml5ever@0.16.1
yaml-rust@0.4.5
zeroize@1.3.0
zip@0.5.13
"
# Needed because espanso-migrate depends on the git version of yaml-rust
declare -A GIT_CRATES=(
[yaml-rust]="https://github.com/federico-terzi/yaml-rust;454221bebabc93307bbf7aa7f556407dd3027363"
)
inherit cargo desktop fcaps linux-info systemd xdg-utils
DESCRIPTION="Cross-platform Text Expander written in Rust"
HOMEPAGE="https://espanso.org"
SRC_URI="
https://github.com/espanso/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 GPL-3 ISC MIT MPL-2.0 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="wayland"
DEPEND="
acct-group/input
dev-libs/openssl
x11-libs/wxGTK
wayland? (
x11-libs/libxkbcommon[wayland]
)
!wayland? (
x11-libs/libX11
x11-libs/libXtst
x11-libs/libxkbcommon[X]
)
"
RDEPEND="${DEPEND}"
QA_FLAGS_IGNORED="usr/bin/${PN}"
pkg_setup() {
CONFIG_CHECK="~INPUT_UINPUT"
ERROR_INPUT_UINPUT="Espanso with Wayland needs the UINPUT"
ERROR_INPUT_UINPUT+=" input device driver to detect user inputs. Without it,"
ERROR_INPUT_UINPUT+=" Espanso will not work as intended"
# Now do the actual checks setup above, but only when using wayland
use wayland && linux-info_pkg_setup
rust_pkg_setup
}
src_configure() {
local myfeatures=(
modulo
native-tls
$(usev wayland)
)
cargo_src_configure --verbose --no-default-features
}
src_compile() {
cargo_src_compile -p "${PN}"
}
src_install() {
cargo_src_install --path "${PN}"
newicon -s 128 "espanso/src/res/linux/icon.png" "${PN}.png"
domenu "espanso/src/res/linux/${PN}.desktop"
# install the systemd-service (user level)
sed -i "s|{{{espanso_path}}}|/usr/bin/espanso|g" "espanso/src/res/linux/systemd.service" || die
systemd_newuserunit "espanso/src/res/linux/systemd.service" "${PN}.service"
}
pkg_postinst() {
# See https://espanso.org/docs/install/linux/#adding-the-required-capabilities
use wayland && fcaps cap_dac_override "usr/bin/${PN}"
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}

View File

@ -1,435 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.4
EAPI=8
CRATES="
adler-1.0.2
aho-corasick-0.7.19
ansi_term-0.11.0
ansi_term-0.12.1
anyhow-1.0.38
arrayref-0.3.6
arrayvec-0.5.2
atty-0.2.14
autocfg-1.0.1
base64-0.13.0
bitflags-0.9.1
bitflags-1.2.1
blake2b_simd-0.5.11
block-0.1.6
block-buffer-0.9.0
bstr-0.2.15
bumpalo-3.7.0
byteorder-1.4.3
bytes-1.1.0
bzip2-0.4.3
bzip2-sys-0.1.11+1.0.8
calloop-0.9.3
caps-0.5.2
cc-1.0.73
cfg-if-0.1.10
cfg-if-1.0.0
chrono-0.4.19
clap-2.33.3
colored-2.0.0
console-0.14.1
const-sha1-0.2.0
const_format-0.2.14
const_format_proc_macros-0.2.14
constant_time_eq-0.1.5
core-foundation-0.9.1
core-foundation-sys-0.8.2
cpufeatures-0.2.1
crc32fast-1.2.1
crossbeam-0.8.1
crossbeam-channel-0.5.0
crossbeam-deque-0.8.1
crossbeam-epoch-0.9.8
crossbeam-queue-0.3.5
crossbeam-utils-0.8.8
cstr_core-0.2.5
ctor-0.1.20
cty-0.2.2
dbus-0.9.1
dialoguer-0.8.0
diff-0.1.12
difference-2.0.0
digest-0.9.0
dirs-1.0.5
dirs-3.0.1
dirs-sys-0.3.5
dlib-0.5.0
downcast-0.10.0
downcast-rs-1.2.0
dtoa-0.4.7
dunce-1.0.1
either-1.6.1
encode_unicode-0.3.6
encoding_rs-0.8.28
enum-as-inner-0.3.3
errno-0.2.7
errno-dragonfly-0.1.1
filetime-0.2.14
flate2-1.0.20
float-cmp-0.8.0
fnv-1.0.7
foreign-types-0.3.2
foreign-types-shared-0.1.1
form_urlencoded-1.0.1
fragile-1.0.0
fs2-0.4.3
fs_extra-1.2.0
fsevent-0.4.0
fsevent-sys-2.0.1
fuchsia-cprng-0.1.1
fuchsia-zircon-0.3.3
fuchsia-zircon-sys-0.3.3
futf-0.1.4
futures-channel-0.3.17
futures-core-0.3.17
futures-io-0.3.17
futures-macro-0.3.17
futures-sink-0.3.17
futures-task-0.3.17
futures-util-0.3.17
gcc-0.3.55
generic-array-0.14.4
getrandom-0.1.16
getrandom-0.2.2
glob-0.3.0
h2-0.3.4
hashbrown-0.11.2
heck-0.3.2
hermit-abi-0.1.18
hex-0.4.3
html2text-0.2.1
html5ever-0.25.1
http-0.2.4
http-body-0.4.3
httparse-1.5.1
httpdate-1.0.1
hyper-0.14.12
hyper-rustls-0.22.1
hyper-tls-0.5.0
idna-0.2.3
include_dir-0.6.0
include_dir_impl-0.6.0
indexmap-1.7.0
indoc-1.0.3
inotify-0.7.1
inotify-sys-0.1.5
iovec-0.1.4
ipnet-2.3.1
itertools-0.10.0
itoa-0.4.7
js-sys-0.3.53
kernel32-sys-0.2.2
lazy_static-1.4.0
lazycell-1.3.0
libc-0.2.126
libdbus-sys-0.2.1
libloading-0.7.0
linked-hash-map-0.5.4
log-0.4.14
log-panics-2.0.0
mac-0.1.1
mac-notification-sys-0.3.0
malloc_buf-0.0.6
maplit-1.0.2
markdown-0.3.0
markup5ever-0.10.1
markup5ever_rcdom-0.1.0
matches-0.1.9
memchr-2.5.0
memmap2-0.3.1
memoffset-0.6.5
mime-0.3.16
miniz_oxide-0.4.4
mio-0.6.23
mio-0.7.13
mio-extras-2.0.6
miow-0.2.2
miow-0.3.7
mockall-0.9.1
mockall_derive-0.9.1
named_pipe-0.4.1
native-tls-0.2.8
natord-1.0.9
net2-0.2.37
new_debug_unreachable-1.0.4
nix-0.22.3
nix-0.24.2
nom-6.1.2
normalize-line-endings-0.3.0
notify-4.0.17
notify-rust-4.2.2
ntapi-0.3.6
num-integer-0.1.44
num-traits-0.2.14
num_cpus-1.13.0
objc-0.2.7
objc-foundation-0.1.1
objc_id-0.1.1
once_cell-1.8.0
opaque-debug-0.3.0
opener-0.5.0
openssl-0.10.36
openssl-probe-0.1.4
openssl-sys-0.9.66
ordered-float-2.1.1
output_vt100-0.1.2
path-slash-0.1.4
percent-encoding-2.1.0
phf-0.8.0
phf_codegen-0.8.0
phf_generator-0.8.0
phf_shared-0.8.0
pin-project-lite-0.2.7
pin-utils-0.1.0
pipeline-0.5.0
pkg-config-0.3.19
ppv-lite86-0.2.10
precomputed-hash-0.1.1
predicates-1.0.8
predicates-core-1.0.2
predicates-tree-1.0.2
pretty_assertions-0.7.2
proc-macro-hack-0.5.19
proc-macro-nested-0.1.7
proc-macro2-1.0.24
pure-rust-locales-0.5.6
quote-0.3.15
quote-1.0.9
rand-0.4.6
rand-0.7.3
rand-0.8.3
rand_chacha-0.2.2
rand_chacha-0.3.0
rand_core-0.3.1
rand_core-0.4.2
rand_core-0.5.1
rand_core-0.6.2
rand_hc-0.2.0
rand_hc-0.3.0
rand_pcg-0.2.1
rayon-1.5.3
rayon-core-1.9.3
rdrand-0.4.0
redox_syscall-0.1.57
redox_syscall-0.2.5
redox_users-0.3.5
regex-1.5.5
regex-automata-0.1.10
regex-syntax-0.6.27
remove_dir_all-0.5.3
reqwest-0.11.4
ring-0.16.20
rust-argon2-0.8.3
rustls-0.19.1
ryu-1.0.5
same-file-1.0.6
schannel-0.1.19
scoped-tls-1.0.0
scopeguard-1.1.0
sct-0.6.1
security-framework-2.3.1
security-framework-sys-2.3.0
serde-1.0.123
serde_derive-1.0.123
serde_json-1.0.62
serde_urlencoded-0.7.0
serde_yaml-0.8.17
sha2-0.9.6
simplelog-0.9.0
siphasher-0.3.6
slab-0.4.3
smallvec-1.6.1
smithay-client-toolkit-0.15.4
socket2-0.4.1
spin-0.5.2
squote-0.1.2
string_cache-0.8.1
string_cache_codegen-0.5.1
strsim-0.8.0
strum-0.8.0
strum-0.20.0
strum_macros-0.8.0
strum_macros-0.20.1
syn-0.11.11
syn-1.0.67
synom-0.11.3
sys-locale-0.1.0
sysinfo-0.24.5
tempdir-0.3.7
tempfile-3.2.0
tendril-0.4.2
termcolor-1.1.2
terminal_size-0.1.17
test-case-1.1.0
textwrap-0.11.0
thiserror-1.0.23
thiserror-impl-1.0.23
time-0.1.44
tinyvec-1.3.1
tinyvec_macros-0.1.0
tokio-1.10.1
tokio-native-tls-0.3.0
tokio-rustls-0.22.0
tokio-util-0.6.7
toml-0.5.8
tower-service-0.3.1
tracing-0.1.26
tracing-core-0.1.19
treeline-0.1.0
try-lock-0.2.3
typenum-1.14.0
unicase-2.6.0
unicode-bidi-0.3.6
unicode-normalization-0.1.19
unicode-segmentation-1.7.1
unicode-width-0.1.8
unicode-xid-0.0.4
unicode-xid-0.2.1
unindent-0.1.7
untrusted-0.7.1
url-2.2.2
utf-8-0.7.6
vcpkg-0.2.15
vec_map-0.8.2
version_check-0.9.2
wait-timeout-0.2.0
walkdir-2.3.1
want-0.3.0
wasi-0.9.0+wasi-snapshot-preview1
wasi-0.10.0+wasi-snapshot-preview1
wasm-bindgen-0.2.76
wasm-bindgen-backend-0.2.76
wasm-bindgen-futures-0.4.26
wasm-bindgen-macro-0.2.76
wasm-bindgen-macro-support-0.2.76
wasm-bindgen-shared-0.2.76
wayland-client-0.29.5
wayland-commons-0.29.5
wayland-cursor-0.29.5
wayland-protocols-0.29.5
wayland-scanner-0.29.5
wayland-sys-0.29.5
web-sys-0.3.53
webpki-0.21.4
webpki-roots-0.21.1
widestring-0.4.3
winapi-0.2.8
winapi-0.3.9
winapi-build-0.1.1
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.5
winapi-x86_64-pc-windows-gnu-0.4.0
windows-0.3.1
windows_gen-0.3.1
windows_gen_macros-0.3.1
windows_macros-0.3.1
windows_winmd-0.3.1
windows_winmd_macros-0.3.1
winreg-0.7.0
winreg-0.9.0
winres-0.1.11
winrt-0.4.0
winrt-notification-0.2.2
winrt-notification-0.3.1
ws2_32-sys-0.2.1
xcursor-0.3.3
xml-rs-0.6.1
xml-rs-0.8.3
xml5ever-0.16.1
yaml-rust-0.4.5
zeroize-1.3.0
zip-0.5.13
"
# Needed because espanso-migrate depends on the git version of yaml-rust
declare -A GIT_CRATES=(
[yaml-rust]="https://github.com/federico-terzi/yaml-rust;454221bebabc93307bbf7aa7f556407dd3027363"
)
inherit cargo desktop fcaps linux-info systemd xdg-utils
DESCRIPTION="Cross-platform Text Expander written in Rust"
HOMEPAGE="https://espanso.org"
SRC_URI="
https://github.com/espanso/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)
"
# License set may be more restrictive as OR is not respected
# use cargo-license for a more accurate license picture
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 GPL-3 ISC MIT MPL-2.0 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="wayland"
DEPEND="
acct-group/input
dev-libs/openssl
x11-libs/wxGTK
wayland? (
x11-libs/libxkbcommon[wayland]
)
!wayland? (
x11-libs/libX11
x11-libs/libXtst
x11-libs/libxkbcommon[X]
)
"
RDEPEND="${DEPEND}"
QA_FLAGS_IGNORED="usr/bin/${PN}"
pkg_setup() {
CONFIG_CHECK="~INPUT_UINPUT"
ERROR_INPUT_UINPUT="Espanso with Wayland needs the UINPUT"
ERROR_INPUT_UINPUT+=" input device driver to detect user inputs. Without it,"
ERROR_INPUT_UINPUT+=" Espanso will not work as intended"
# Now do the actual checks setup above, but only when using wayland
use wayland && linux-info_pkg_setup
}
src_configure() {
local myfeatures=(
modulo
native-tls
$(usev wayland)
)
cargo_src_configure --verbose --no-default-features
}
src_compile() {
cargo_src_compile -p "${PN}"
}
src_install() {
cargo_src_install --path "${PN}"
newicon -s 128 "espanso/src/res/linux/icon.png" "${PN}.png"
domenu "espanso/src/res/linux/${PN}.desktop"
# install the systemd-service (user level)
sed -i "s|{{{espanso_path}}}|/usr/bin/espanso|g" "espanso/src/res/linux/systemd.service" || die
systemd_newuserunit "espanso/src/res/linux/systemd.service" "${PN}.service"
}
pkg_postinst() {
# See https://espanso.org/docs/install/linux/#adding-the-required-capabilities
use wayland && fcaps cap_dac_override "usr/bin/${PN}"
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}

View File

@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.12.1
@ -406,6 +406,7 @@ pkg_setup() {
# Now do the actual checks setup above, but only when using wayland
use wayland && linux-info_pkg_setup
rust_pkg_setup
}
src_configure() {

View File

@ -47,7 +47,6 @@ DEPEND="${RDEPEND}
"
BDEPEND="
virtual/pkgconfig
>=virtual/rust-1.74.0
"
QA_FLAGS_IGNORED="usr/bin/.*"

View File

@ -234,7 +234,6 @@ LICENSE="MPL-2.0"
SLOT="0"
RDEPEND="
virtual/rust
dev-libs/glib:2
media-libs/fontconfig
media-libs/libepoxy

View File

@ -25,7 +25,6 @@ LICENSE="MPL-2.0"
SLOT="0"
RDEPEND="
virtual/rust
dev-libs/glib:2
media-libs/fontconfig
media-libs/libepoxy

View File

@ -194,6 +194,9 @@ CRATES="
"
PYTHON_COMPAT=( python3_{10..12} )
# <time@0.3.35
# https://github.com/time-rs/time/issues/693
RUST_MAX_VER="1.79.0"
inherit cargo python-any-r1
@ -222,6 +225,11 @@ RDEPEND="${DEPEND}
QA_FLAGS_IGNORED="usr/bin/silicon"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
cargo_src_unpack

View File

@ -402,7 +402,6 @@ BDEPEND="
app-alternatives/ninja
>=dev-build/meson-1.1.1
>=dev-libs/appstream-glib-0.8.2
>=virtual/rust-1.69.0
test? ( || ( dev-lang/rust[clippy]
dev-lang/rust-bin[clippy] ) )
"

View File

@ -426,6 +426,8 @@ CRATES="
zvariant_utils@1.0.1
"
RUST_MIN_VER="1.76.0"
inherit cargo gnome2-utils meson xdg
DESCRIPTION="Stream movies and TV shows from Jellyfin"
@ -452,9 +454,6 @@ DEPEND="
gui-libs/gtk
gui-libs/libadwaita
"
BDEPEND="
>=virtual/rust-1.76.0
"
# Rust
QA_FLAGS_IGNORED="usr/bin/${PN}"

View File

@ -435,6 +435,8 @@ CRATES="
zvariant_utils@1.0.1
"
RUST_MIN_VER="1.76.0"
inherit cargo gnome2-utils meson xdg
DESCRIPTION="Stream movies and TV shows from Jellyfin"
@ -470,9 +472,6 @@ DEPEND="
>=gui-libs/gtk-4.0.0:4
>=gui-libs/libadwaita-1.4.0:1
"
BDEPEND="
>=virtual/rust-1.76.0
"
# Rust
QA_FLAGS_IGNORED="usr/bin/${PN}"

View File

@ -0,0 +1,64 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo meson xdg gnome2-utils
DESCRIPTION="GTK4 screen recorder for Wayland"
HOMEPAGE="https://github.com/SeaDve/Kooha/"
SRC_URI="https://github.com/SeaDve/Kooha/releases/download/v${PV}/kooha-${PV}.tar.xz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="x264 vaapi test"
RESTRICT="!test? ( test )"
DEPEND="
x264? ( >=media-libs/x264-0.0.20220222
>=media-libs/gst-plugins-ugly-1.20.6 )
>=media-libs/gstreamer-1.20.6
>=media-libs/gst-plugins-base-1.20.6
vaapi? ( >=media-plugins/gst-plugins-vaapi-1.20.6 )
>=dev-libs/glib-2.76.3
>=gui-libs/gtk-4.10.4
>=gui-libs/libadwaita-1.3.3
>=media-libs/libpulse-15.0[glib]
>=media-video/pipewire-0.3.77-r1[gstreamer]
>=sys-apps/xdg-desktop-portal-1.16.0-r1
"
RDEPEND="${DEPEND}"
BDEPEND="
app-alternatives/ninja
>=dev-build/meson-1.1.1
>=dev-libs/appstream-glib-0.8.2
test? ( || ( dev-lang/rust[clippy]
dev-lang/rust-bin[clippy] ) )
"
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"
BUILD_DIR="${S}/build"
src_prepare() {
default
sed -i \
-e '/^gnome.post_install(/,/)/d' \
meson.build \
|| die
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

View File

@ -1,213 +0,0 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
aho-corasick@0.7.19
android_system_properties@0.1.5
ansi_term@0.12.1
anyhow@1.0.65
atomic_refcell@0.1.8
autocfg@1.1.0
bitflags@1.3.2
block@0.1.6
bumpalo@3.11.0
cairo-rs@0.16.7
cairo-sys-rs@0.16.3
cc@1.0.73
cfg-expr@0.10.3
cfg-if@1.0.0
chrono@0.4.22
color_quant@1.1.0
core-foundation-sys@0.8.3
field-offset@0.3.4
fragile@2.0.0
futures-channel@0.3.24
futures-core@0.3.24
futures-executor@0.3.24
futures-io@0.3.24
futures-macro@0.3.24
futures-task@0.3.24
futures-util@0.3.24
gdk-pixbuf@0.16.7
gdk-pixbuf-sys@0.16.3
gdk4@0.5.4
gdk4-sys@0.5.4
gdk4-wayland@0.5.4
gdk4-wayland-sys@0.5.4
gdk4-x11@0.5.4
gdk4-x11-sys@0.5.4
gettext-rs@0.7.0
gettext-sys@0.21.3
gif@0.12.0
gio@0.16.7
gio-sys@0.16.3
glib@0.15.12
glib@0.16.7
glib-macros@0.15.11
glib-macros@0.16.3
glib-sys@0.15.10
glib-sys@0.16.3
gobject-sys@0.15.10
gobject-sys@0.16.3
graphene-rs@0.16.3
graphene-sys@0.16.3
gsettings-macro@0.1.14
gsk4@0.5.4
gsk4-sys@0.5.4
gst-plugin-gif@0.9.2
gst-plugin-gtk4@0.9.3
gst-plugin-version-helper@0.7.3
gstreamer@0.19.4
gstreamer-audio@0.19.4
gstreamer-audio-sys@0.19.4
gstreamer-base@0.19.3
gstreamer-base-sys@0.19.3
gstreamer-pbutils@0.19.2
gstreamer-pbutils-sys@0.19.2
gstreamer-sys@0.19.4
gstreamer-video@0.19.4
gstreamer-video-sys@0.19.4
gtk4@0.5.4
gtk4-macros@0.5.4
gtk4-sys@0.5.4
heck@0.4.0
iana-time-zone@0.1.48
js-sys@0.3.60
lazy_static@1.4.0
libadwaita@0.2.1
libadwaita-sys@0.2.1
libc@0.2.132
libpulse-binding@2.26.0
libpulse-glib-binding@2.25.1
libpulse-mainloop-glib-sys@1.19.2
libpulse-sys@1.19.3
locale_config@0.3.0
log@0.4.17
malloc_buf@0.0.6
memchr@2.5.0
memoffset@0.6.5
muldiv@1.0.0
num-derive@0.3.3
num-integer@0.1.45
num-rational@0.4.1
num-traits@0.2.15
objc@0.2.7
objc-foundation@0.1.1
objc_id@0.1.1
once_cell@1.14.0
option-operations@0.5.0
pango@0.16.5
pango-sys@0.16.3
paste@1.0.9
pest@2.3.1
pin-project-lite@0.2.9
pin-utils@0.1.0
pkg-config@0.3.25
pretty-hex@0.3.0
proc-macro-crate@1.2.1
proc-macro-error@1.0.4
proc-macro-error-attr@1.0.4
proc-macro2@1.0.43
quick-xml@0.25.0
quote@1.0.21
regex@1.6.0
regex-syntax@0.6.27
rustc_version@0.3.3
semver@0.11.0
semver-parser@0.10.2
serde@1.0.144
serde_derive@1.0.144
sharded-slab@0.1.4
slab@0.4.7
smallvec@1.9.0
syn@1.0.99
system-deps@6.0.2
temp-dir@0.1.11
thiserror@1.0.35
thiserror-impl@1.0.35
thread_local@1.1.4
toml@0.5.9
tracing@0.1.36
tracing-attributes@0.1.22
tracing-core@0.1.29
tracing-log@0.1.3
tracing-subscriber@0.3.15
ucd-trie@0.1.5
unicode-ident@1.0.4
valuable@0.1.0
version-compare@0.1.0
version_check@0.9.4
wasm-bindgen@0.2.83
wasm-bindgen-backend@0.2.83
wasm-bindgen-macro@0.2.83
wasm-bindgen-macro-support@0.2.83
wasm-bindgen-shared@0.2.83
weezl@0.1.7
winapi@0.3.9
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
"
inherit cargo meson xdg gnome2-utils
DESCRIPTION="GTK4 screen recorder for Wayland"
HOMEPAGE="https://github.com/SeaDve/Kooha/"
SRC_URI="https://github.com/SeaDve/Kooha/releases/download/v${PV}/kooha-${PV}.tar.xz
${cargo_crate_uris}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="x264 vaapi test"
RESTRICT="!test? ( test )"
DEPEND="
x264? ( >=media-libs/x264-0.0.20220222
>=media-libs/gst-plugins-ugly-1.20.6 )
>=media-libs/gstreamer-1.20.6
>=media-libs/gst-plugins-base-1.20.6
vaapi? ( >=media-plugins/gst-plugins-vaapi-1.20.6 )
>=dev-libs/glib-2.76.3
>=gui-libs/gtk-4.10.4
>=gui-libs/libadwaita-1.3.3
>=media-libs/libpulse-15.0[glib]
>=media-video/pipewire-0.3.77-r1[gstreamer]
>=sys-apps/xdg-desktop-portal-1.16.0-r1
"
RDEPEND="${DEPEND}"
BDEPEND="
app-alternatives/ninja
>=dev-build/meson-1.1.1
>=dev-libs/appstream-glib-0.8.2
>=virtual/rust-1.69.0
test? ( || ( dev-lang/rust[clippy]
dev-lang/rust-bin[clippy] ) )
"
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"
BUILD_DIR="${S}/build"
src_prepare() {
default
sed -i \
-e '/^gnome.post_install(/,/)/d' \
meson.build \
|| die
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

View File

@ -474,6 +474,11 @@ declare -A GIT_CRATES=(
[poll-promise]="https://github.com/EmbarkStudios/poll-promise;b493586107b0e508860aa2e9d18049fd8cd9d13f"
)
# <time@0.3.35
# https://github.com/time-rs/time/issues/693
RUST_MAX_VER="1.79.0"
RUST_MIN_VER="1.71.1"
inherit cargo desktop xdg-utils
DESCRIPTION="Tool for rendering OSDs over Walksnail DVR recordings"
@ -485,9 +490,7 @@ LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 GPL
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="${DEPEND}
media-video/ffmpeg"
BDEPEND=">=virtual/rust-1.71.1-r1"
RDEPEND="media-video/ffmpeg"
PATCHES=(
"${FILESDIR}/${P}-version-parse-fix.patch"

View File

@ -3,6 +3,8 @@
EAPI=8
RUST_MIN_VER="1.71.1"
inherit cargo desktop git-r3 xdg-utils
DESCRIPTION="Tool for rendering OSDs over Walksnail DVR recordings"
@ -12,10 +14,7 @@ EGIT_REPO_URI="https://github.com/avsaase/walksnail-osd-tool.git"
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 GPL-3 ISC UbuntuFontLicense-1.0 MIT MPL-2.0 OFL-1.1 Unicode-DFS-2016 Unlicense XC ZLIB"
SLOT="0"
#DEPEND=""
RDEPEND="${DEPEND}
media-video/ffmpeg"
BDEPEND=">=virtual/rust-1.71.1-r1"
RDEPEND="media-video/ffmpeg"
QA_FLAGS_IGNORED="usr/bin/${PN}"

View File

@ -390,6 +390,8 @@ declare -A GIT_CRATES=(
[ruma]='https://github.com/ruma/ruma;ef40b184b7410a93e933b4ad719a72aea1bdd20e;ruma-%commit%/crates/ruma'
)
RUST_MIN_VER="1.75.0"
inherit cargo systemd toolchain-funcs
MY_P="${PN}-v${PV}"
@ -441,7 +443,6 @@ RDEPEND="${DEPEND}
app-misc/ca-certificates
"
BDEPEND="
>=virtual/rust-1.75.0
rocksdb? (
sys-devel/clang
virtual/pkgconfig

View File

@ -390,6 +390,8 @@ declare -A GIT_CRATES=(
[ruma]='https://github.com/ruma/ruma;c06af4385e0e30c48a8e9ca3d488da32102d0db9;ruma-%commit%/crates/ruma'
)
RUST_MIN_VER="1.75.0"
inherit cargo systemd toolchain-funcs
MY_P="${PN}-v${PV}"
@ -441,7 +443,6 @@ RDEPEND="${DEPEND}
app-misc/ca-certificates
"
BDEPEND="
>=virtual/rust-1.75.0
rocksdb? (
sys-devel/clang
virtual/pkgconfig

View File

@ -5,6 +5,8 @@
EAPI=8
RUST_MIN_VER="1.75.0"
inherit cargo git-r3 systemd toolchain-funcs
DESCRIPTION="Matrix homeserver written in Rust"
@ -52,7 +54,6 @@ RDEPEND="${DEPEND}
app-misc/ca-certificates
"
BDEPEND="
>=virtual/rust-1.75.0
rocksdb? (
sys-devel/clang
virtual/pkgconfig

View File

@ -3,7 +3,7 @@
EAPI=8
inherit gnome2-utils meson xdg
inherit gnome2-utils meson rust xdg
PKG_ID=112823190
DESCRIPTION="Chat with your friends on Signal"
@ -50,7 +50,6 @@ BDEPEND="
dev-libs/glib:2
dev-util/blueprint-compiler
sys-devel/gettext
virtual/rust
"
QA_FLAGS_IGNORED="usr/bin/${PN}"

View File

@ -603,6 +603,8 @@ declare -A GIT_CRATES=(
[winit]='https://github.com/iced-rs/winit;254d6b3420ce4e674f516f7a2bd440665e05484d;winit-%commit%'
)
RUST_MIN_VER="1.78.0"
inherit cargo desktop xdg
DESCRIPTION="IRC application written in Rust"
@ -635,7 +637,6 @@ fi
# https://github.com/iced-rs/iced/blob/master/DEPENDENCIES.md
BDEPEND="
virtual/pkgconfig
>=virtual/rust-1.78
"
DEPEND="
dev-libs/expat

View File

@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.5.4
@ -206,7 +206,6 @@ LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 ISC MIT
SLOT="0"
KEYWORDS="~amd64 ~arm64"
PATCHES=( "${FILESDIR}/gdrive-3.90-dep-bump.patch")
BDEPEND="virtual/rust"
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /

View File

@ -439,6 +439,11 @@ PATCHES=(
QA_FLAGS_IGNORED="usr/bin/warp"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_prepare() {
default
python_fix_shebang build-aux/meson-cargo-manifest.py

View File

@ -3,7 +3,7 @@
EAPI=8
inherit gnome2-utils meson xdg
inherit gnome2-utils meson rust xdg
UPLOADHASH="4a5dcb11cec0b0438ad575db08aa755c"
DESCRIPTION="Fragments is an easy to use BitTorrent client"
@ -32,7 +32,6 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
virtual/rust
"
# Rust package

View File

@ -0,0 +1,101 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
atk@0.7.0
atk-sys@0.9.1
bitflags@1.2.1
cairo-rs@0.7.1
cairo-sys-rs@0.9.2
cc@1.0.68
clap@2.33.3
dtoa@0.4.8
fragile@0.3.0
gdk@0.11.0
gdk-pixbuf@0.7.0
gdk-pixbuf-sys@0.9.1
gdk-sys@0.9.1
gio@0.7.0
gio-sys@0.9.1
glib@0.8.2
glib-sys@0.9.1
gobject-sys@0.9.1
gtk@0.7.0
gtk-sys@0.9.2
lazy_static@1.4.0
libc@0.2.97
linked-hash-map@0.5.4
maplit@1.0.2
memmap@0.7.0
pango@0.7.0
pango-sys@0.9.1
pkg-config@0.3.19
proc-macro2@1.0.27
quote@1.0.9
regex@1.3.9
regex-syntax@0.6.25
serde@1.0.126
serde_derive@1.0.126
serde_yaml@0.8.17
syn@1.0.73
textwrap@0.11.0
unicode-width@0.1.8
unicode-xid@0.2.2
winapi@0.3.9
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
xkbcommon@0.4.0
yaml-rust@0.4.5
"
inherit cargo gnome2-utils meson toolchain-funcs xdg
DESCRIPTION="Virtual keyboard supporting Wayland, built primarily for the Librem 5 phone"
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/squeekboard"
SRC_URI="
https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v${PV}/squeekboard-v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
${PYTHON_DEPS}
dev-libs/feedbackd
dev-libs/wayland
dev-libs/wayland-protocols
gnome-base/gnome-desktop
media-fonts/noto-emoji
x11-libs/gtk+:3[wayland]
"
BDEPEND="
dev-util/gtk-doc
dev-util/intltool
virtual/pkgconfig
"
QA_FLAGS_IGNORED="/usr/bin/squeekboard-test-layout"
src_install() {
CC="$(tc-getCC)"
meson_src_install
insinto /usr/bin
doins "${S}/tools/squeekboard-restyled"
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

View File

@ -1,100 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
atk-0.7.0
atk-sys-0.9.1
bitflags-1.2.1
cairo-rs-0.7.1
cairo-sys-rs-0.9.2
cc-1.0.68
clap-2.33.3
dtoa-0.4.8
fragile-0.3.0
gdk-0.11.0
gdk-pixbuf-0.7.0
gdk-pixbuf-sys-0.9.1
gdk-sys-0.9.1
gio-0.7.0
gio-sys-0.9.1
glib-0.8.2
glib-sys-0.9.1
gobject-sys-0.9.1
gtk-0.7.0
gtk-sys-0.9.2
lazy_static-1.4.0
libc-0.2.97
linked-hash-map-0.5.4
maplit-1.0.2
memmap-0.7.0
pango-0.7.0
pango-sys-0.9.1
pkg-config-0.3.19
proc-macro2-1.0.27
quote-1.0.9
regex-1.3.9
regex-syntax-0.6.25
serde-1.0.126
serde_derive-1.0.126
serde_yaml-0.8.17
syn-1.0.73
textwrap-0.11.0
unicode-width-0.1.8
unicode-xid-0.2.2
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-x86_64-pc-windows-gnu-0.4.0
xkbcommon-0.4.0
yaml-rust-0.4.5
"
inherit cargo gnome2-utils meson toolchain-funcs xdg
DESCRIPTION="Virtual keyboard supporting Wayland, built primarily for the Librem 5 phone"
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/squeekboard"
SRC_URI="https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v${PV}/squeekboard-v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" $(cargo_crate_uris ${CRATES})"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
${PYTHON_DEPS}
dev-libs/feedbackd
dev-libs/wayland
dev-libs/wayland-protocols
gnome-base/gnome-desktop
media-fonts/noto-emoji
x11-libs/gtk+:3[wayland]
"
BDEPEND="
dev-util/gtk-doc
dev-util/intltool
virtual/pkgconfig
virtual/rust
"
QA_FLAGS_IGNORED="/usr/bin/squeekboard-test-layout"
src_install() {
CC="$(tc-getCC)"
meson_src_install
insinto /usr/bin
doins "${S}/tools/squeekboard-restyled"
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

View File

@ -1,8 +1,10 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
DESCRIPTION="Bash scripts that integrate bat with various command line tools."
HOMEPAGE="https://github.com/eth-p/bat-extras"
if [[ ${PV} == 9999 ]]; then
@ -34,7 +36,6 @@ RDEPEND="
sys-apps/ripgrep
sys-devel/clang[extra(+)]
sys-libs/ncurses
virtual/rust[rustfmt(+)]
"
src_unpack() {
@ -70,4 +71,6 @@ pkg_postinst() {
einfo "'net-libs/nodejs' is installed in your system, and use 'npm' to install"
einfo "'prettier' (npm i -g prettier). Once 'prettier' is properly installed in"
einfo "your system, remerge this package."
optfeature "Rust code formatting" dev-lang/rust[rustfmt] dev-lang/rust-bin[rustfmt]
}

View File

@ -1,80 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Bash scripts that integrate bat with various command line tools."
HOMEPAGE="https://github.com/eth-p/bat-extras"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/eth-p/bat-extras.git"
RESTRICT="mirror fetch"
else
SRC_URI="https://github.com/eth-p/bat-extras/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
RESTRICT="mirror test"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+man"
DEPEND="
app-shells/bash
sys-apps/bat
dev-util/sh
"
RDEPEND="
${DEPEND}
app-admin/entr
app-shells/fzf
dev-python/black
dev-util/git-delta
dev-vcs/git
sys-apps/eza
sys-apps/ripgrep
sys-devel/clang
sys-libs/ncurses
virtual/rust[rustfmt(+)]
"
src_unpack() {
default
if [[ ${PV} == *9999 ]]; then
git-r3_checkout
fi
}
src_prepare() {
# remove license
rm LICENSE.md || die
# remove contribution document
rm CONTRIBUTING.md || die
default
}
src_compile() {
if use man; then
./build.sh --compress --minify=all --manuals --no-verify || die "build failed"
else
./build.sh --compress --minify=all --no-verify || die "build failed"
fi
}
src_test() {
./test.sh || die "test failed"
}
src_install() {
dobin bin/*
if use man; then
doman man/*
fi
}
pkg_postinst() {
einfo "To enable additional code formatting for 'prettybat' script, ensure"
einfo "'net-libs/nodejs' is installed in your system, and use 'npm' to install"
einfo "'prettier' (npm i -g prettier). Once 'prettier' is properly installed in"
einfo "your system, remerge this pacakge."
}

View File

@ -1,8 +1,10 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
DESCRIPTION="Bash scripts that integrate bat with various command line tools."
HOMEPAGE="https://github.com/eth-p/bat-extras"
if [[ ${PV} == 9999 ]]; then
@ -34,7 +36,6 @@ RDEPEND="
sys-apps/ripgrep
sys-devel/clang[extra(+)]
sys-libs/ncurses
virtual/rust[rustfmt(+)]
"
src_unpack() {
@ -70,4 +71,6 @@ pkg_postinst() {
einfo "'net-libs/nodejs' is installed in your system, and use 'npm' to install"
einfo "'prettier' (npm i -g prettier). Once 'prettier' is properly installed in"
einfo "your system, remerge this package."
optfeature "Rust code formatting" dev-lang/rust[rustfmt] dev-lang/rust-bin[rustfmt]
}

View File

@ -88,7 +88,6 @@ IUSE="man"
KEYWORDS="~amd64"
BDEPEND="
>=virtual/rust-1.66
man? ( virtual/pandoc )
"

View File

@ -330,7 +330,6 @@ DEPEND="
media-libs/libglvnd
media-libs/mesa
sys-apps/dbus
virtual/rust
virtual/udev
x11-libs/cairo
x11-libs/gdk-pixbuf:2
@ -362,6 +361,11 @@ QA_FLAGS_IGNORED="
usr/bin/missioncenter-gatherer
"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
unpack ${P}.tar.bz2
unpack nvtop-${NVTOP_COMMIT}.tar.gz

View File

@ -272,7 +272,6 @@ DEPEND="
media-libs/libglvnd
media-libs/mesa
sys-apps/dbus
virtual/rust
virtual/udev
x11-libs/cairo
x11-libs/gdk-pixbuf:2
@ -305,6 +304,11 @@ QA_FLAGS_IGNORED="
usr/bin/missioncenter-gatherer
"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
unpack ${P}.tar.bz2
unpack nvtop-${NVTOP_COMMIT}.tar.gz

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -197,21 +197,15 @@ HOMEPAGE="https://github.com/pop-os/system76-power"
SRC_URI="
https://github.com/pop-os/system76-power/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)
${CARGO_CRATE_URIS}
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
DEPEND="sys-apps/systemd"
RDEPEND="${DEPEND}"
BDEPEND="virtual/rust"
src_unpack() {
cargo_src_unpack
}
src_prepare() {
default
@ -220,14 +214,6 @@ src_prepare() {
cargo_gen_config
}
src_configure() {
cargo_src_configure
}
src_compile() {
cargo_src_compile
}
src_install() {
default
elog "Enable the service: 'systemctl enable --now com.system76.PowerDaemon.service'"

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -197,21 +197,15 @@ HOMEPAGE="https://github.com/pop-os/system76-power"
SRC_URI="
https://github.com/pop-os/system76-power/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)
${CARGO_CRATE_URIS}
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
DEPEND="sys-apps/systemd"
RDEPEND="${DEPEND}"
BDEPEND="virtual/rust"
src_unpack() {
cargo_src_unpack
}
src_prepare() {
default
@ -220,14 +214,6 @@ src_prepare() {
cargo_gen_config
}
src_configure() {
cargo_src_configure
}
src_compile() {
cargo_src_compile
}
src_install() {
default
elog "Enable the service: 'systemctl enable --now com.system76.PowerDaemon.service'"

View File

@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -15,7 +15,6 @@ KEYWORDS=""
DEPEND="sys-apps/systemd"
RDEPEND="${DEPEND}"
BDEPEND="virtual/rust"
src_unpack(){
git-r3_src_unpack