PortSystem      1.0

name            makejvf
version         1.1a
categories      tex print japanese
maintainers     nomaintainer
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/

checksums       md5 7fd15c90111732cce14c5dbb6228ecb3 \
                sha1 0648f2b866978981a7752fdc66ea4f5c5907a40c \
                rmd160 a3ea1675f50d14fb1f0b37a92f018a48c85fb7cc

depends_lib     port:gettext

patch.pre_args-replace  -p0 -p1
patchfiles      patch-makejvf.diff

post-patch {
    reinplace -locale ja_JP.eucJP "s|__PREFIX__|${prefix}|g"    ${worksrcpath}/Makefile
    reinplace -locale ja_JP.eucJP "s|__DESTDIR__|${destroot}|g" ${worksrcpath}/Makefile
}

use_configure no

variant universal {}

build.target
build.args      CC="${configure.cc} [get_canonical_archflags cc]"

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
