2016-01-02 22:25:59 +01:00
|
|
|
# Template file for 'python-docopt'
|
|
|
|
pkgname=python-docopt
|
|
|
|
version=0.6.2
|
2016-01-09 20:09:14 +01:00
|
|
|
revision=2
|
2016-01-02 22:25:59 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="docopt-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python"
|
2016-01-09 20:09:14 +01:00
|
|
|
pycompile_module="docopt.py"
|
|
|
|
short_desc="Pythonic argument parser, that will make you smile (Python2)"
|
2016-01-02 22:25:59 +01:00
|
|
|
maintainer="Sergi Alvarez <pancake@nopcode.org>"
|
|
|
|
homepage="http://docopt.org/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="${PYPI_SITE}/d/docopt/docopt-${version}.tar.gz"
|
|
|
|
checksum=49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE-MIT
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-docopt_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4"
|
|
|
|
pycompile_version="3.4"
|
2016-01-09 20:09:14 +01:00
|
|
|
pycompile_module="docopt.py"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2016-01-02 22:25:59 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
vlicense LICENSE-MIT
|
|
|
|
}
|
|
|
|
}
|