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.
This commit is contained in:
parent
8297b688a4
commit
a2caf6497c
@ -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
|
||||
|
27
textproc/py-mathics-pygments/Makefile
Normal file
27
textproc/py-mathics-pygments/Makefile
Normal file
@ -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>
|
3
textproc/py-mathics-pygments/distinfo
Normal file
3
textproc/py-mathics-pygments/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1622913478
|
||||
SHA256 (mathics_pygments-1.0.2.tar.gz) = 1ab9ca84896e841d9b07d5a3b28b82fb8db22e19f5f777bf0f7892cbc80bdb77
|
||||
SIZE (mathics_pygments-1.0.2.tar.gz) = 51951
|
19
textproc/py-mathics-pygments/pkg-descr
Normal file
19
textproc/py-mathics-pygments/pkg-descr
Normal file
@ -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/
|
16
textproc/py-mathics-pygments/pkg-plist
Normal file
16
textproc/py-mathics-pygments/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user