Merge pull request #2591 from blshkv/master

mat2
This commit is contained in:
github-actions[bot] 2025-11-12 11:18:43 +00:00 committed by GitHub
commit 5c0f64561b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 17 deletions

View file

@ -1 +1 @@
DIST mat2-0.13.3.tar.gz 11782599 BLAKE2B 26ace57f5ac8ba2444a389615cb89f30e27a89f2e704620dcf0e0999f9643d7b46f6a920ead1ee747c1ac7f818cdb3fe0dcd3acf3b370545414aefd7e1c3850c SHA512 48405de214b69e6d6fe818580ce758817632a4a3ab6cc6b73e7c13d0db2d5cd75a4ffffab22ce1b5dc73a6cc03da9436e44e290f74700027277ec18db023a6fb
DIST mat2-0.14.0.gh.tar.gz 11544055 BLAKE2B dd209912f659ee95c1d26051003152c09dc97d45680c608dd73b0b3a001411ace437745ce3c465d55461c47cf13e30cfdba533fdf9bdb4e749b8db666616c589 SHA512 7b1f2bab7879e0ac3e60d07c3003ce8b7565c927bb658a7f34c062ee45b2a67f2830a55b518c77e953c80ca2296fed2567b70660c7c0394386616de2d0bc82cc

View file

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -10,14 +10,14 @@ PYTHON_COMPAT=( python3_{12..14} )
inherit desktop distutils-r1 xdg-utils
DESCRIPTION="A handy tool to trash your metadata"
HOMEPAGE="https://0xacab.org/jvoisin/mat2"
SRC_URI="https://0xacab.org/jvoisin/mat2/-/archive/${PV}/${P}.tar.gz"
HOMEPAGE="https://github.com/jvoisin/mat2"
SRC_URI="https://github.com/jvoisin/mat2/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="dolphin ffmpeg +exif nautilus test"
IUSE="dolphin ffmpeg +exif test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}
test? ( exif ffmpeg )"
@ -34,13 +34,14 @@ RDEPEND="${DEPEND}
exif? ( media-libs/exiftool )
gnome-base/librsvg:2[introspection]
ffmpeg? ( media-video/ffmpeg )
nautilus? ( dev-python/nautilus-python )
x11-libs/gdk-pixbuf[introspection,jpeg,tiff]"
# nautilus? ( dev-python/nautilus-python )
distutils_enable_tests unittest
src_prepare() {
eapply "${FILESDIR}/pyproject.patch"
# eapply "${FILESDIR}/pyproject.patch"
sed -i "s|CURRENT_VERSION|${PV}|" pyproject.toml || die
distutils-r1_src_prepare
@ -49,13 +50,13 @@ src_prepare() {
python_install_all() {
distutils-r1_python_install_all
if use nautilus; then
insinto /usr/share/nautilus-python/extensions/
doins nautilus/mat2.py
fi
# if use nautilus; then
# insinto /usr/share/nautilus-python/extensions/
# doins nautilus/mat2.py
# fi
if use dolphin; then
insinto /usr/share/kservices5/ServiceMenus/
insinto /usr/share/kio/servicemenus
doins dolphin/mat2.desktop
fi

View file

@ -2,11 +2,13 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<use>
<flag name="nautilus">Enable nautilus extension</flag>
<flag name="dolphin">Enable dolphin extension</flag>
<flag name="dolphin">add contextual menu for Plasma</flag>
</use>
<upstream>
<remote-id type="github">jvoisin/mat2</remote-id>
</upstream>
</pkgmetadata>