mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-jsonschema: use alternatives
This commit is contained in:
parent
645db400bd
commit
25bc421075
1 changed files with 2 additions and 2 deletions
|
@ -15,6 +15,7 @@ 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=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||||
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema2.7"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i setup.py \
|
sed -i setup.py \
|
||||||
|
@ -24,8 +25,6 @@ pre_build() {
|
||||||
version=\"${version}\","
|
version=\"${version}\","
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4}
|
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/jsonschema
|
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +34,7 @@ python3.4-jsonschema_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="jsonschema"
|
pycompile_module="jsonschema"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/jsonschema3.4
|
vmove usr/bin/jsonschema3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue