From 69c480c3228e3c7f4700568b5536fd9550c25f91 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 13 Jul 2014 00:47:14 +0200 Subject: [PATCH] python-pexpect: update to 3.3; add python3.4 subpkg Fix license. --- srcpkgs/python-pexpect/template | 41 +++++++++++++++++++++++++-------- srcpkgs/python3.4-pexpect | 1 + 2 files changed, 32 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/python3.4-pexpect diff --git a/srcpkgs/python-pexpect/template b/srcpkgs/python-pexpect/template index 85938796c2a..c3432228ee9 100644 --- a/srcpkgs/python-pexpect/template +++ b/srcpkgs/python-pexpect/template @@ -1,17 +1,38 @@ # Template file for 'python-pexpect' pkgname=python-pexpect -version=3.0 +version=3.3 revision=1 +noarch=yes wrksrc="${pkgname/python-}-${version}" build_style=python-module -hostmakedepends="python" -makedepends="python-devel" -noarch=yes -pycompile_module="screen.py pxssh.py ANSI.py FSM.py fdpexpect.py pyexpect" +python_versions="2.7 3.4" +hostmakedepends="python-devel python3.4-devel" +makedepends="${hostmakedepends}" depends="python" -short_desc="Python module for spawning child applications and controlling them" +pycompile_module="screen.py pxssh.py ANSI.py FSM.py fdpexpect.py pyexpect" +short_desc="Python2 module for spawning child applications and controlling them" maintainer="Juan RP " -homepage="http://pexpect.readthedocs.org/en/latest/" -license="MIT" -distfiles="http://pypi.python.org/packages/source/p/${pkgname/python-/}/${pkgname/python-/}-${version}.tar.gz" -checksum=1d6cee0fa5ab212f9ddac9852bab0df5fff11a173ed1bfde9346d5c8aa42d14c +homepage="http://pexpect.readthedocs.org/" +license="ISC" +distfiles="https://pypi.python.org/packages/source/p/${pkgname/python-/}/${pkgname/python-/}-${version}.tar.gz" +checksum=dfea618d43e83cfff21504f18f98019ba520f330e4142e5185ef7c73527de5ba + +pre_build() { + sed -i '1d' pexpect/FSM.py +} + +post_install() { + vlicense LICENSE +} + +python3.4-pexpect_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="screen.py pxssh.py ANSI.py FSM.py fdpexpect.py pyexpect" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE + } +} diff --git a/srcpkgs/python3.4-pexpect b/srcpkgs/python3.4-pexpect new file mode 120000 index 00000000000..1ad8b9136c4 --- /dev/null +++ b/srcpkgs/python3.4-pexpect @@ -0,0 +1 @@ +python-pexpect \ No newline at end of file