Add dev-tex/mimetex
authorKristian Fiskerstrand <kf@sumptuouscapital.com>
Sat, 14 Nov 2015 15:33:46 +0000 (16:33 +0100)
committerKristian Fiskerstrand <kf@sumptuouscapital.com>
Sat, 14 Nov 2015 15:33:46 +0000 (16:33 +0100)
dev-tex/mimetex/Manifest [new file with mode: 0644]
dev-tex/mimetex/mimetex-1.74.ebuild [new file with mode: 0644]

diff --git a/dev-tex/mimetex/Manifest b/dev-tex/mimetex/Manifest
new file mode 100644 (file)
index 0000000..b45d3c9
--- /dev/null
@@ -0,0 +1,2 @@
+DIST mimetex-1.74.zip 1191496 SHA256 59b0b1f66da4d746d1aa8fd37d3b17e31105259a2ccdc5177adb4fbc01d6d1b3 SHA512 906ad1aa2299af4258fe959e1bdc5becbbe5ecc8ba7a978c1f0e65b19cb071b33d079daa1b26668d803320f44e73869c686965e296041338dd951c64ffbd16a4 WHIRLPOOL eb2f4338ffa3b8ccd578e39fff31b8b338e7e67c6aea67bd04d56b92b6db4a817ad319403083bc7d7f1db40fdd3010b0bedcb98853dc868a2632fad23bd41b39
+EBUILD mimetex-1.74.ebuild 918 SHA256 bb49c8b42e2dd0390fc9d389241535231d781b646c02f7c8a1c89dac687b56c1 SHA512 4463e04aee235db14b26e0f3a5adc4c10ac4931be592e5c4308fc191a9d4ffea8897d2dc5026d75f17e25f14110ea0d3772ac6059ea9e6bd6bee6d6501d26145 WHIRLPOOL 4505478044d7cf654190c897c93204efd950307bbf6b31e6b2fd5fbc4c9e2ecb4fc389b195c9e3371499a19e0f7badbaf6321777646dae02160f415e02f59416
diff --git a/dev-tex/mimetex/mimetex-1.74.ebuild b/dev-tex/mimetex/mimetex-1.74.ebuild
new file mode 100644 (file)
index 0000000..596f556
--- /dev/null
@@ -0,0 +1,43 @@
+# 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/mimetex.html"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+SRC_URI="https://download.sumptuouscapital.com/gentoo/releases/${CATEGORY}/${PN}/${P}.zip"
+
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="media-libs/giflib"
+DEPEND="${CDEPEND}"
+RDEPEND="${CDEPEND}"
+
+S=${WORKDIR}
+
+src_compile()
+{
+       #This package ships as a single .c file, manual compile process needed
+       $(tc-getCC) -DAA mimetex.c gifsave.c -lm -o mimetex.cgi || die
+:;
+}
+
+src_install()
+{
+       dodoc README
+       exeinto /usr/libexec/mimetex
+       doexe mimetex.cgi
+}
+
+pkg_postinst()
+{
+       elog "mimetex.cgi has been installed in /usr/libexec/mimetex,"
+       elog "if you want to enable this for a webserver please create a symlink"\
+            " to your cgi-bin"
+}