diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-23 00:58:45 -0700 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-09-23 00:59:17 -0700 |
| commit | cb7052561480c49a5bdffc1fa6c3e4e9d0bc8fa3 (patch) | |
| tree | d8542058b9e555eb3cb0e0da756ba4e42ebe4fc0 | |
| parent | deskutils/qownnotes: update QOwnNotes to version 21.9.9. (diff) | |
math/blahtexml: New port: TeX to MathML converter designed with MediaWiki in mind
| -rw-r--r-- | math/Makefile | 1 | ||||
| -rw-r--r-- | math/blahtexml/Makefile | 31 | ||||
| -rw-r--r-- | math/blahtexml/distinfo | 3 | ||||
| -rw-r--r-- | math/blahtexml/files/patch-makefile | 11 | ||||
| -rw-r--r-- | math/blahtexml/pkg-descr | 11 |
5 files changed, 57 insertions, 0 deletions
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/ |
