void-packages/srcpkgs/python-parsing/template
2017-03-09 18:12:48 +01:00

38 lines
1,004 B
Bash

# Template file for 'python-parsing'
pkgname=python-parsing
version=2.2.0
revision=1
noarch=yes
wrksrc="pyparsing-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="pyparsing.py"
short_desc="Python parsing module (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://pyparsing.wikispaces.com/"
distfiles="${PYPI_SITE}/p/pyparsing/pyparsing-${version}.tar.gz"
checksum=0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04
post_install() {
vlicense LICENSE
}
python3-parsing_package() {
noarch=yes
depends="python3"
pycompile_module="pyparsing.py"
replaces="python3.4-parsing>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-parsing_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-parsing>=${version}_${revision}"
}