2013-12-16 16:56:32 +01:00
|
|
|
# Template file for 'python-pexpect'
|
|
|
|
pkgname=python-pexpect
|
2014-07-13 00:47:14 +02:00
|
|
|
version=3.3
|
2013-12-16 16:56:32 +01:00
|
|
|
revision=1
|
2014-07-13 00:47:14 +02:00
|
|
|
noarch=yes
|
2013-12-16 16:56:32 +01:00
|
|
|
wrksrc="${pkgname/python-}-${version}"
|
|
|
|
build_style=python-module
|
2014-07-13 00:47:14 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
|
|
makedepends="${hostmakedepends}"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="python"
|
2014-07-13 00:47:14 +02:00
|
|
|
pycompile_module="screen.py pxssh.py ANSI.py FSM.py fdpexpect.py pyexpect"
|
|
|
|
short_desc="Python2 module for spawning child applications and controlling them"
|
2013-12-16 16:56:32 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-07-13 00:47:14 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|