mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
media-gfx/decoder: add 0.9.1
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
75
media-gfx/decoder/decoder-0.9.1.ebuild
Normal file
75
media-gfx/decoder/decoder-0.9.1.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user