From cff801b1e4f03b87b09d9a33757fb7987c00a6de Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 16:33:30 +0200 Subject: [PATCH] python-ecdsa: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-ecdsa/template | 24 ++++++++++++++---------- srcpkgs/python3-ecdsa | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/python3-ecdsa diff --git a/srcpkgs/python-ecdsa/template b/srcpkgs/python-ecdsa/template index c926ede8d3d..dfed0eea07b 100644 --- a/srcpkgs/python-ecdsa/template +++ b/srcpkgs/python-ecdsa/template @@ -1,12 +1,11 @@ # Template file for 'python-ecdsa' pkgname=python-ecdsa version=0.13 -revision=1 +revision=2 noarch=yes wrksrc="${pkgname/python-/}-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-six" pycompile_module="ecdsa" short_desc="Implementation of ECDSA in Python2" @@ -25,15 +24,20 @@ post_install() { vlicense LICENSE } -python3.4-ecdsa_package() { +python3-ecdsa_package() { noarch=yes - depends="python3.4-six" - pycompile_version="3.4" + depends="python3-six" pycompile_module="ecdsa" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-ecdsa>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 - vlicense ${wrksrc}/LICENSE - find ${PKGDESTDIR} -type f -name '*.py' -exec sed -i 's,#! /usr/bin/env python,&3.4,' {} + + vmove usr/lib/python3* + vlicense LICENSE } } +python3.4-ecdsa_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-ecdsa>=${version}_${revision}" +} diff --git a/srcpkgs/python3-ecdsa b/srcpkgs/python3-ecdsa new file mode 120000 index 00000000000..7f15d919f9b --- /dev/null +++ b/srcpkgs/python3-ecdsa @@ -0,0 +1 @@ +python-ecdsa \ No newline at end of file