mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
media-gfx/decoder: new package, add 0.9.0
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
2
media-gfx/decoder/Manifest
Normal file
2
media-gfx/decoder/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
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
|
||||
72
media-gfx/decoder/decoder-0.9.0.ebuild
Normal file
72
media-gfx/decoder/decoder-0.9.0.ebuild
Normal file
@@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.92"
|
||||
|
||||
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
|
||||
gui-libs/libadwaita:1
|
||||
media-libs/gst-plugins-base:1.0
|
||||
media-libs/gst-plugins-bad: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 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.9.0-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
|
||||
}
|
||||
@@ -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_release_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
|
||||
-)
|
||||
|
||||
12
media-gfx/decoder/metadata.xml
Normal file
12
media-gfx/decoder/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Pavel Sobolev</name>
|
||||
<email>contact@paveloom.dev</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://gitlab.gnome.org/World/decoder/-/work_items</bugs-to>
|
||||
<remote-id type="gnome-gitlab">World/decoder</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user