mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
python-dulwich: use alternatives
This commit is contained in:
parent
4afd31bf87
commit
7b78b10f58
1 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-dulwich'
|
# Template file for 'python-dulwich'
|
||||||
pkgname=python-dulwich
|
pkgname=python-dulwich
|
||||||
version=0.13.0
|
version=0.13.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="dulwich-${version}"
|
wrksrc="dulwich-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
|
@ -15,15 +15,21 @@ license="GPL-2"
|
||||||
distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz"
|
||||||
checksum=8ed35334e22cf93e7dcfd5113d8e262041967fe4c3cead5e262c9102f3e63238
|
checksum=8ed35334e22cf93e7dcfd5113d8e262041967fe4c3cead5e262c9102f3e63238
|
||||||
|
|
||||||
|
alternatives="
|
||||||
|
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2.7
|
||||||
|
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2.7
|
||||||
|
dulwich:dulwich:/usr/bin/dulwich2.7"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# remove extra docs
|
# remove extra docs
|
||||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs
|
||||||
for f in build-3.4/scripts-3.4/*; do
|
|
||||||
vbin ${f} ${f}3.4
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-dulwich_package() {
|
python3.4-dulwich_package() {
|
||||||
|
alternatives="
|
||||||
|
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack3.4
|
||||||
|
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack3.4
|
||||||
|
dulwich:dulwich:/usr/bin/dulwich3.4"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="dulwich"
|
pycompile_module="dulwich"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue