git: 8976ab140811 - main - graphics/py-railroad-diagrams: Add py-railroad-diagrams 1.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 01 Nov 2021 21:29:18 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8976ab14081174e213d0be26b49701e55fdd271f

commit 8976ab14081174e213d0be26b49701e55fdd271f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 21:18:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 21:28:39 +0000

    graphics/py-railroad-diagrams: Add py-railroad-diagrams 1.1.1
    
    Railroad-diagram Generator is a small library for generating railroad diagrams
    (like what JSON.org uses) using SVG, with both JS and Python ports.
    
    Railroad diagrams are a way of visually representing a grammar in a form that is
    more readable than using regular expressions or BNF. They can easily represent
    any context-free grammar, and some more powerful grammars. There are several
    railroad-diagram generators out there, but none of them had the visual appeal I
    wanted, so I wrote my own.
    
    WWW: https://github.com/tabatkins/railroad-diagrams
---
 graphics/Makefile                       |  1 +
 graphics/py-railroad-diagrams/Makefile  | 19 +++++++++++++++++++
 graphics/py-railroad-diagrams/distinfo  |  3 +++
 graphics/py-railroad-diagrams/pkg-descr | 10 ++++++++++
 4 files changed, 33 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index ec030d6fdb6d..ce8ce0bacac2 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -897,6 +897,7 @@
     SUBDIR += py-pyx
     SUBDIR += py-qrencode
     SUBDIR += py-qt5-svg
+    SUBDIR += py-railroad-diagrams
     SUBDIR += py-rasterio
     SUBDIR += py-rasterstats
     SUBDIR += py-rawkit
diff --git a/graphics/py-railroad-diagrams/Makefile b/graphics/py-railroad-diagrams/Makefile
new file mode 100644
index 000000000000..c60182b2d5fc
--- /dev/null
+++ b/graphics/py-railroad-diagrams/Makefile
@@ -0,0 +1,19 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	railroad-diagrams
+PORTVERSION=	1.1.1
+CATEGORIES=	graphics python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Generate SVG railroad syntax diagrams, like on JSON.org
+
+LICENSE=	CC0-1.0
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-railroad-diagrams/distinfo b/graphics/py-railroad-diagrams/distinfo
new file mode 100644
index 000000000000..a62f0af37cfc
--- /dev/null
+++ b/graphics/py-railroad-diagrams/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1635788030
+SHA256 (railroad-diagrams-1.1.1.tar.gz) = 8a1ec227666be2000e76794aa740f77987f1586077aae4d090d2633b3064c976
+SIZE (railroad-diagrams-1.1.1.tar.gz) = 19982
diff --git a/graphics/py-railroad-diagrams/pkg-descr b/graphics/py-railroad-diagrams/pkg-descr
new file mode 100644
index 000000000000..488c03f4dfd3
--- /dev/null
+++ b/graphics/py-railroad-diagrams/pkg-descr
@@ -0,0 +1,10 @@
+Railroad-diagram Generator is a small library for generating railroad diagrams
+(like what JSON.org uses) using SVG, with both JS and Python ports.
+
+Railroad diagrams are a way of visually representing a grammar in a form that is
+more readable than using regular expressions or BNF. They can easily represent
+any context-free grammar, and some more powerful grammars. There are several
+railroad-diagram generators out there, but none of them had the visual appeal I
+wanted, so I wrote my own.
+
+WWW: https://github.com/tabatkins/railroad-diagrams