Postsync update gentoo

This commit is contained in:
2026-07-28 15:01:03 +02:00
parent 548a53b7c1
commit 3c0936fb14
2 changed files with 25 additions and 23 deletions
+19 -17
View File
@@ -1,20 +1,25 @@
# Copyright 2023-2024 Gentoo Authors
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.15.0
EAPI=8
RUST_MIN_VER="1.92"
CRATES=" "
inherit cargo desktop xdg
DESCRIPTION="A screenshot annotation tool inspired by Swappy and Flameshot."
HOMEPAGE="https://github.com/gabm/satty"
HOMEPAGE="https://github.com/Satty-org/Satty"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/gabm/Satty.git"
EGIT_REPO_URI="https://github.com/Satty-org/Satty.git"
else
SRC_URI="
https://github.com/gabm/Satty/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
https://github.com/Satty-org/Satty/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://codeberg.org/ceres-sees-all/guru-distfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz
"
M_PN=Satty
S="${WORKDIR}/${M_PN}-${PV}"
@@ -22,11 +27,16 @@ else
fi
LICENSE="MPL-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions CC0-1.0 ISC MIT
Unicode-3.0 ZLIB
"
SLOT="0"
RDEPEND="
virtual/rust
dev-libs/glib:2
media-libs/fontconfig
media-libs/libepoxy
media-libs/mesa[opengl]
media-libs/graphene
@@ -39,6 +49,8 @@ RDEPEND="
QA_FLAGS_IGNORED="usr/bin/${PN}"
ECARGO_VENDOR="${WORKDIR}/vendor"
src_unpack() {
if [[ "${PV}" == 9999 ]]; then
git-r3_src_unpack
@@ -48,20 +60,10 @@ src_unpack() {
fi
}
src_configure() {
cargo_src_configure --bin satty
}
src_install() {
dodoc README.md
# if use debug ; then
# cd target/debug || die
# else
# cd target/release || die
# fi
cargo_src_install
dobin "$(cargo_target_dir)"/satty
#Just add the icon and desktop file
doicon "${S}/assets/satty.svg"
domenu "${S}/satty.desktop"