From 0548da03cb754f00e5e67718554665820eceff64 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 09:28:35 +0200 Subject: [PATCH] python-twitter: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-twitter/template | 22 +++++++++++++--------- srcpkgs/python3-twitter | 1 + 2 files changed, 14 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-twitter diff --git a/srcpkgs/python-twitter/template b/srcpkgs/python-twitter/template index 1ea8c13fe4d..8c244d506e9 100644 --- a/srcpkgs/python-twitter/template +++ b/srcpkgs/python-twitter/template @@ -1,12 +1,11 @@ # Template file for 'python-twitter' pkgname=python-twitter version=3.1 -revision=2 +revision=3 noarch=yes build_style=python-module -python_versions="2.7 3.4" pycompile_module="twitter" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-future python-requests python-requests-oauthlib" short_desc="Python2 wrapper around the Twitter API" maintainer="Peter Bui " @@ -15,14 +14,19 @@ homepage="https://github.com/bear/python-twitter" distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" checksum=74cfdd6a7bbe00fdd08ce582c9a2ee5d6c080e6c228ffced009a356092fbb923 -python3.4-twitter_package() { +python3-twitter_package() { noarch=yes - pycompile_version="3.4" pycompile_module="twitter" - depends="python3.4-future python3.4-requests python3.4-requests-oauthlib" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-twitter>=0" + depends="python3-future python3-requests python3-requests-oauthlib" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } - +python3.4-twitter_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-twitter>=${version}_${revision}" +} diff --git a/srcpkgs/python3-twitter b/srcpkgs/python3-twitter new file mode 120000 index 00000000000..4658fe99242 --- /dev/null +++ b/srcpkgs/python3-twitter @@ -0,0 +1 @@ +python-twitter \ No newline at end of file