Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 2021 08:00:23 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cb7052561480 - main - math/blahtexml: New port: TeX to MathML converter designed with MediaWiki in mind
Message-ID:  <202109230800.18N80NC3029433@gitrepo.freebsd.org>

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

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

commit cb7052561480c49a5bdffc1fa6c3e4e9d0bc8fa3
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-09-23 07:58:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-09-23 07:59:17 +0000

    math/blahtexml: New port: TeX to MathML converter designed with MediaWiki in mind
---
 math/Makefile                       |  1 +
 math/blahtexml/Makefile             | 31 +++++++++++++++++++++++++++++++
 math/blahtexml/distinfo             |  3 +++
 math/blahtexml/files/patch-makefile | 11 +++++++++++
 math/blahtexml/pkg-descr            | 11 +++++++++++
 5 files changed, 57 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index dddeef58a892..fab655259b3c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -162,6 +162,7 @@
     SUBDIR += bcps
     SUBDIR += bitwise
     SUBDIR += blacs
+    SUBDIR += blahtexml
     SUBDIR += blas
     SUBDIR += blasfeo
     SUBDIR += blaze
diff --git a/math/blahtexml/Makefile b/math/blahtexml/Makefile
new file mode 100644
index 000000000000..52522c71806f
--- /dev/null
+++ b/math/blahtexml/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	blahtexml
+DISTVERSION=	0.9 # not tagged, version is stated in the README
+CATEGORIES=	math
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	TeX to MathML converter designed with MediaWiki in mind
+
+LICENSE=	BSD3CLAUSE
+
+LIB_DEPENDS=	libiconv.so:converters/libiconv \
+		libxerces-c.so:textproc/xerces-c3
+
+USES=		gmake localbase:ldflags
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	gvanas
+GH_TAGNAME=	92f2c5f
+
+MAKEFILE=	makefile
+MAKE_ARGS=	CFLAGS="${CFLAGS}"
+
+ALL_TARGET=	blahtexml-linux
+
+LDFLAGS+=	-liconv
+
+PLIST_FILES=	bin/${PORTNAME}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/math/blahtexml/distinfo b/math/blahtexml/distinfo
new file mode 100644
index 000000000000..c901bfa56818
--- /dev/null
+++ b/math/blahtexml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632381802
+SHA256 (gvanas-blahtexml-0.9-92f2c5f_GH0.tar.gz) = c7ca4e791c551f2618e2614ad99674b536989676509e330ed5613adca1b4acd1
+SIZE (gvanas-blahtexml-0.9-92f2c5f_GH0.tar.gz) = 191102
diff --git a/math/blahtexml/files/patch-makefile b/math/blahtexml/files/patch-makefile
new file mode 100644
index 000000000000..870d18275743
--- /dev/null
+++ b/math/blahtexml/files/patch-makefile
@@ -0,0 +1,11 @@
+--- makefile.orig	2021-09-23 07:29:40 UTC
++++ makefile
+@@ -120,7 +120,7 @@ blahtex-mac: $(BINDIR) $(OBJECTS)  $(HEADERS)
+ 	$(CXX) $(CFLAGS) -o blahtex -liconv $(OBJECTS)
+ 
+ blahtexml-linux:  $(BINDIR_XMLIN) $(OBJECTS_XMLIN)  $(HEADERS_XMLIN)
+-	$(CXX) $(CFLAGS) -o blahtexml $(OBJECTS_XMLIN) -lxerces-c
++	$(CXX) $(CFLAGS) $(LDFLAGS) -o blahtexml $(OBJECTS_XMLIN) -lxerces-c
+ 
+ blahtexml-mac: $(BINDIR_XMLIN) $(OBJECTS_XMLIN)  $(HEADERS_XMLIN)
+ 	$(CXX) $(CFLAGS) -o blahtexml -liconv $(OBJECTS_XMLIN) -lxerces-c
diff --git a/math/blahtexml/pkg-descr b/math/blahtexml/pkg-descr
new file mode 100644
index 000000000000..d2251624bb1f
--- /dev/null
+++ b/math/blahtexml/pkg-descr
@@ -0,0 +1,11 @@
+Blahtex is a program written in C++, which converts an equation given in a
+syntax close to TeX into MathML. It is designed by David Harvey and is aimed at
+supporting equations in MediaWiki.
+
+Blahtexml is a simple extension of blahtex, written by Gilles Van Assche. In
+addition to the functionality of blahtex, blahtexml has XML processing in mind
+and is able to process a whole XML document into another XML document. Instead
+of converting only one formula at a time, blahtexml can convert all the formulas
+of the given XML file into MathML.
+
+WWW: http://gva.noekeon.org/blahtexml/



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