textproc/py-mathics-pygments 1.0.4_1 FreeBSD
Lexer and highlighter for Mathematica/Wolfram Language source code
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- textproc, math, python
- Package size
- 76.0 KiB, 417.2 KiB installed
Description
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
See also: https://github.com/Mathics3/mathics-pygments/
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/py-mathics-pygments | 1.0.4_1 |
| DragonFly | textproc/py-mathics-pygments | 1.0.4 |
Install
Binary package:
pkg install py312-mathics_pygments
From the ports tree:
cd /usr/ports/textproc/py-mathics-pygments/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-mathics_pygments>0:textproc/py-mathics-pygments
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.0.4_1 | 1.0.4_1 | 1.0.2 | 1.0.4 | 1.0.4_1 |
| FreeBSD:14:quarterly | 1.0.4_1 | 1.0.4_1 | n/a | 1.0.4 | 1.0.4_1 |
| FreeBSD:15:latest | 1.0.4_1 | 1.0.4_1 | n/a | 1.0.4 | 1.0.4 |
| FreeBSD:15:quarterly | 1.0.4_1 | 1.0.4_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.0.4_1 | 1.0.4_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}pygments>0: textproc/py-pygments${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0: math/py-mathics-scanner
Runtime 3
${PYTHON_PKGNAMEPREFIX}pygments>0: textproc/py-pygments${PYTHON_PKGNAMEPREFIX}types_pygments>0: devel/py-types-Pygments${PYTHON_PKGNAMEPREFIX}Mathics_Scanner>0: math/py-mathics-scanner
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-click
- devel/py-pyyaml
- devel/py-setuptools
- devel/py-types-pyyaml
- devel/py-ujson
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- math/py-mathics-scanner
- print/indexinfo
- textproc/expat2
- textproc/libyaml
- textproc/py-chardet
- textproc/py-pygments
Run dependencies 16
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
pkg-plist 16
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__init__.py
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/__init__.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/builtins.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/lexer.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/style.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/mathics_pygments/__pycache__/version.cpython-.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
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| mathics_pygments-1.0.4.tar.gz | 57747 | 694a2fdaf61eb60068f3dc83385a5eedb2ce9c0444b73603e8d20387586c4fc5 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.