# $Id: Portfile 86649 2011-10-31 03:06:27Z takanori@macports.org $

PortSystem      1.0

name            lcdf-typetools
version         2.92
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
license         GPL-2+
homepage        http://www.lcdf.org/type/
master_sites    ${homepage}
checksums       md5     1977c78d564ee152f38729e2e9a9bbc4 \
                sha1    ac7efb68d3379d9052fa6103035c3f4c95b55854 \
                rmd160  301fd383904359deb07711a58e7a3eb49a7e7035

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

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}
}

default_variants +texlive

variant texlive conflicts ptex description {Link against TeXLive's libkpathsea} {
    depends_lib-append port:texlive-bin
    configure.args-delete --without-kpathsea
    configure.args-append --with-kpathsea=${prefix}
}

variant ptex conflicts texlive description {Link against pTeX's libkpathsea} {
    # Note that pTeX installs libkpathsea as a static library.
    depends_lib-append port:pTeX
    configure.args-delete --without-kpathsea
    configure.args-append --with-kpathsea=${prefix}
}

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