PortSystem          1.0
PortGroup           xcode 1.0

name                LaTeXiT
version             2.5.0
revision            4
set und_vers        [string map {. _} ${version}]
categories          tex aqua
license             CeCILL-2
platforms           darwin
maintainers         nomaintainer
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://www.chachatelier.fr/latexit/downloads/
distname            ${name}-source-${und_vers}
use_zip             yes

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

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

checksums           rmd160  9e8917f1573978373ba09a10dd8ff2a7da90bbdb \
                    sha256  ee05be4b2305454ac767f7cf284e0aeffb9c2c26f1f294c32af1326e6214ab01

post-patch {
    reinplace "s|/usr/bin/amlint|xcrun amlint|g" ${worksrcpath}/LaTeXiT.xcodeproj/project.pbxproj
}
