python-jsonschema: update to 2.5.1
This commit is contained in:
parent
365625f3c3
commit
4fb7c685d1
@ -1,11 +1,12 @@
|
|||||||
# Template file for 'python-jsonschema'
|
# Template file for 'python-jsonschema'
|
||||||
pkgname=python-jsonschema
|
pkgname=python-jsonschema
|
||||||
version=2.4.0
|
version=2.5.1
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="jsonschema-${version}"
|
wrksrc="jsonschema-${version}"
|
||||||
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"
|
depends="python-setuptools"
|
||||||
pycompile_module="jsonschema"
|
pycompile_module="jsonschema"
|
||||||
short_desc="Implementation of JSON Schema for Python2"
|
short_desc="Implementation of JSON Schema for Python2"
|
||||||
@ -13,31 +14,28 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|||||||
homepage="https://github.com/Julian/jsonschema"
|
homepage="https://github.com/Julian/jsonschema"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||||
checksum=1298a2f1b2f4c4a7b921cccd159e4e42f6d7b0fb75c86c0cdecfc71f061833fa
|
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||||
|
|
||||||
post_extract() {
|
pre_build() {
|
||||||
cp -a ${wrksrc} /tmp/jsonschema-2.7
|
cp -a ${wrksrc} /tmp/jsonschema-2.7
|
||||||
cp -a ${wrksrc} /tmp/jsonschema-3.4
|
cp -a ${wrksrc} /tmp/jsonschema-3.4
|
||||||
mv /tmp/jsonschema-{2.7,3.4} ${wrksrc}
|
mv /tmp/jsonschema-{2.7,3.4} ${wrksrc}
|
||||||
}
|
|
||||||
pre_build() {
|
cd jsonschema-3.4
|
||||||
cd ${wrksrc}/jsonschema-3.4
|
|
||||||
sed -i 's,\(jsonschema\) =,\13 =,' setup.py
|
sed -i 's,\(jsonschema\) =,\13 =,' setup.py
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
cd ${wrksrc}/jsonschema-2.7
|
for pyver in $python_versions; do
|
||||||
python setup.py build
|
cd ${wrksrc}/jsonschema-${pyver}
|
||||||
|
python${pyver} setup.py build
|
||||||
cd ${wrksrc}/jsonschema-3.4
|
done
|
||||||
python3.4 setup.py build
|
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${wrksrc}/jsonschema-2.7
|
for pyver in $python_versions; do
|
||||||
python setup.py install --root=${DESTDIR}
|
cd ${wrksrc}/jsonschema-${pyver}
|
||||||
vlicense COPYING
|
python${pyver} setup.py install --root=${DESTDIR}
|
||||||
|
done
|
||||||
cd ${wrksrc}/jsonschema-3.4
|
vlicense COPYING LICENSE
|
||||||
python3.4 setup.py install --root=${DESTDIR}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-jsonschema_package() {
|
python3.4-jsonschema_package() {
|
||||||
@ -49,6 +47,6 @@ python3.4-jsonschema_package() {
|
|||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/jsonschema3
|
vmove usr/bin/jsonschema3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vlicense ${wrksrc}/COPYING
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user