From 8e1d58577e7a8f00fe2746e311b40cf2387a1672 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 25 May 2018 10:46:45 +0200 Subject: [PATCH] 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. --- srcpkgs/python-grako/template | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/srcpkgs/python-grako/template b/srcpkgs/python-grako/template index 80f8b901d32..20c012972d4 100644 --- a/srcpkgs/python-grako/template +++ b/srcpkgs/python-grako/template @@ -1,32 +1,33 @@ # Template file for 'python-grako' pkgname=python-grako version=3.99.9 -revision=1 -build_style=python-module +revision=2 wrksrc="neogeny-${pkgname/python-/}-275d3c4fe4ac" -hostmakedepends="python-setuptools python3-setuptools" -# XXX: add python-pygraphviz if it is ever packaged, optional depdendency -# for generating diagramas -depends="python python-regex python-colorama python-yaml python-docutils" -short_desc="Grako that takes EBNF as input, and outputs PEG parsers in Python" +build_style=python-module +pycompile_module="grako" +hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython" +makedepends="python-devel python3-devel" +depends="python-setuptools" +short_desc="Grammar compiler, EBNF input, PEG/Packrat parser output (Python2)" maintainer="maxice8 " -license="BSD" +license="BSD-2-Clause" homepage="https://bitbucket.org/neogeny/grako" distfiles="https://bitbucket.org/neogeny/grako/get/${version}.tar.bz2" checksum=82cc8d601a272106ed3bbc09f37b04b85f21cbe4c8bbebb41bb9d57ac419696f -pycompile_module="grako" -noarch=yes +alternatives="grako:grako:/usr/bin/grako2" +pre_build() { + sed -i '/setup_requires=/d' setup.py +} post_install() { vlicense LICENSE.txt } 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" + depends="python3-setuptools" short_desc="${short_desc/Python2/Python3}" + alternatives="grako:grako:/usr/bin/grako3" pkg_install() { vmove usr/lib/python3* vmove usr/bin/grako3