python-Mako: use alternatives
This commit is contained in:
parent
e76318ddea
commit
89abc96046
@ -1,7 +1,7 @@
|
||||
# Template file for 'python-Mako'
|
||||
pkgname=python-Mako
|
||||
version=1.0.4
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="Mako-${version}"
|
||||
build_style=python-module
|
||||
@ -15,10 +15,9 @@ homepage="http://www.makotemplates.org/"
|
||||
license="MIT"
|
||||
distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz"
|
||||
checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059
|
||||
alternatives="mako:mako-render:/usr/bin/mako-render2.7"
|
||||
|
||||
post_install() {
|
||||
cp -f ${DESTDIR}/usr/bin/mako-render{,3.4}
|
||||
replace_interpreter python ${DESTDIR}/usr/bin/mako-render
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
@ -28,6 +27,7 @@ python3.4-Mako_package() {
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="mako"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="mako:mako-render:/usr/bin/mako-render3.4"
|
||||
pkg_install() {
|
||||
vmove usr/bin/mako-render3.4
|
||||
vmove usr/lib/python3.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user