From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/blahtexml/Manifest | 8 ++ app-text/blahtexml/blahtexml-0.9.ebuild | 39 ++++++++++ .../blahtexml/files/blahtexml-0.9-Makefile.patch | 55 +++++++++++++ .../blahtexml/files/blahtexml-0.9-gcc-4.7.patch | 24 ++++++ app-text/blahtexml/files/blahtexml.1 | 90 ++++++++++++++++++++++ app-text/blahtexml/metadata.xml | 5 ++ 6 files changed, 221 insertions(+) create mode 100644 app-text/blahtexml/Manifest create mode 100644 app-text/blahtexml/blahtexml-0.9.ebuild create mode 100644 app-text/blahtexml/files/blahtexml-0.9-Makefile.patch create mode 100644 app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch create mode 100644 app-text/blahtexml/files/blahtexml.1 create mode 100644 app-text/blahtexml/metadata.xml (limited to 'app-text/blahtexml') diff --git a/app-text/blahtexml/Manifest b/app-text/blahtexml/Manifest new file mode 100644 index 000000000000..7bdaecce15d6 --- /dev/null +++ b/app-text/blahtexml/Manifest @@ -0,0 +1,8 @@ +AUX blahtexml-0.9-Makefile.patch 1811 SHA256 b48dd33230532807e743c12292c2cfc6a36c76043bf40b3c1e5fa7d3a581df91 SHA512 e27fc386b4392d33fe6b78379d364d3b17586c12843acf18fa16244169d151f8e750804289114c24f179fca6b0abe94f4eb622089af90c538dd7e9f3182d8d18 WHIRLPOOL 42911792e45dc3b2864313dbd950a81259c25bbd4c9b49f59ea53976837006c7611641184c87812807a30d2ce70a1ea0bc7537523fe511abc7e70821044643d7 +AUX blahtexml-0.9-gcc-4.7.patch 672 SHA256 fd71bebc80c943cdf91c3a223f1e7568290418bb92869edb3b051c1a3a3aaf58 SHA512 d683ea1113f4aaefb692b8a7b0cb7365673c835fa3c85e229243d0c96ee2b2ff52026dec96d1670cc0e42f1fa9124dfd547445e6e5b0a85f462e881f177d2ad4 WHIRLPOOL a8eb86c61b2b755382f0e4f73014c966ff2f6506f04a626e577cbfed1cdac7c657a45436396ed8237ff9ff60d7a32ee760163e26427bc77a0b1c0f976883202f +AUX blahtexml.1 3094 SHA256 dc845cfd1cfc4535546319995a6c094c85deb063b61c5107a66e9a1b7638ad51 SHA512 0f114e4cfb806fe6d120a738118ccd0817d898434a9d878cd20e5ea59d804420f07b90b9763a387e5b29251ca4acf9b1d7b7b845f9f86036d9dc729775155a7d WHIRLPOOL cca4b4dfa0e5375719b69d37cfe95e5fac208c9384f38d8082765f1c4a7e6bf5e90aa266e436cf41357bfc538480b1313f0422c6fa62d3754a997002d6139d73 +DIST blahtexml-0.9-src.tar.gz 168564 SHA256 c5145b02bdf03cd95b7b136de63286819e696639824961d7408bec4591bc3737 SHA512 5a5ddd50c0b3a25954135c44de0ac3a3d992e3e9dd691a552512415c385a39011595683877cdf98aee77d6ef2f9dae750214798ec2af69b8de089d0aec64b042 WHIRLPOOL 10aed077f16914f2ceff02929069c305a1b6a154e0aafea1c25048b9394c2fddb76cd852c83a1025464e89ecaf7d68d0f552e47818696a0343518fea8deb2852 +EBUILD blahtexml-0.9.ebuild 787 SHA256 de8aea13977cf55df9214ac007e3e47214fa27aa241b0a9526a75a6848bb0cef SHA512 bab44aab55fbc4168ca15df95765472b4960a2b9d7d93210cea3f8647c2aaea00374a74831dc7208a4633870d47b6f53a1cba6f7aeeac0b335316a46783ae507 WHIRLPOOL 4aa08c1fc83d3aeae39f3f1b999d46d2cecd4d014d031f837a8c1efb972c7058a49e6827c74fae0080a3079af132047fd63e224b6f4a1439c5d0dc5e335b6dc7 +MISC ChangeLog 2273 SHA256 d5a902d55a50551ae92870589f6c3b6cd576b140e9ba6165f8e1bf57a7c22915 SHA512 ca1e25f98d189b8134579d9ae44bcf69139ac6821bb6ec42d6d1a455460f9e51a6c4db6f1f0d17432d7e98cb842e9a84b5979efb3841e8e7f246d1fa3af1ac31 WHIRLPOOL 040c02176737b19d669534d7c2c04efb7b268ae1953b8c6a190cdcbccd5a911f7764b166e2693dbca8b7762cb0d039c466bde66b07002bc834a80a25f24db92b +MISC ChangeLog-2015 1030 SHA256 093cbd853ce772db33861a77eba50e4503f694e5818fa4a27a8387c333cb0c43 SHA512 11eeabac2f879c160a988cea711935df30388be641ed8e1b2cc96998c03b7905bb64cd83987fcecea3e0463b36091537f9f4032840c617997d8ba05278b1eecc WHIRLPOOL 7b9ec0c47d88489ab009e29e9987af393f1f475cea7fcc66e085d23bba53108d88c4a86c2726a4d46514e1b22605ce5e18ea5bfdb3b1600fdb4b5f98b06acb14 +MISC metadata.xml 168 SHA256 9f5073e4f4682efd1d4fda14feb67df188972340a55fa9e06ee82b66e24f8cc8 SHA512 00eec08786156434460f5ed77b647579546cf1a86341a4f2c9c9c84326468c2c21dc5101c4277103b19266bb6f788823f4ddf3b9d044da26326d79bf2ac9a274 WHIRLPOOL 3ec0b2fcfb36e82c8f9dd8877875a38095bc9b11aff96d69a7919ee610efe27f65318c974161f6ba135150ad361a8c108938841c3d48c42f5a92d1762858d898 diff --git a/app-text/blahtexml/blahtexml-0.9.ebuild b/app-text/blahtexml/blahtexml-0.9.ebuild new file mode 100644 index 000000000000..50be0fd0c5a5 --- /dev/null +++ b/app-text/blahtexml/blahtexml-0.9.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="TeX-to-MathML converter" +HOMEPAGE="http://gva.noekeon.org/blahtexml" +SRC_URI="http://gva.noekeon.org/${PN}/${P}-src.tar.gz" + +LICENSE="BSD CC-BY-3.0 ZLIB" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86" +IUSE="doc" + +RDEPEND="dev-libs/xerces-c" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + app-text/texlive-core + dev-libs/libxslt + dev-tex/latex2html )" + +src_prepare() { + tc-export CC CXX + epatch "${FILESDIR}"/${P}-{Makefile,gcc-4.7}.patch +} + +src_compile() { + emake blahtex{,ml}-linux + use doc && emake doc +} + +src_install() { + dobin blahtex ${PN} + doman "${FILESDIR}"/${PN}.1 + use doc && dodoc Documentation/manual.pdf +} diff --git a/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch b/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch new file mode 100644 index 000000000000..f5f01eac71aa --- /dev/null +++ b/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch @@ -0,0 +1,55 @@ +Use pkg-config for xerces-c +Respect CXX and CC +Replace CFLAGS with CXXFLAGS where needed +Add LDFLAGS + +--- a/makefile ++++ b/makefile +@@ -93,35 +93,40 @@ + + $(BINDIR_XMLIN)/InputSymbolTranslation.o: InputSymbolTranslation.cpp InputSymbolTranslation.inc + +-CFLAGS = -O2 ++PKG_CONFIG ?= pkg-config ++CFLAGS ?= -O2 + + VPATH = Source:Source/BlahtexCore:Source/BlahtexXMLin + + INCLUDES=-I. -ISource -ISource/BlahtexCore -ISource/BlahtexXMLin + ++CXXFLAGS += $(shell $(PKG_CONFIG) --cflags xerces-c) ++ ++XERCES_LIB = $(shell $(PKG_CONFIG) --libs xerces-c) ++ + $(BINDIR)/%.o:%.cpp +- $(CXX) $(INCLUDES) $(CFLAGS) -c $< -o $@ ++ $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< -o $@ + + $(BINDIR)/%.o:%.c + $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@ + + $(BINDIR_XMLIN)/%.o:%.cpp +- $(CXX) $(INCLUDES) $(CFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ ++ $(CXX) $(INCLUDES) $(CXXFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ + + $(BINDIR_XMLIN)/%.o:%.c + $(CC) $(INCLUDES) $(CFLAGS) -DBLAHTEXML_USING_XERCES -c $< -o $@ + + blahtex-linux: $(BINDIR) $(OBJECTS) $(HEADERS) +- $(CXX) $(CFLAGS) -o blahtex $(OBJECTS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtex $(OBJECTS) $(LIBS) + + blahtex-mac: $(BINDIR) $(OBJECTS) $(HEADERS) +- $(CXX) $(CFLAGS) -o blahtex -liconv $(OBJECTS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtex -liconv $(OBJECTS) $(LIBS) + + blahtexml-linux: $(BINDIR_XMLIN) $(OBJECTS_XMLIN) $(HEADERS_XMLIN) +- $(CXX) $(CFLAGS) -o blahtexml $(OBJECTS_XMLIN) -lxerces-c ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtexml $(OBJECTS_XMLIN) $(LIBS) $(XERCES_LIB) + + blahtexml-mac: $(BINDIR_XMLIN) $(OBJECTS_XMLIN) $(HEADERS_XMLIN) +- $(CXX) $(CFLAGS) -o blahtexml -liconv $(OBJECTS_XMLIN) -lxerces-c ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o blahtexml -liconv $(OBJECTS_XMLIN) $(LIBS) $(XERCES_LIB) + + clean: + rm -f blahtex $(OBJECTS) blahtexml $(OBJECTS_XMLIN) diff --git a/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch new file mode 100644 index 000000000000..c570e1de679b --- /dev/null +++ b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch @@ -0,0 +1,24 @@ +Description: Fix FTBFS with gcc 4.7 by fixing missing includes. +Author: Cyril Brulebois +Bug-Debian: http://bugs.debian.org/667116 + +--- blahtexml-0.9.orig/Source/main.cpp ++++ blahtexml-0.9/Source/main.cpp +@@ -24,6 +24,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG + #include + #include + #include ++#include + + using namespace std; + using namespace blahtex; +--- blahtexml-0.9.orig/Source/mainPng.cpp ++++ blahtexml-0.9/Source/mainPng.cpp +@@ -27,6 +27,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG + #include + #include + #include ++#include + + + using namespace std; diff --git a/app-text/blahtexml/files/blahtexml.1 b/app-text/blahtexml/files/blahtexml.1 new file mode 100644 index 000000000000..a82c8491a770 --- /dev/null +++ b/app-text/blahtexml/files/blahtexml.1 @@ -0,0 +1,90 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BLAHTEXML 1 "March 17, 2010" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +blahtexml \- Converts TeX equations into MathML +.SH SYNOPSIS +.B blahtexml +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B blahtexml +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBblahtexml\fP converts an equation given in a syntax close to TeX into +MathML. Blahtexml is a simple extension of blahtex. 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. +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the online documentation. +.TP +.B \-\-help +Show summary of options. +.TP +.B \-\-texvc-compatible-commands +Enables use of commands that are specific to texvc, but that are not +standard TeX/LaTeX/AMS-LaTeX commands. +.TP +.B \-\-print-error-messages +This will print out a list of all error IDs and corresponding messages +that blahtex can possibly emit inside an block. +.SH MATHML OPTIONS +These options control the MathML output of the blahtexml program. + +.TP +.B \-\-mathml +Enables MathML output. +.TP +.B \-\-xmlin +This allows one to embed TeX equations in an existing MathML code, using +a special notation. The equations are given as attributes (inline or block) +in the http://gva.noekeon.org/blahtexml namespace. Whenever blahtexml meets +such an equation, it expands it into the equivalent MathML code. + +For more information check +.RS +http://gva.noekeon.org/blahtexml/how_to_use.html +.RE +.RS +or the blahtexml manual. +.RE +.TP +.B \-\-annotate-TeX +Produces TeX annotations in the MathML output. +.TP +.B \-\-annotate-PNG +Produces PNG files and annotates the MathML output with the PNG file name. +.SH SEE ALSO +The program is documented fully by the +online manual available at: +http://gva.noekeon.org/blahtexml +.SH AUTHOR +blahtexml was written by Gilles Van Assche. +.br +blahtex (whose superset is blahtexml) was written by David Harvey. +.PP +This manual page was written by Abhishek Dasgupta , +for the Debian project (but may be used by others). + diff --git a/app-text/blahtexml/metadata.xml b/app-text/blahtexml/metadata.xml new file mode 100644 index 000000000000..1b2becffa26c --- /dev/null +++ b/app-text/blahtexml/metadata.xml @@ -0,0 +1,5 @@ + + + + + -- cgit v1.2.3