# $Id: Portfile 67946 2010-05-22 15:48:33Z takanori@macports.org $

PortSystem      1.0

name            lcdf-typetools
version         2.83
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 e5526d4d05a50c12de0184a25ff0294c \
                sha1 9c1e97986aaa41ca3d4a489d950e6fea9442f5bb \
                rmd160 0dcd5a1953ef1ceecb05b4a24e1984614f09cd75

# 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.type  regex
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
