From 25bc4210752b861ece70049f10d33c136d403f57 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 01:37:04 +0200 Subject: [PATCH] python-jsonschema: use alternatives --- srcpkgs/python-jsonschema/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-jsonschema/template b/srcpkgs/python-jsonschema/template index 36851a4cce5..fba912402c5 100644 --- a/srcpkgs/python-jsonschema/template +++ b/srcpkgs/python-jsonschema/template @@ -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