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/mathtex/Manifest | 5 ++++ app-text/mathtex/mathtex-1.04.ebuild | 46 ++++++++++++++++++++++++++++++++++++ app-text/mathtex/metadata.xml | 14 +++++++++++ 3 files changed, 65 insertions(+) create mode 100644 app-text/mathtex/Manifest create mode 100644 app-text/mathtex/mathtex-1.04.ebuild create mode 100644 app-text/mathtex/metadata.xml (limited to 'app-text/mathtex') diff --git a/app-text/mathtex/Manifest b/app-text/mathtex/Manifest new file mode 100644 index 000000000000..0ae218886be3 --- /dev/null +++ b/app-text/mathtex/Manifest @@ -0,0 +1,5 @@ +DIST mathtex-1.04.zip 148443 SHA256 f3bd3dc0491f37eb5de8bcd40b04cb11cd84581d2f16a6a2f61fc79622dd6adf SHA512 4b299a6dc503a01d6be3182ad982e38c0b6d926f09a09bd5169f8ad2c947c020ad532b15146379b4bc2158cfceec4cb4a0b7bf902423e0a8ad9b0b0190a99601 WHIRLPOOL 4c67b17a5d761e612ec12f372244665b0c41aea9066bb970bb263477a18407f76ef43786be50f41d645019165126219c39b22e6c67b2d2c60b70dc0b535040e2 +EBUILD mathtex-1.04.ebuild 885 SHA256 36c4c2ec97cdda8890e780f66eb18b9bb4608276eb36fc18232615f6449ae92f SHA512 1c74aaa03a53c5ce6639ab5e4e960f1556aeaf3978df76eb17a9f5d9c69cfa876ef18a68b86113c518927d5239b0fa88b6a0aa9eb3300bc0cbcf48f7b296865f WHIRLPOOL c6d1f2579a87e117e5f1cb44404ae969671b73f8581fca4828425b2dc4257a5cbbb6dfab56077be7d4142041874c2ecb2ad63911070e40efcb19f4cd9a0fe715 +MISC ChangeLog 2567 SHA256 0e12173b991033b26806ef42ab8f4e19062b7a2b9178386aa64aee40bab10212 SHA512 f00da7223d7236525f2b98afd921319480ef5a093e13ade5a9013b9bed58edda8f701d6d2983945a581b13505fc5dde4e586a2f5f93a252312d89d33cdbbf4c9 WHIRLPOOL 3e85def9a79ee504e2bdebba2f15e64e6ba3799949ec5fee762f42b954413488c7a634da638cf86d3d23ee4a752cd066c0b82309c086354c57eeed8abe59fc8d +MISC ChangeLog-2015 1069 SHA256 cb14e5be6b2834b0f686435dc09e8021fd38df90b3fc5e3fb77af17cfeab7d38 SHA512 398d2c2dbaeefbdceb2c4f83af4ab575f24adcd1c5bef7db639ae66cdb745ec8ae0d1224ad1e05086c7a8f0bd992de2cdc8cc627c2cbc023c99b123cb90aeaf2 WHIRLPOOL 4cc1e9c1511eb58c1dbe16d6eb1070de3efde9f409d639094c538131952fba82d5856c8836c8397c497716def396120716860ede6a9546b5041963f3199ae887 +MISC metadata.xml 633 SHA256 d818344e4303e486d3f36714e54c4411d1915093e0c4d86b202ae21c481b89e0 SHA512 9086dbde5cbad1aebf2b0ffdf011db515befe5bff5c40e37726a0fce358f12875469d0afa70f410e273f3ec1f80a4980c77acb888b7aa5c83cd7ecb28afbb21a WHIRLPOOL 1da69dd6dcb07cb0766f4c499458d2ce1ff6cf772d2ea2fd292dcb265d5000c80ab1fc57c48445ad5fe98d7632547157aa4f274a70762f1363572a71ffe9ac13 diff --git a/app-text/mathtex/mathtex-1.04.ebuild b/app-text/mathtex/mathtex-1.04.ebuild new file mode 100644 index 000000000000..c04f8dc4dfea --- /dev/null +++ b/app-text/mathtex/mathtex-1.04.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="Lets you easily embed LaTeX math in your own html pages, blogs, wikis, etc" +HOMEPAGE="http://www.forkosh.com/mathtex.html" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="png" + +RDEPEND="app-text/dvipng + virtual/latex-base" +DEPEND="" + +S=${WORKDIR} + +einfo_run_command() { + einfo "${@}" + ${@} || die +} + +src_compile() { + einfo_run_command $(tc-getCC) \ + ${CFLAGS} ${LDFLAGS} \ + -DLATEX=\"/usr/bin/latex\" \ + -DDVIPNG=\"/usr/bin/dvipng\" \ + $(use png && echo "-DPNG") \ + mathtex.c -o mathtex +} + +src_install() { + dobin mathtex + dodoc README + dohtml mathtex.html +} + +pkg_postinst() { + elog "To use mathtex in your web-pages, just link /usr/bin/mathtex" + elog "to your cgi-bin subdirectory!" +} diff --git a/app-text/mathtex/metadata.xml b/app-text/mathtex/metadata.xml new file mode 100644 index 000000000000..c3330bb45b70 --- /dev/null +++ b/app-text/mathtex/metadata.xml @@ -0,0 +1,14 @@ + + + + + + Generate png images by default instead of gif + + MathTeX parses a LaTeX math expression and immediately emits + the corresponding gif (or png) image. It can be used as cgi program to embed + LaTeX math in your own html pages, blogs, wikis, etc. Just place an html img + tag in your document wherever you want to see the corresponding LaTeX + expression. Take a look at homepage for examples. + + -- cgit v1.2.3