media-gfx/decoder: add 0.9.1

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev
2026-05-30 22:13:41 +03:00
parent 48c2a1aee7
commit 6b90b2f775
3 changed files with 123 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST decoder-0.9.0-deps.tar.xz 33127476 BLAKE2B ed8dd51fedee8675445aa32737639cb305313e26c3188d04d65010e42d6c4d7de17f10d6c6a107204a7d1f84059857a72973d9059409707acb8154f162836d00 SHA512 18a8e3b7ef81cbc547c3b29f29f78e86d08348b320c056e9fd3d5a8a8cb8cc9b68f1c2231b02b880733b54f0c6e7e4e04015d9fc1047018de9b12287f1101fc1
DIST decoder-0.9.0.tar.bz2 677020 BLAKE2B 412967453d900780104ec4879d97fd3331b943bb6d2ae1012f8e8fcc786f790d24b82b532298a495307ed83025e804463934cefb89380c18de038f0c0cacf28b SHA512 7d00500d510fe2d602f04f0111d97d55ea592e0c1c568fb9d1fa171535ae3fde50089903ed8c291c17334f2dbede9b105866b55116301260b99b9889b64703a8
DIST decoder-0.9.1-deps.tar.xz 29726872 BLAKE2B 5db1d33b9957f5d14fa3423fa191855c727c6f51f5ed1551a7606200e93f76910d7b3a73e99203c34c5ff4372936afaae9ab7687581676d435e86bc9aa50320f SHA512 50b6180e9428e8516f5447db766e4fd73f31e5fcdf32fa7197abf77cf71dedfeda275df971477430112223192ab2abf17e0d5c6e603d4e40598ae4f3a8668ac3
DIST decoder-0.9.1.tar.bz2 673404 BLAKE2B e3cf2a2b9da951374dbf1b89d9afbd8d44a880becfedfa9040fe149ec85433138bdb957e9627587b5cadb1e9d2b7cda36cb6b3ad264ef938383101e921e36177 SHA512 8e9c4ef1cd1c88dcb6b6175b0f9d3d6c4a7cb1a8265836f726a09eaac928bf3734b7ed05e5cbfc8677c5517aa650b2cf595b0311abff3ef52803a5f96e572583

View File

@@ -0,0 +1,75 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER="1.94.0"
inherit cargo gnome2-utils meson xdg
DESCRIPTION="Scan and Generate QR Codes"
HOMEPAGE="https://gitlab.gnome.org/World/decoder"
SRC_URI="
https://gitlab.gnome.org/World/decoder/-/archive/${PV}/decoder-${PV}.tar.bz2
https://gitlab.com/api/v4/projects/69517529/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/glib:2
gui-libs/gtk:4[wayland]
gui-libs/libadwaita:1
media-libs/graphene
media-libs/gst-plugins-bad:1.0
media-libs/gst-plugins-base:1.0
media-libs/gstreamer:1.0
media-plugins/gst-plugin-gtk4
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-libs/appstream
dev-libs/glib:2
dev-util/desktop-file-utils
dev-util/gtk-update-icon-cache
sys-devel/gettext
debug? ( dev-vcs/git )
"
QA_FLAGS_IGNORED="usr/bin/decoder"
PATCHES=(
"${FILESDIR}/${PN}-0.9.1-remove-the-cargo-test-and-cargo-clippy-tests.patch"
)
src_configure() {
local profile="default"
use debug && profile="development"
local emesonargs=(
-Dprofile="$profile"
)
meson_src_configure
ln -s "${CARGO_HOME}" "${BUILD_DIR}/cargo-home" || die
}
src_test() {
cargo_src_test
meson_src_test --no-suit decoder:cargo-test
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

View File

@@ -0,0 +1,46 @@
From: Pavel Sobolev <contact@paveloom.dev>
Subject: [PATCH] Remove the `cargo test` and `cargo clippy` tests.
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
--- a/src/meson.build
+++ b/src/meson.build
@@ -57,37 +57,3 @@ cargo_build = custom_target(
'cp', cargo_target / rust_target / meson.project_name(), '@OUTPUT@',
]
)
-
-cargo_extra_options = [
- cargo_build_options,
- '--all-targets',
- '--all-features',
- '--workspace',
-]
-
-cargo_test_options = cargo_extra_options
-test(
- 'cargo-test',
- cargo,
- args: [
- 'test',
- cargo_test_options,
- ],
- env: cargo_env,
- timeout: 400,
-)
-
-cargo_clippy_options = [
- cargo_extra_options,
- cargo_clippy_deny_warnings,
-]
-test(
- 'cargo-clippy',
- cargo,
- args: [
- 'clippy',
- cargo_clippy_options,
- ],
- env: cargo_env,
- timeout: 400, # cargo might take a bit of time sometimes
-)