summaryrefslogtreecommitdiff
path: root/textproc/py-gladtex
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-gladtex')
-rw-r--r--textproc/py-gladtex/Makefile35
-rw-r--r--textproc/py-gladtex/distinfo3
-rw-r--r--textproc/py-gladtex/pkg-descr24
3 files changed, 62 insertions, 0 deletions
diff --git a/textproc/py-gladtex/Makefile b/textproc/py-gladtex/Makefile
new file mode 100644
index 000000000000..a8cba82d6396
--- /dev/null
+++ b/textproc/py-gladtex/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= gladtex
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.1
+CATEGORIES= textproc math www
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= alven@FreeBSD.org
+COMMENT= LaTeX formula preprocessor for HTML files
+WWW= https://humenda.github.io/GladTeX/ \
+ https://github.com/humenda/GladTeX/
+
+LICENSE= LGPL3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= go-md2man:textproc/go-md2man
+
+USES= python tex
+USE_GITHUB= yes
+GH_ACCOUNT= humenda
+GH_PROJECT= GladTeX
+USE_PYTHON= autoplist distutils
+USE_TEX= dvipsk:run latex:run
+
+CONFLICTS_INSTALL= gladtex
+
+NO_ARCH= yes
+
+PLIST_FILES= share/man/man1/${PORTNAME}.1.gz
+
+post-install:
+ go-md2man -in ${WRKSRC}/manpage.md -out ${TMPDIR}/${PORTNAME}.1
+ ${INSTALL_MAN} ${TMPDIR}/${PORTNAME}.1 \
+ ${STAGEDIR}${PREFIX}/share/man/man1
+
+.include <bsd.port.mk>
diff --git a/textproc/py-gladtex/distinfo b/textproc/py-gladtex/distinfo
new file mode 100644
index 000000000000..9fa716116743
--- /dev/null
+++ b/textproc/py-gladtex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1761952702
+SHA256 (humenda-GladTeX-v3.1_GH0.tar.gz) = d12dd28a4440302f9013a8710cd8169f89d16e622494130975cc587316080da3
+SIZE (humenda-GladTeX-v3.1_GH0.tar.gz) = 74902
diff --git a/textproc/py-gladtex/pkg-descr b/textproc/py-gladtex/pkg-descr
new file mode 100644
index 000000000000..4dbed04e0c5b
--- /dev/null
+++ b/textproc/py-gladtex/pkg-descr
@@ -0,0 +1,24 @@
+GladTeX is a preprocessor that enables the use of LaTeX maths within HTML
+files. The maths, embedded in <EQ>...</EQ> tags, as if within \(..\) in
+LaTeX (or $...$ in TeX), is fed through latex and replaced by images.
+
+Additionally all images get an alt-tag for alternative texts that contains
+the LaTeX-equivalent of the image. This is handy for text-mode browsers or
+blind people.
+
+* GladTeX supports caching of formulas in order to enable incremental
+ document editing or simply to share formulas across web pages.
+
+* GladTeX can be used with Pandoc in order to convert MarkDown to HTML with
+ LaTeX formulas.
+
+* It also contains a library GleeTeX to custom tailor the generation and
+ conversion process to your needs and to embedd it into your (web)
+ application.
+
+* It allows the usage of umlauts and other non-ASCII characters within
+ formulas, by replacing these characters through LaTeX sequences.
+
+* It is cross-platform, written in Python.
+
+* Its source code is documented and tested.