Add dev-tex/mimetex
[portage-overlay.git] / dev-tex / mimetex / mimetex-1.74.ebuild
1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 inherit toolchain-funcs
7
8 DESCRIPTION="Tool to easily embed LaTeX math in html pages"
9 HOMEPAGE="http://www.forkosh.com/mimetex.html"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 IUSE=""
14 SRC_URI="https://download.sumptuouscapital.com/gentoo/releases/${CATEGORY}/${PN}/${P}.zip"
15
16 KEYWORDS="~amd64 ~x86"
17
18 CDEPEND="media-libs/giflib"
19 DEPEND="${CDEPEND}"
20 RDEPEND="${CDEPEND}"
21
22 S=${WORKDIR}
23
24 src_compile()
25 {
26         #This package ships as a single .c file, manual compile process needed
27         $(tc-getCC) -DAA mimetex.c gifsave.c -lm -o mimetex.cgi || die
28 :;
29 }
30
31 src_install()
32 {
33         dodoc README
34         exeinto /usr/libexec/mimetex
35         doexe mimetex.cgi
36 }
37
38 pkg_postinst()
39 {
40         elog "mimetex.cgi has been installed in /usr/libexec/mimetex,"
41         elog "if you want to enable this for a webserver please create a symlink"\
42              " to your cgi-bin"
43 }