# $Id: Portfile 85954 2011-10-17 22:30:51Z takanori@macports.org $

PortSystem      1.0

name            makejvf
version         1.1a
categories      tex print japanese
maintainers     takanori openmaintainer
description     Japanese Virtual Font file maker.
long_description \
                ${description}
platforms       darwin
license         BSD
homepage        http://ascii.asciimw.jp/pb/ptex/base/sources.html
master_sites    macports \
                ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/jvf/
patchfiles      patch-makejvf.diff
checksums       md5 7fd15c90111732cce14c5dbb6228ecb3 \
                sha1 0648f2b866978981a7752fdc66ea4f5c5907a40c \
                rmd160 a3ea1675f50d14fb1f0b37a92f018a48c85fb7cc

depends_lib     port:gettext

patch.pre_args  -p1

configure {
    reinplace "s|__PREFIX__|${prefix}|"    ${worksrcpath}/Makefile
    reinplace "s|__DESTDIR__|${destroot}|" ${worksrcpath}/Makefile
}

build.target
use_parallel_build  yes

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} COPYRIGHT COPYRIGHT.jis Changes.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}
}

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