void-packages/srcpkgs/python-future/template
2017-08-28 06:34:27 +02:00

50 lines
1.5 KiB
Bash

# Template file for 'python-future'
pkgname=python-future
version=0.16.0
revision=2
noarch=yes
wrksrc="future-${version}"
build_style=python-module
pycompile_module="_dummy_thread _markupbase _thread builtins
copyreg future html http libfuturize libpasteurize past queue reprlib
socketserver tkinter winreg xmlrpc"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Clean single-source support for Python 3 and 2 (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://python-future.org/"
license="MIT"
distfiles="${PYPI_SITE}/f/future/future-${version}.tar.gz"
checksum=e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb
alternatives="
future:futurize:/usr/bin/futurize2
future:pasteurize:/usr/bin/pasteurize2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-future_package() {
alternatives="
future:futurize:/usr/bin/futurize3
future:pasteurize:/usr/bin/pasteurize3"
noarch=yes
replaces="python3.4-future>=0"
pycompile_module="_dummy_thread _markupbase _thread builtins
copyreg future html http libfuturize libpasteurize past queue reprlib
socketserver tkinter winreg xmlrpc"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}
python3.4-future_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-future>=${version}_${revision}"
}