# Template file for 'python-pbr'
pkgname=python-pbr
version=1.9.1
revision=2
noarch=yes
wrksrc="pbr-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="pbr"
short_desc="Python2 build reasonableness"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.python.org/pypi/pbr"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=3997406c90894ebf3d1371811c1e099721440a901f946ca6dc4383350403ed51
alternatives="pbr:pbr:/usr/bin/pbr2.7"

python3.4-pbr_package() {
	noarch=yes
	depends="python3.4"
	pycompile_version="3.4"
	pycompile_module="pbr"
	short_desc="${short_desc/Python2/Python3.4}"
	alternatives="pbr:pbr:/usr/bin/pbr3.4"
	pkg_install() {
		vmove usr/bin/pbr3.4
		vmove usr/lib/python3.4
	}
}
