mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=hatchling
|
|
PYTHON_COMPAT=( python3_{12..15} )
|
|
|
|
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"
|
|
|
|
RDEPEND="
|
|
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
|
dev-python/rawji[${PYTHON_USEDEP}]
|
|
gui-libs/gtk:4[introspection]
|
|
gui-libs/libadwaita:1[introspection]
|
|
media-libs/gexiv2[introspection]
|
|
x11-libs/gdk-pixbuf[jpeg]
|
|
"
|
|
|
|
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
|
|
}
|