guru/app-misc/mat2/mat2-0.13.4.ebuild
Anna (cybertailor) Vyalkova bb0aae8ad3
*/*: disable py3.10
Python 3.10 target is scheduled for removal in Gentoo:
https://public-inbox.gentoo.org/gentoo-dev/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/

Sphinx 8.2.0 already dropped support for CPython 3.10 and PyPy 3.10,
leading to multiple CI failures in ::guru.

We can safely remove this target, because GURU is "experimental" and
does not have stable keywords.

Let's not remove "pypy3" right now because
a) There are not many packages using it.
b) So we can see which packages supported PyPy 3.10, and test them with
   PyPy 3.11.

Closes: https://github.com/gentoo/guru/pull/291
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2025-02-21 17:51:14 +05:00

73 lines
1.7 KiB
Bash

# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="xml(+)"
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature verify-sig
DESCRIPTION="Metadata Anonymisation Toolkit: handy tool to trash your metadata"
HOMEPAGE="https://0xacab.org/jvoisin/mat2"
SIG_UPLOAD_HASH="95d1f3782dfc731545fd9b467c594cb2"
SRC_URI="
https://0xacab.org/jvoisin/${PN}/-/archive/${PV}/${P}.tar.gz
verify-sig? ( https://0xacab.org/jvoisin/${PN}/uploads/${SIG_UPLOAD_HASH}/${P}.tar.gz.asc )
"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
# Fixed in bbd5b2817c9d64013e2f5ed670aca8d4738bb484
RESTRICT="test"
RDEPEND="
app-text/poppler[introspection,cairo]
dev-libs/glib:2
dev-python/pycairo:0[${PYTHON_USEDEP}]
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
gnome-base/librsvg[introspection]
media-libs/mutagen:0[${PYTHON_USEDEP}]
x11-libs/gdk-pixbuf:2[introspection,jpeg,tiff]
"
BDEPEND="
verify-sig? ( >sec-keys/openpgp-keys-jvoisin-20200714 )
test? (
media-libs/exiftool:*
media-video/ffmpeg[mp3,vorbis]
)
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jvoisin.asc
DOCS=( doc {CHANGELOG,CONTRIBUTING,INSTALL,README}.md )
distutils_enable_tests unittest
python_prepare_all() {
sed -i '/data_files/d' setup.py || die
distutils-r1_python_prepare_all
}
src_test() {
# Double sandboxing is not possible
if ! has usersandbox ${FEATURES}; then
distutils-r1_src_test
fi
return 0
}
python_install_all() {
distutils-r1_python_install_all
doman doc/mat2.1
}
pkg_postinst() {
optfeature "misc file format support" media-libs/exiftool
optfeature "sandboxing" sys-apps/bubblewrap
optfeature "video support" media-video/ffmpeg
}