diff --git a/app-misc/mat2/Manifest b/app-misc/mat2/Manifest index c59a9b5b6..6cf2961a3 100644 --- a/app-misc/mat2/Manifest +++ b/app-misc/mat2/Manifest @@ -1,2 +1,2 @@ -DIST mat2-0.11.0.tar.gz 10151787 BLAKE2B c55d04fe7d49e8515bc5bc3ebfad4c71ddec670e5efed9855545bc32374661bb92501fb5910a599f27d97a3089a44f983c983cb82572ab153602d38e39682164 SHA512 8396a32b409b83cc4158546f92d458bc8a62e5aabd2c452402ac6185c2efdeff8794a7e1e45a8e39e9eaba31e256a303ca0be38b65fd43f11e7b07d1ea8b2f06 DIST mat2-0.13.0.tar.gz 11784441 BLAKE2B 5f864a1b2dcce8d6e466fccfc66ad42ac079443b6668daaaf82c2870cddfa1b1227ed842431b2550e8e9435a58831b5b97782c89ac8e55da6573f2087cace09d SHA512 398732e2093c3167a2bb30325bbe5c738f8ac1c36213c63163a02a45b1005cde912f88318655e79276fac8df63c8fee41772eb0e3a53895c20d9c7ba3be16c6c +DIST mat2-0.13.3.tar.gz 11782599 BLAKE2B 26ace57f5ac8ba2444a389615cb89f30e27a89f2e704620dcf0e0999f9643d7b46f6a920ead1ee747c1ac7f818cdb3fe0dcd3acf3b370545414aefd7e1c3850c SHA512 48405de214b69e6d6fe818580ce758817632a4a3ab6cc6b73e7c13d0db2d5cd75a4ffffab22ce1b5dc73a6cc03da9436e44e290f74700027277ec18db023a6fb diff --git a/app-misc/mat2/files/pyproject.patch b/app-misc/mat2/files/pyproject.patch new file mode 100644 index 000000000..583d00e6a --- /dev/null +++ b/app-misc/mat2/files/pyproject.patch @@ -0,0 +1,8 @@ +--- a/pyproject.toml 2023-02-24 04:36:46.000000000 +0800 ++++ b/pyproject.toml.new 2023-03-30 17:42:09.737128934 +0800 +@@ -1,4 +1,5 @@ + [project] ++version = "CURRENT_VERSION" + name = "mat" + readme = "README.md" + requires-python = ">=3.9" diff --git a/app-misc/mat2/mat2-0.13.0.ebuild b/app-misc/mat2/mat2-0.13.0.ebuild index 733905890..2ae56d918 100644 --- a/app-misc/mat2/mat2-0.13.0.ebuild +++ b/app-misc/mat2/mat2-0.13.0.ebuild @@ -32,7 +32,7 @@ RDEPEND="${DEPEND} dev-libs/glib exif? ( media-libs/exiftool ) gnome-base/librsvg:2[introspection] - ffmpeg? ( virtual/ffmpeg ) + ffmpeg? ( media-video/ffmpeg ) nautilus? ( dev-python/nautilus-python ) x11-libs/gdk-pixbuf[introspection,jpeg,tiff]" diff --git a/app-misc/mat2/mat2-0.11.0.ebuild b/app-misc/mat2/mat2-0.13.3.ebuild similarity index 83% rename from app-misc/mat2/mat2-0.11.0.ebuild rename to app-misc/mat2/mat2-0.13.3.ebuild index cbac4aa30..f9c994ba6 100644 --- a/app-misc/mat2/mat2-0.11.0.ebuild +++ b/app-misc/mat2/mat2-0.13.3.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) PYTHON_REQ_USE="xml" @@ -12,7 +13,7 @@ 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" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 ~x86" LICENSE="GPL-3" SLOT="0" @@ -24,19 +25,27 @@ RESTRICT="!test? ( test )" DEPEND="${PYTHON_DEPS}" RDEPEND="${DEPEND} + media-libs/mutagen[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + app-text/poppler[introspection,cairo] dev-libs/glib - dev-python/pycairo[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] exif? ( media-libs/exiftool ) gnome-base/librsvg:2[introspection] - ffmpeg? ( virtual/ffmpeg ) - media-libs/mutagen[${PYTHON_USEDEP}] + ffmpeg? ( media-video/ffmpeg ) nautilus? ( dev-python/nautilus-python ) x11-libs/gdk-pixbuf[introspection,jpeg,tiff]" distutils_enable_tests unittest +src_prepare() { + eapply "${FILESDIR}/pyproject.patch" + sed -i "s|CURRENT_VERSION|${PV}|" pyproject.toml || die + + distutils-r1_src_prepare +} + python_install_all() { distutils-r1_python_install_all