From c01604c7f256579d9da3b397a2e3889ad7d3dbd8 Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Sat, 30 Jan 2021 10:56:30 +0100 Subject: [PATCH 1/2] mutagen: update to 1.45.1, drop python2 Mutagen dropped Python2 support in v1.44.0. --- srcpkgs/mutagen/template | 48 +++++++--------------------------------- 1 file changed, 8 insertions(+), 40 deletions(-) diff --git a/srcpkgs/mutagen/template b/srcpkgs/mutagen/template index 552fecc0a50..7fd1c61e8c2 100644 --- a/srcpkgs/mutagen/template +++ b/srcpkgs/mutagen/template @@ -1,49 +1,17 @@ # Template file for 'mutagen' pkgname=mutagen -version=1.43.0 -revision=3 -build_style=python-module +version=1.45.1 +revision=1 +build_style=python3-module pycompile_module="mutagen" -hostmakedepends="python-devel python-setuptools python3-devel - python3-setuptools" +hostmakedepends="python3-devel python3-setuptools" makedepends="$hostmakedepends" -depends="python" -short_desc="Python2 multimedia tagging library" +depends="python3" +checkdepends="python3-flake8 python3-hypothesis python3-pytest" +short_desc="Python3 multimedia tagging library" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/quodlibet/mutagen" changelog="https://raw.githubusercontent.com/quodlibet/mutagen/master/NEWS" distfiles="${PYPI_SITE}/m/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=3a982d39f1b800520a32afdebe3543f972e83a6ddd0c0198739a161ee705b588 - -alternatives=" - mutagen:mid3cp:/usr/bin/mid3cp2 - mutagen:mid3iconv:/usr/bin/mid3iconv2 - mutagen:mid3v2:/usr/bin/python2-mid3v2 - mutagen:moggsplit:/usr/bin/moggsplit2 - mutagen:mutagen-inspect:/usr/bin/mutagen-inspect2 - mutagen:mutagen-pony:/usr/bin/mutagen-pony2" - -post_install() { - # XXX: override the default naming scheme for mid3v2 - cp -a ${DESTDIR}/usr/bin/{,python3-}mid3v2 - mv ${DESTDIR}/usr/bin/{,python2-}mid3v2 -} - -python3-mutagen_package() { - alternatives=" - mutagen:mid3cp:/usr/bin/mid3cp3 - mutagen:mid3iconv:/usr/bin/mid3iconv3 - mutagen:mid3v2:/usr/bin/python3-mid3v2 - mutagen:moggsplit:/usr/bin/moggsplit3 - mutagen:mutagen-inspect:/usr/bin/mutagen-inspect3 - mutagen:mutagen-pony:/usr/bin/mutagen-pony3" - depends="python3" - pycompile_module="mutagen" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/bin/python3-* - vmove usr/lib/python3* - } -} +checksum=6397602efb3c2d7baebd2166ed85731ae1c1d475abca22090b7141ff5034b3e1 From c90b39e4d04d38ac09826d9c69b99ff941c7e912 Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Sat, 30 Jan 2021 10:57:05 +0100 Subject: [PATCH 2/2] python3-mutagen: remove package. Mutagen uses Python3 only since v1.44.0 so there's no need to split packages anymore. --- srcpkgs/python3-mutagen | 1 - srcpkgs/removed-packages/template | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 srcpkgs/python3-mutagen diff --git a/srcpkgs/python3-mutagen b/srcpkgs/python3-mutagen deleted file mode 120000 index 7e10650b42d..00000000000 --- a/srcpkgs/python3-mutagen +++ /dev/null @@ -1 +0,0 @@ -mutagen \ No newline at end of file diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 30b4ac8b2bd..f385a01d6a6 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1 -revision=16 +revision=17 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -167,6 +167,7 @@ replaces=" python-pyenet<=1.3.13.post7_2 python-pyside<=1.2.2_7 python-pytest-relaxed<=1.1.2_2 + python3-mutagen<=1.43.0_3 qimageblitz<=0.0.6_4 r2-bindings<=1.0.1_2 reminiscence<=0.4.6_1