Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jun 2021 20:26:57 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a2caf6497c94 - main - textproc/py-mathics-pygments: new port used by math/mathicsscript
Message-ID:  <202106062026.156KQvR6025476@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

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

commit a2caf6497c9414c185d6546a1fa3704ccc6d7e5e
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2021-06-06 17:53:35 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2021-06-06 20:26:26 +0000

    textproc/py-mathics-pygments: new port used by math/mathicsscript
    
    This is a lexer and highlighter for Mathematica/Wolfram Language source
    code using the pygments engine.
---
 textproc/Makefile                      |  6 +-----
 textproc/py-mathics-pygments/Makefile  | 27 +++++++++++++++++++++++++++
 textproc/py-mathics-pygments/distinfo  |  3 +++
 textproc/py-mathics-pygments/pkg-descr | 19 +++++++++++++++++++
 textproc/py-mathics-pygments/pkg-plist | 16 ++++++++++++++++
 5 files changed, 66 insertions(+), 5 deletions(-)

diff --git a/textproc/Makefile b/textproc/Makefile
index 590331447214..f8d4284abfe4 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -648,7 +648,6 @@
     SUBDIR += p5-PPIx-QuoteLike
     SUBDIR += p5-PPIx-Regexp
     SUBDIR += p5-PPIx-Utilities
-    SUBDIR += p5-PPIx-Utils
     SUBDIR += p5-Parse-ANSIColor-Tiny
     SUBDIR += p5-Parse-BooleanLogic
     SUBDIR += p5-Parse-CSV
@@ -1288,7 +1287,6 @@
     SUBDIR += py-gambit-elasticsearch
     SUBDIR += py-genshi
     SUBDIR += py-gensim
-    SUBDIR += py-gi-docgen
     SUBDIR += py-googletrans
     SUBDIR += py-grako
     SUBDIR += py-guess-language
@@ -1306,7 +1304,6 @@
     SUBDIR += py-j2cli
     SUBDIR += py-jc
     SUBDIR += py-jinja2-cli
-    SUBDIR += py-jq
     SUBDIR += py-jsonslicer
     SUBDIR += py-jsx-lexer
     SUBDIR += py-jtextfsm
@@ -1327,6 +1324,7 @@
     SUBDIR += py-markuppy
     SUBDIR += py-markups
     SUBDIR += py-markupsafe
+    SUBDIR += py-mathics-pygments
     SUBDIR += py-mdit-py-plugins
     SUBDIR += py-misaka
     SUBDIR += py-mistune
@@ -1611,7 +1609,6 @@
     SUBDIR += rubygem-hikidoc
     SUBDIR += rubygem-html-pipeline
     SUBDIR += rubygem-html-pipeline27
-    SUBDIR += rubygem-html-proofer
     SUBDIR += rubygem-html2text
     SUBDIR += rubygem-htmlentities
     SUBDIR += rubygem-ini
@@ -1799,7 +1796,6 @@
     SUBDIR += sl-hyphen
     SUBDIR += sl-mythes
     SUBDIR += slides
-    SUBDIR += slowcat
     SUBDIR += smi
     SUBDIR += smu
     SUBDIR += so-hunspell
diff --git a/textproc/py-mathics-pygments/Makefile b/textproc/py-mathics-pygments/Makefile
new file mode 100644
index 000000000000..63adbc20e9e5
--- /dev/null
+++ b/textproc/py-mathics-pygments/Makefile
@@ -0,0 +1,27 @@
+# Created by: Thierry Thomas <thierry@pompo.net>
+
+PORTNAME=	mathics_pygments
+PORTVERSION=	1.0.2
+CATEGORIES=	textproc math python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Lexer and highlighter for Mathematica/Wolfram Language source code
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0:math/py-mathics-scanner
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}	\
+		${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0:math/py-mathics-scanner
+
+#USE_GITHUB=	yes
+#GH_ACCOUNT=	Mathics3
+
+USES=		python:3.6+
+USE_PYTHON=	distutils  noflavors
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mathics-pygments/distinfo b/textproc/py-mathics-pygments/distinfo
new file mode 100644
index 000000000000..3e5ccbc26960
--- /dev/null
+++ b/textproc/py-mathics-pygments/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1622913478
+SHA256 (mathics_pygments-1.0.2.tar.gz) = 1ab9ca84896e841d9b07d5a3b28b82fb8db22e19f5f777bf0f7892cbc80bdb77
+SIZE (mathics_pygments-1.0.2.tar.gz) = 51951
diff --git a/textproc/py-mathics-pygments/pkg-descr b/textproc/py-mathics-pygments/pkg-descr
new file mode 100644
index 000000000000..14eea4c4de5a
--- /dev/null
+++ b/textproc/py-mathics-pygments/pkg-descr
@@ -0,0 +1,19 @@
+This is a lexer and highlighter for Mathematica/Wolfram Language source code
+using the pygments engine.
+
+It currently supports:
+- All builtin functions in the System context including unicode symbols except
+  those that use characters from the private unicode space (e.g. \[FormalA]).
+- User defined symbols, including those in a context.
+- All operators including unicode operators like U+1D70B (pi).
+- Comments, including multi line and nested.
+- Strings, including multi line and escaped quotes.
+- Patterns, slots (including named slots #name introduced in version 10) and
+  slot sequences.
+- Message names (e.g. the ivar in General::ivar)
+- Numbers including base notation (e.g. 8 ^^ 23 == 19) and scientific notation
+  (e.g. 1 *^ 3 == 1000).
+- Local variables in Block, With and Module
+
+WWW: https://mathics.org/
+WWW: http://github.com/Mathics3/mathics-pygments/
diff --git a/textproc/py-mathics-pygments/pkg-plist b/textproc/py-mathics-pygments/pkg-plist
new file mode 100644
index 000000000000..a88a7af96c9b
--- /dev/null
+++ b/textproc/py-mathics-pygments/pkg-plist
@@ -0,0 +1,16 @@
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__init__.py
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/mathics_pygments/builtins.py
+%%PYTHON_SITELIBDIR%%/mathics_pygments/data/mma-tables.json
+%%PYTHON_SITELIBDIR%%/mathics_pygments/lexer.py
+%%PYTHON_SITELIBDIR%%/mathics_pygments/style.py
+%%PYTHON_SITELIBDIR%%/mathics_pygments/version.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106062026.156KQvR6025476>