# $Id: Portfile 68487 2010-06-04 15:54:19Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           xcode 1.0

name                LaTeXiT
version             2.2.0
set und_vers        [string map {. _} ${version}]
categories          tex aqua
platforms           darwin
maintainers         singingwolfboy openmaintainer
description         Drag-and-drop LaTeX support for Mac applications

long_description    \
    LaTeXiT is a small utility that allows you to quickly typeset LaTeX \
    equations, without bothering with file creation, preambles, and so on. \
    The PDF image obtained can then be exported by drag'n drop to any \
    application supporting it. This is very useful to insert equations in \
    presentations made with Keynote or Powerpoint. LaTeXiT also features an \
    application service, so that you can type and transform equations \
    directly in most text editors (Pages, Nisus Writer Express, TextEdit...).

homepage            http://pierre.chachatelier.fr/programmation/latexit_en.php
master_sites        http://pierre.chachatelier.fr/programmation/fichiers/
distname            ${name}-source-${und_vers}
use_zip             yes

depends_run         bin:gs:ghostscript \
                    bin:pdftex:texlive

worksrcdir          ${name}-mainline
xcode.target        "Automator-CreateEquations" "LaTeXiT Helper" "LaTeXiT"
xcode.configuration "Development"

checksums           md5     9ed138de9cbaed6e33e6e323bfdf8856 \
                    sha1    571b5299b4d9a65a533e53963ece8278fd9056c9 \
                    rmd160  6608a2660590c28e24110b19d7441748ad837937

variant mactex description "Use MacTeX instead of TeX Live" {
    depends_run-delete    bin:pdftex:texlive
}
