python-Pygments: use alternatives
This commit is contained in:
parent
48e59f3106
commit
668855f4ae
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Pygments'
|
# Template file for 'python-Pygments'
|
||||||
pkgname=python-Pygments
|
pkgname=python-Pygments
|
||||||
version=2.1.3
|
version=2.1.3
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="Pygments-${version}"
|
wrksrc="Pygments-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -15,10 +15,9 @@ homepage="http://pygments.org/"
|
||||||
license="2-clause-BSD"
|
license="2-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/Pygments/Pygments-${version}.tar.gz"
|
||||||
checksum=88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
|
checksum=88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
|
||||||
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize2.7"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/pygmentize{,3.4}
|
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/pygmentize
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +27,7 @@ python3.4-Pygments_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="pygments"
|
pycompile_module="pygments"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="pygments:pygmentize:/usr/bin/pygmentize3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pygmentize3.4
|
vmove usr/bin/pygmentize3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue