python-grako: fix template

"The only dependencies are on the Python standard library, yet the regex
library will be used if installed, and colorama will be used on trace
output if available. pygraphviz is required for generating diagrams."

Note: grako is dead. See https://bitbucket.org/neogeny/grako.
This commit is contained in:
Alessio Sergi 2018-05-25 10:46:45 +02:00
parent 1d29bb69c3
commit 8e1d58577e
1 changed files with 14 additions and 13 deletions

View File

@ -1,32 +1,33 @@
# Template file for 'python-grako' # Template file for 'python-grako'
pkgname=python-grako pkgname=python-grako
version=3.99.9 version=3.99.9
revision=1 revision=2
build_style=python-module
wrksrc="neogeny-${pkgname/python-/}-275d3c4fe4ac" wrksrc="neogeny-${pkgname/python-/}-275d3c4fe4ac"
hostmakedepends="python-setuptools python3-setuptools" build_style=python-module
# XXX: add python-pygraphviz if it is ever packaged, optional depdendency pycompile_module="grako"
# for generating diagramas hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
depends="python python-regex python-colorama python-yaml python-docutils" makedepends="python-devel python3-devel"
short_desc="Grako that takes EBNF as input, and outputs PEG parsers in Python" depends="python-setuptools"
short_desc="Grammar compiler, EBNF input, PEG/Packrat parser output (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>" maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD" license="BSD-2-Clause"
homepage="https://bitbucket.org/neogeny/grako" homepage="https://bitbucket.org/neogeny/grako"
distfiles="https://bitbucket.org/neogeny/grako/get/${version}.tar.bz2" distfiles="https://bitbucket.org/neogeny/grako/get/${version}.tar.bz2"
checksum=82cc8d601a272106ed3bbc09f37b04b85f21cbe4c8bbebb41bb9d57ac419696f checksum=82cc8d601a272106ed3bbc09f37b04b85f21cbe4c8bbebb41bb9d57ac419696f
pycompile_module="grako" alternatives="grako:grako:/usr/bin/grako2"
noarch=yes
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
post_install() { post_install() {
vlicense LICENSE.txt vlicense LICENSE.txt
} }
python3-grako_package() { python3-grako_package() {
noarch=yes
# python3-regex is ommited due to being an optional dependency
depends="python3 python3-colorama python3-yaml python3-docutils"
pycompile_module="grako" pycompile_module="grako"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}" short_desc="${short_desc/Python2/Python3}"
alternatives="grako:grako:/usr/bin/grako3"
pkg_install() { pkg_install() {
vmove usr/lib/python3* vmove usr/lib/python3*
vmove usr/bin/grako3 vmove usr/bin/grako3