summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2013-07-10 11:45:01 +0000
committerManuel Rüger <mrueg@gentoo.org>2013-07-10 11:45:01 +0000
commit6680eb93ba0af7cdb57fbd6dffcedd4c80957128 (patch)
tree6026221d85541a07b678b8217883c1e4be4ded88 /app-text/blahtexml
parentRevision bump, changed version 2.0 to SLOT 2. (diff)
downloadgentoo-2-6680eb93ba0af7cdb57fbd6dffcedd4c80957128.tar.gz
gentoo-2-6680eb93ba0af7cdb57fbd6dffcedd4c80957128.tar.bz2
gentoo-2-6680eb93ba0af7cdb57fbd6dffcedd4c80957128.zip
Initial version wrt bug #431566
(Portage version: 2.1.12.13/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'app-text/blahtexml')
-rw-r--r--app-text/blahtexml/ChangeLog11
-rw-r--r--app-text/blahtexml/Manifest7
-rw-r--r--app-text/blahtexml/blahtexml-0.9.ebuild40
-rw-r--r--app-text/blahtexml/files/blahtexml-0.9-Makefile.patch53
-rw-r--r--app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch24
-rw-r--r--app-text/blahtexml/files/blahtexml.190
-rw-r--r--app-text/blahtexml/metadata.xml8
7 files changed, 233 insertions, 0 deletions
diff --git a/app-text/blahtexml/ChangeLog b/app-text/blahtexml/ChangeLog
new file mode 100644
index 000000000000..519f7c6244db
--- /dev/null
+++ b/app-text/blahtexml/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-text/blahtexml
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/blahtexml/ChangeLog,v 1.1 2013/07/10 11:45:01 mrueg Exp $
+
+*blahtexml-0.9 (10 Jul 2013)
+
+ 10 Jul 2013; Manuel Rüger <mrueg@gentoo.org> +blahtexml-0.9.ebuild,
+ +files/blahtexml-0.9-Makefile.patch, +files/blahtexml-0.9-gcc-4.7.patch,
+ +files/blahtexml.1, +metadata.xml:
+ Initial version wrt bug #431566
+
diff --git a/app-text/blahtexml/Manifest b/app-text/blahtexml/Manifest
new file mode 100644
index 000000000000..c593a5fc88e8
--- /dev/null
+++ b/app-text/blahtexml/Manifest
@@ -0,0 +1,7 @@
+AUX blahtexml-0.9-Makefile.patch 1850 SHA256 7e7f773995ab472f1220b023d6524d0a2ebd86ddd1c0dbf49019d47968cc9b60 SHA512 0aeea6d99f95c6c42702f9cdd947f7b5ff0ec835feee97ee5ebbd794f5f94b0d2f7a0f254b0d727bdd824057e0782c8474df70110f8ff33b339b78022334bf72 WHIRLPOOL 5ccfc63cdb882d8c1151d73d992c1461e8dc36d29bb23e062685afc73712b6fb0b46e2d54e078627ad19d716b4e438c63a43c6196bee595f75d4a6ab250cb949
+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 776 SHA256 b87812f6d81de2227b9e193e407054d33cc97cfe1d7540c24b2330c590fe3abc SHA512 06ecd6c3df5de5910507ad709054d7eef45bb6d546ded1b5abae11287aec36e37454637e9636b0feae70dc65ba90b30c296e8e936a1ce0a1eee0562e6f06b771 WHIRLPOOL a855338e475e3a636251c806cbd881f9df6aaaea7209f0d4b89f740be9be45101724408ebb67b75f516e1fe9fbd77a8ab1928f61b5a52f6a2d449b55894e4b50
+MISC ChangeLog 367 SHA256 e98f2b6df081a7d6c8f7acec40668ab66282c749f045f7cb6c9778fd23882594 SHA512 7b5128340edfc6938ee3c2eebfb4c9bf30c70cec9ebdfc395a4123f76f73e98b8698e3523717130e7ea1128c2bf7dfe1e2922ff8c55a0212299784dcfcc42acc WHIRLPOOL 31b6d8b81af8a057b61138bc8f1e7f012545559362ff4a03d8ed744239b33e83450c4b5ba9a4693c3a0da7f9e385318739361d6e72cc4b122aec765a0486a21c
+MISC metadata.xml 231 SHA256 9c04e1ed256c8293b1120d9b56de16e3ee5ff6cdb3967d517d46c5974c23d67a SHA512 0aaf70d152f2b3a4b333fccde6f5c9fbb6cac1a9ecf3e2b2ddb57a1c260b3f0e7bdd215edad17f959b2a3324929bf446164341531783431c3435d1b956d09d83 WHIRLPOOL d631165d8a2dd82731e34fed2e3c09437b8c0d383da28c3e0a5f704196afc1810a7efee388e6b558493e82fa61cc799ab3b93eb1b7b17464dd380efdcba60d06
diff --git a/app-text/blahtexml/blahtexml-0.9.ebuild b/app-text/blahtexml/blahtexml-0.9.ebuild
new file mode 100644
index 000000000000..6d0c42a63f88
--- /dev/null
+++ b/app-text/blahtexml/blahtexml-0.9.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/blahtexml/blahtexml-0.9.ebuild,v 1.1 2013/07/10 11:45:01 mrueg Exp $
+
+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"
+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..1402c9c80109
--- /dev/null
+++ b/app-text/blahtexml/files/blahtexml-0.9-Makefile.patch
@@ -0,0 +1,53 @@
+Use pkg-config for xerces-c
+Respect CXX and CC
+Replace CFLAGS with CXXFLAGS where needed
+Add LDFLAGS
+--- makefile.old 2010-04-07 18:45:30.000000000 +0200
++++ makefile 2012-08-15 23:48:03.218394478 +0200
+@@ -93,35 +93,39 @@
+
+ $(BINDIR_XMLIN)/InputSymbolTranslation.o: InputSymbolTranslation.cpp InputSymbolTranslation.inc
+
+-CFLAGS = -O2
++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 <unistd.h> includes.
+Author: Cyril Brulebois <kibi@debian.org>
+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 <stdlib.h>
+ #include <sstream>
+ #include <stdexcept>
++#include <unistd.h>
+
+ 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 <stdio.h>
+ #include <stdlib.h>
+ #include <sstream>
++#include <unistd.h>
+
+
+ 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 <n> 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<whatever>\fP and
+.\" \fI<whatever>\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 <error> 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 <abhidg@gmail.com>,
+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..bfcb6974f1c4
--- /dev/null
+++ b/app-text/blahtexml/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>