# $Id: Portfile 41808 2008-11-10 23:41:44Z ryandesign@macports.org $

PortSystem      1.0

name            lcdf-typetools
version         2.67
categories      print tex
maintainers     nomaintainer
description     Tools for manipulating fonts.
long_description \
                The LCDF Typetools package contains several programs for manipulating \
                PostScript Type 1, Type 1 multiple master, and PostScript-flavored OpenType \
                fonts.
platforms       darwin
homepage        http://www.lcdf.org/type/
master_sites    ${homepage}
checksums       md5 c26a71794482a749ec9559db0c0e5aa6 \
                sha1 8bf4525892b7458da30ff3011a8b3d9830885323 \
                rmd160 a4f075484f79492d0ac01f1294b8dcfc57385e09

# In port:pTeX, libkpathsea is installed as a static library.
depends_lib     path:include/kpathsea/kpathsea.h:texlive

configure.args  --mandir=${prefix}/share/man --with-kpathsea=${prefix}

use_parallel_build  yes

destroot.target install-strip
post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
    xinstall -m 644 -W ${worksrcpath} COPYING INSTALL NEWS ONEWS README ${destroot}${prefix}/share/doc/${name}
}

variant without_kpathsea description {Do not use libkpathsea} {
    depends_lib-delete path:include/kpathsea/kpathsea.h:texlive
    configure.args-delete --with-kpathsea=${prefix}
    configure.args-append --without-kpathsea
}

livecheck.check regex
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
