python-jsonschema: get rid of vcversioner
This commit is contained in:
parent
9784279b57
commit
cf09f1d9ae
1 changed files with 9 additions and 3 deletions
|
@ -1,13 +1,12 @@
|
||||||
# Template file for 'python-jsonschema'
|
# Template file for 'python-jsonschema'
|
||||||
pkgname=python-jsonschema
|
pkgname=python-jsonschema
|
||||||
version=2.5.1
|
version=2.5.1
|
||||||
revision=3
|
revision=4
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="jsonschema-${version}"
|
wrksrc="jsonschema-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
python-vcversioner python3.4-vcversioner"
|
|
||||||
depends="python-setuptools python-functools32"
|
depends="python-setuptools python-functools32"
|
||||||
pycompile_module="jsonschema"
|
pycompile_module="jsonschema"
|
||||||
short_desc="Implementation of JSON Schema for Python2"
|
short_desc="Implementation of JSON Schema for Python2"
|
||||||
|
@ -17,6 +16,13 @@ license="MIT"
|
||||||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||||
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i setup.py \
|
||||||
|
-e '/setup_requires/d' \
|
||||||
|
-e '/vcversioner/d' \
|
||||||
|
-e "/name=/a\
|
||||||
|
version=\"${version}\","
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4}
|
cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4}
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/jsonschema
|
replace_interpreter python ${DESTDIR}/usr/bin/jsonschema
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue