python-jsonschema: use alternatives
This commit is contained in:
parent
645db400bd
commit
25bc421075
@ -15,6 +15,7 @@ homepage="https://github.com/Julian/jsonschema"
|
||||
license="MIT"
|
||||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema2.7"
|
||||
|
||||
pre_build() {
|
||||
sed -i setup.py \
|
||||
@ -24,8 +25,6 @@ pre_build() {
|
||||
version=\"${version}\","
|
||||
}
|
||||
post_install() {
|
||||
cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4}
|
||||
replace_interpreter python ${DESTDIR}/usr/bin/jsonschema
|
||||
vlicense COPYING LICENSE
|
||||
}
|
||||
|
||||
@ -35,6 +34,7 @@ python3.4-jsonschema_package() {
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="jsonschema"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema3.4"
|
||||
pkg_install() {
|
||||
vmove usr/bin/jsonschema3.4
|
||||
vmove usr/lib/python3.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user