git: 2face533b6f9 - main - math/libtexprintf: New port: Formatted math formula output with tex-like syntax

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 13 Nov 2023 22:53:00 UTC
The branch main has been updated by yuri:

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

commit 2face533b6f9132e8a07e60185ec7b6f879340e9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-13 22:52:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-13 22:52:22 +0000

    math/libtexprintf: New port: Formatted math formula output with tex-like syntax
---
 math/Makefile               |  1 +
 math/libtexprintf/Makefile  | 23 +++++++++++++++++++++++
 math/libtexprintf/distinfo  |  3 +++
 math/libtexprintf/pkg-descr |  6 ++++++
 math/libtexprintf/pkg-plist | 10 ++++++++++
 5 files changed, 43 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 66437bc36975..e82ae83e96a6 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -462,6 +462,7 @@
     SUBDIR += librsb
     SUBDIR += libsemigroups
     SUBDIR += libsharp2
+    SUBDIR += libtexprintf
     SUBDIR += libtommath
     SUBDIR += libxls
     SUBDIR += libxlsxwriter
diff --git a/math/libtexprintf/Makefile b/math/libtexprintf/Makefile
new file mode 100644
index 000000000000..34e2137a8935
--- /dev/null
+++ b/math/libtexprintf/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	libtexprintf
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.25
+CATEGORIES=	math textproc
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Formatted math formula output with tex-like syntax
+WWW=		https://github.com/bartp5/libtexprintf
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		autoreconf gmake libtool
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	bartp5
+
+GNU_CONFIGURE=	yes
+
+INSTALL_TARGET=	install-strip
+
+.include <bsd.port.mk>
diff --git a/math/libtexprintf/distinfo b/math/libtexprintf/distinfo
new file mode 100644
index 000000000000..e3d76bf6f962
--- /dev/null
+++ b/math/libtexprintf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699915594
+SHA256 (bartp5-libtexprintf-v1.25_GH0.tar.gz) = c50a44e33eba551526ff553c0af0bdd3f3a219d8ed60f11fcd9d7b30cd028af1
+SIZE (bartp5-libtexprintf-v1.25_GH0.tar.gz) = 123468
diff --git a/math/libtexprintf/pkg-descr b/math/libtexprintf/pkg-descr
new file mode 100644
index 000000000000..1e282faea450
--- /dev/null
+++ b/math/libtexprintf/pkg-descr
@@ -0,0 +1,6 @@
+The utftex program and underlying libtexprintf library provide tools to pretty
+print math in mono-space fonts, using a tex-like syntax. It produces UTF-8
+encoded text. The program was inspired by asciiTeX, and the improved asciiTeX
+fork. However, utftex supports much more TeX syntax and contains extensive
+Unicode tables to map latex commands to Unicode symbols. Use libtexprintf/utftex
+to unlock the math capabilities of Unicode in mono-space text applications.
diff --git a/math/libtexprintf/pkg-plist b/math/libtexprintf/pkg-plist
new file mode 100644
index 000000000000..ce7b05c3d9bf
--- /dev/null
+++ b/math/libtexprintf/pkg-plist
@@ -0,0 +1,10 @@
+bin/utfstringinfo
+bin/utftex
+include/texprintf.h
+lib/libtexprintf.a
+lib/libtexprintf.so
+lib/libtexprintf.so.1
+lib/libtexprintf.so.1.0.0
+man/man1/utfstringinfo.1.gz
+man/man1/utftex.1.gz
+man/man3/texprintf.3.gz