From 769fdeb39a22fc4fee557559654830566634b993 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 16:30:16 +0200 Subject: [PATCH] python-google-api-python-client: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- .../python-google-api-python-client/template | 21 ++++++++++++------- srcpkgs/python3-google-api-python-client | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-google-api-python-client diff --git a/srcpkgs/python-google-api-python-client/template b/srcpkgs/python-google-api-python-client/template index 2dfec16eae..0357ec4c17 100644 --- a/srcpkgs/python-google-api-python-client/template +++ b/srcpkgs/python-google-api-python-client/template @@ -1,13 +1,12 @@ # Template file for 'python-google-api-python-client' pkgname=python-google-api-python-client version=1.5.3 -revision=1 +revision=2 noarch=yes wrksrc="${pkgname#*-}-${version}" build_style=python-module -python_versions="2.7 3.4" pycompile_module="apiclient googleapiclient" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-httplib2 python-oauth2client python-uritemplate python-six" short_desc="Google API client library for Python2" maintainer="Peter Bui " @@ -16,13 +15,19 @@ homepage="https://github.com/google/google-api-python-client/" distfiles="${PYPI_SITE}/g/google-api-python-client/google-api-python-client-${version}.tar.gz" checksum=d916e04969cb1fd6727b9f49290828e9d7162b90c1d5b4be0aed3c171a75d8be -python3.4-google-api-python-client_package() { +python3-google-api-python-client_package() { noarch=yes - depends="python3.4-httplib2 python3.4-oauth2client python3.4-uritemplate python3.4-six" - pycompile_version="3.4" + depends="python3-httplib2 python3-oauth2client python3-uritemplate python3-six" pycompile_module="apiclient googleapiclient" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-google-api-python-client>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-google-api-python-client_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-google-api-python-client>=${version}_${revision}" +} diff --git a/srcpkgs/python3-google-api-python-client b/srcpkgs/python3-google-api-python-client new file mode 120000 index 0000000000..53e8037ccc --- /dev/null +++ b/srcpkgs/python3-google-api-python-client @@ -0,0 +1 @@ +python-google-api-python-client \ No newline at end of file