/[gentoo-x86]/app-text/mathtex/mathtex-1.03.ebuild
Gentoo

Contents of /app-text/mathtex/mathtex-1.03.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Dec 21 20:34:57 2009 UTC (4 years, 8 months ago) by pva
Branch: MAIN
Initial import. Ebuild by me and Constantin Bergemann, bug #219138. Required for pidgintex but is useful on its own ;)
(Portage version: 2.1.7.15/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="2"
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="MathTeX lets you easily embed LaTeX math in your own html pages, blogs, wikis, etc"
10 HOMEPAGE="http://www.forkosh.com/mathtex.html"
11 SRC_URI="http://www.forkosh.com/${P}.zip"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RDEPEND="app-text/dvipng
19 virtual/latex-base"
20 DEPEND=""
21
22 einfo_run_command() {
23 einfo "${@}"
24 ${@} || die
25 }
26
27 src_compile() {
28 einfo_run_command $(tc-getCC) \
29 ${CFLAGS} ${LDFLAGS} \
30 -DLATEX=\"/usr/bin/latex\" \
31 -DDVIPNG=\"/usr/bin/dvipng\" \
32 mathtex.c -o mathtex
33 }
34
35 src_install() {
36 dobin mathtex || die
37 dodoc README || die
38 dohtml mathtex.html || die
39 }
40
41 pkg_postinst() {
42 elog "To use mathtex in your web-pages, just link /usr/bin/mathtex"
43 elog "to your cgi-bin subdirectory!"
44 }

  ViewVC Help
Powered by ViewVC 1.1.20