python-jsonschema: get rid of vcversioner

This commit is contained in:
Alessio Sergi 2016-04-15 23:40:30 +02:00
parent 9784279b57
commit cf09f1d9ae

View file

@ -1,13 +1,12 @@
# Template file for 'python-jsonschema'
pkgname=python-jsonschema
version=2.5.1
revision=3
revision=4
noarch=yes
wrksrc="jsonschema-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools
python-vcversioner python3.4-vcversioner"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-functools32"
pycompile_module="jsonschema"
short_desc="Implementation of JSON Schema for Python2"
@ -17,6 +16,13 @@ license="MIT"
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
pre_build() {
sed -i setup.py \
-e '/setup_requires/d' \
-e '/vcversioner/d' \
-e "/name=/a\
version=\"${version}\","
}
post_install() {
cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4}
replace_interpreter python ${DESTDIR}/usr/bin/jsonschema