mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
python-Mako: use alternatives
This commit is contained in:
parent
e76318ddea
commit
89abc96046
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Mako'
|
# Template file for 'python-Mako'
|
||||||
pkgname=python-Mako
|
pkgname=python-Mako
|
||||||
version=1.0.4
|
version=1.0.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="Mako-${version}"
|
wrksrc="Mako-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -15,10 +15,9 @@ homepage="http://www.makotemplates.org/"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz"
|
||||||
checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059
|
checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059
|
||||||
|
alternatives="mako:mako-render:/usr/bin/mako-render2.7"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/mako-render{,3.4}
|
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/mako-render
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +27,7 @@ python3.4-Mako_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="mako"
|
pycompile_module="mako"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="mako:mako-render:/usr/bin/mako-render3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/mako-render3.4
|
vmove usr/bin/mako-render3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue