Add Mathtex
authorKristian Fiskerstrand <kf@sumptuouscapital.com>
Sun, 15 Nov 2015 14:19:55 +0000 (15:19 +0100)
committerKristian Fiskerstrand <kf@sumptuouscapital.com>
Sun, 15 Nov 2015 14:19:55 +0000 (15:19 +0100)
dev-tex/mathtex/Manifest [new file with mode: 0644]
dev-tex/mathtex/mathtex-1.05.ebuild [new file with mode: 0644]

diff --git a/dev-tex/mathtex/Manifest b/dev-tex/mathtex/Manifest
new file mode 100644 (file)
index 0000000..408a3ba
--- /dev/null
@@ -0,0 +1,2 @@
+DIST mathtex-1.05.zip 162484 SHA256 ad10a66d64e3fb5928866a51d2e5e67b5d4d83d44ebd65b1de5e68f2bd444c2d SHA512 2be95b8c1b3f4ceff072f1c521257e6968d3dee973c1b0581937f54e2db7ca0bb149caff11878e736ba03d66d5d9052d5384e1f80007ceb4a516e6e89d38b7d7 WHIRLPOOL c4f980d9c0cdc834db766709710d5db6f82828414f5fed67ec9d1ef520b7ddeb7f890c368f42cf79275e7236e0beb919ec69c645f111bdc62c3017ff5247f60f
+EBUILD mathtex-1.05.ebuild 994 SHA256 5ec24679c0f2ad7150996e0d3441f991013d271ec7129fc6cec8f2fdbb1eee7d SHA512 578aa9d5bfabb49d85aefe700d13b0cea276294b0ebcd7f7c605908666ed7f3f5b3ff12defa45b1ecbf574d20bbc6f1cb4b85b09347204ea3f30140c17251c38 WHIRLPOOL d90be63c7fa35627f07d2f8b26496c1bdbcad3c1517667f807936ee2a937f60f4ed23a37cf9db8e6aae65d2b2bdaf4638e6152df9c217dee079047f3b633a9d6
diff --git a/dev-tex/mathtex/mathtex-1.05.ebuild b/dev-tex/mathtex/mathtex-1.05.ebuild
new file mode 100644 (file)
index 0000000..690cc92
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit toolchain-funcs
+
+DESCRIPTION="Tool to easily embed LaTeX math in html pages"
+HOMEPAGE="http://www.forkosh.com/mathtex.html"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+SRC_URI="https://download.sumptuouscapital.com/gentoo/releases/${CATEGORY}/${PN}/${P}.zip"
+
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="dev-texlive/texlive-latex
+       app-text/dvipng"
+
+DEPEND="${CDEPEND}"
+RDEPEND="${CDEPEND}"
+
+S=${WORKDIR}
+
+src_compile()
+{
+       #This package ships as a single .c file, manual compile process needed
+       $(tc-getCC) mathtex.c   \
+               –DLATEX=\"$(which latex)\"   \
+               –DDVIPNG=\"$(which dvipng)\"   \
+               –o mathtex.cgi || die
+}
+
+src_install()
+{
+       dodoc README
+       exeinto /usr/libexec/${PN}
+       doexe ${PN}.cgi
+}
+
+pkg_postinst()
+{
+       elog "${PN}.cgi has been installed in /usr/libexec/${PN},"
+       elog "if you want to enable this for a webserver please create a symlink"\
+            " to your cgi-bin"
+}