blob: 9fe07320116ab578e31f7a559d307c0432266c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..14} )
inherit desktop distutils-r1 virtualx xdg
DESCRIPTION="GTK4 frontend for rawji, interactive Fujifilm RAF conversion"
HOMEPAGE="https://github.com/p5k369/grawji"
SRC_URI="https://github.com/p5k369/grawji/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="heif jxl"
RDEPEND="
>=dev-python/lsdetect-0.3.0[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/pyusb[${PYTHON_USEDEP}]
>=dev-python/rawji-0.1.0_p20260920[${PYTHON_USEDEP}]
gui-libs/gtk:4[introspection]
gui-libs/libadwaita:1[introspection]
media-libs/gexiv2[introspection]
x11-libs/gdk-pixbuf[jpeg]
heif? ( media-libs/libheif[gdk-pixbuf,x265] )
jxl? ( media-libs/libjxl )
"
EPYTEST_PLUGINS=()
EPYTEST_IGNORE=(
# the pin is replaced by dev-python/rawji here.
tests/test_rawji_pin.py
)
distutils_enable_tests pytest
src_prepare() {
xdg_environment_reset
sed -i 's|"rawji @ git+[^"]*"|"rawji"|' pyproject.toml || die
default
}
src_test() {
virtx distutils-r1_src_test
}
python_install_all() {
distutils-r1_python_install_all
domenu data/io.github.p5k369.grawji.desktop
doicon -s scalable data/io.github.p5k369.grawji.svg
insinto /usr/share/metainfo
doins data/io.github.p5k369.grawji.metainfo.xml
}
|