From ae4c95b450d2ea66587eb1c22e15f2099fd437b8 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 22:13:35 +0200 Subject: [PATCH] mutagen: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/mutagen/template | 47 ++++++++++++++++++++++------------------ srcpkgs/python3-mutagen | 1 + 2 files changed, 27 insertions(+), 21 deletions(-) create mode 120000 srcpkgs/python3-mutagen diff --git a/srcpkgs/mutagen/template b/srcpkgs/mutagen/template index 9f4a645961f..9c2ac9679e5 100644 --- a/srcpkgs/mutagen/template +++ b/srcpkgs/mutagen/template @@ -1,11 +1,10 @@ # Template file for 'mutagen' pkgname=mutagen version=1.34.1 -revision=1 +revision=2 noarch=yes build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-devel python3.4-devel" +hostmakedepends="python-devel python3-devel" makedepends="${hostmakedepends}" depends="python" pycompile_module="mutagen" @@ -17,28 +16,34 @@ distfiles="${PYPI_SITE}/m/mutagen/mutagen-${version}.tar.gz" checksum=aacd667ef1f4fa7b7c201f36b2a6eda1ead3c92331017601d8082af62a7ee461 alternatives=" - mutagen:mid3cp:/usr/bin/mid3cp2.7 - mutagen:mid3iconv:/usr/bin/mid3iconv2.7 - mutagen:mid3v2:/usr/bin/mid3v22.7 - mutagen:moggsplit:/usr/bin/moggsplit2.7 - mutagen:mutagen-inspect:/usr/bin/mutagen-inspect2.7 - mutagen:mutagen-pony:/usr/bin/mutagen-pony2.7" + mutagen:mid3cp:/usr/bin/mid3cp2 + mutagen:mid3iconv:/usr/bin/mid3iconv2 + mutagen:mid3v2:/usr/bin/mid3v22 + mutagen:moggsplit:/usr/bin/moggsplit2 + mutagen:mutagen-inspect:/usr/bin/mutagen-inspect2 + mutagen:mutagen-pony:/usr/bin/mutagen-pony2" -python3.4-mutagen_package() { +python3-mutagen_package() { alternatives=" - mutagen:mid3cp:/usr/bin/mid3cp3.4 - mutagen:mid3iconv:/usr/bin/mid3iconv3.4 - mutagen:mid3v2:/usr/bin/mid3v23.4 - mutagen:moggsplit:/usr/bin/moggsplit3.4 - mutagen:mutagen-inspect:/usr/bin/mutagen-inspect3.4 - mutagen:mutagen-pony:/usr/bin/mutagen-pony3.4" + mutagen:mid3cp:/usr/bin/mid3cp3 + mutagen:mid3iconv:/usr/bin/mid3iconv3 + mutagen:mid3v2:/usr/bin/mid3v23 + mutagen:moggsplit:/usr/bin/moggsplit3 + mutagen:mutagen-inspect:/usr/bin/mutagen-inspect3 + mutagen:mutagen-pony:/usr/bin/mutagen-pony3" noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="mutagen" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-mutagen>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* } } +python3.4-mutagen_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-mutagen>=${version}_${revision}" +} diff --git a/srcpkgs/python3-mutagen b/srcpkgs/python3-mutagen new file mode 120000 index 00000000000..7e10650b42d --- /dev/null +++ b/srcpkgs/python3-mutagen @@ -0,0 +1 @@ +mutagen \ No newline at end of file