From 189ca4e2dc844715d143f320f88a3111c6d7984b Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 15 Oct 2017 22:58:04 -0200 Subject: [PATCH] New package: python-grako-3.99.9. Closes #8202. --- srcpkgs/python-grako/template | 35 +++++++++++++++++++++++++++++++++++ srcpkgs/python3-grako | 1 + 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/python-grako/template create mode 120000 srcpkgs/python3-grako diff --git a/srcpkgs/python-grako/template b/srcpkgs/python-grako/template new file mode 100644 index 00000000000..80f8b901d32 --- /dev/null +++ b/srcpkgs/python-grako/template @@ -0,0 +1,35 @@ +# Template file for 'python-grako' +pkgname=python-grako +version=3.99.9 +revision=1 +build_style=python-module +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" +maintainer="maxice8 " +license="BSD" +homepage="https://bitbucket.org/neogeny/grako" +distfiles="https://bitbucket.org/neogeny/grako/get/${version}.tar.bz2" +checksum=82cc8d601a272106ed3bbc09f37b04b85f21cbe4c8bbebb41bb9d57ac419696f +pycompile_module="grako" +noarch=yes + +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" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vmove usr/bin/grako3 + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-grako b/srcpkgs/python3-grako new file mode 120000 index 00000000000..f81736e0b04 --- /dev/null +++ b/srcpkgs/python3-grako @@ -0,0 +1 @@ +python-grako \ No newline at end of file