From 322cb5e916339fb5319cb59453bd82cd5beb6408 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 22:55:40 +0200 Subject: [PATCH] python-pafy: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-pafy/template | 27 ++++++++++++++++----------- srcpkgs/python3-pafy | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-pafy diff --git a/srcpkgs/python-pafy/template b/srcpkgs/python-pafy/template index 4cda698fb66..dcb0e79a1ca 100644 --- a/srcpkgs/python-pafy/template +++ b/srcpkgs/python-pafy/template @@ -1,13 +1,12 @@ # Template file for 'python-pafy' pkgname=python-pafy version=0.5.2 -revision=1 +revision=2 wrksrc="pafy-${version}" noarch=yes -python_versions="2.7 3.4" pycompile_module="pafy" build_style=python-module -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="youtube-dl" short_desc="Python2 library to download YouTube content and retrieve metadata" maintainer="Juan RP " @@ -15,17 +14,23 @@ license="LGPL-3" homepage="https://github.com/np1/pafy" distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz" checksum=c67ed5ac98ba2d65289c6acad690943ec411724171b7fcb4bb7bf16847f613a1 -alternatives="pafy:ytdl:/usr/bin/ytdl2.7" +alternatives="pafy:ytdl:/usr/bin/ytdl2" -python3.4-pafy_package() { +python3-pafy_package() { noarch=yes - pycompile_version="3.4" pycompile_module="pafy" - depends="python3.4-youtube-dl" - short_desc="${short_desc/2/3.4/}" - alternatives="pafy:ytdl:/usr/bin/ytdl3.4" + replaces="python3.4-pafy>=0" + depends="python3-youtube-dl" + short_desc="${short_desc/2/3/}" + alternatives="pafy:ytdl:/usr/bin/ytdl3" pkg_install() { - vmove usr/bin/ytdl3.4 - vmove usr/lib/python3.4 + vmove usr/bin/ytdl3 + vmove usr/lib/python3* } } +python3.4-pafy_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-pafy>=${version}_${revision}" +} diff --git a/srcpkgs/python3-pafy b/srcpkgs/python3-pafy new file mode 120000 index 00000000000..81da0afb146 --- /dev/null +++ b/srcpkgs/python3-pafy @@ -0,0 +1 @@ +python-pafy \ No newline at end of file