Portfile

# $Id: Portfile 21137 2007-01-06 10:25:03Z pguyot@kallisys.net $

PortSystem 1.0
name dvipdfmx
version 20061211
description Multi-byte aware replacement for dvipdf
long_description The DVIPDFMx project provides an eXtended version of the \
dvipdfm, a DVI format to PDF translator developed by Mark \
A. Wicks. The primary goal of this project is to support \
multi-byte character encodings and large character sets \
for East Asian languages by CID-keyed font technology. The \
secondary goal is to support as many features as pdfTeX \
developed by Hˆn Th Thˆnh. This project is a combined \
work of the dvipdfm-jpn project by Shunsaku Hirata and \
its modified one, dvipdfm-kor by Jin-Hwan Cho. \
\
This port includes Omega font metric for Japanese Adobe \
fonts.
platforms darwin
categories print
maintainers pguyot@kallisys.net
homepage http://project.ktug.or.kr/dvipdfmx/
master_sites ${homepage}snapshot/current/:dvipdfmx \
http://oku.edu.mie-u.ac.jp/~okumura/texfaq/japanese/:omrml \
http://project.ktug.or.kr/omega-cjk/cjk-otp/:omhysm
distfiles [suffix ${distname}]:dvipdfmx \
omrml.ofm:omrml \
omhysm.ofm:omhysm
checksums [suffix ${distname}] \
md5 a93c39a8af1e42b59bb958639234417b \
sha1 653a75945d3b4ec3a13939936269f5b3d735ec49 \
rmd160 bd37f6bf208204c146820e3ce2734c65bbbd0d1a \
omrml.ofm \
md5 20802bf39ec990eadb9e349c64a47595 \
sha1 eb91eb976a645f5975edfb27d9e3026728954c06 \
rmd160 d16d53ff6651c6977898ac3830cdacfcb707da94 \
omhysm.ofm \
md5 0b3bdd8fa303eb7dac5599ca50b13ab9 \
sha1 e4ca64147214ddd46ae51c59c4337cc4a9d52fe2 \
rmd160 41fc10b5c603efcf8661f14e6551a048bfe550af
patchfiles patch-data-config-cid-x.map
depends_lib lib:libkpathsea:teTeX \
lib:libpng:libpng \
lib:libz:zlib
depends_run port:ghostscript
configure.env CFLAGS=-I${prefix}/include \
LDFLAGS=-L${prefix}/lib

# only extract the tarball.
extract.only [suffix ${distname}]

post-destroot {
# copy omrml.ofm where it belongs (as omrml.ofm & omgbm.ofm)
file mkdir ${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/japanese/
xinstall ${distpath}/omrml.ofm \
${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/japanese/
xinstall ${distpath}/omrml.ofm \
${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/japanese/omgbm.ofm
# copy omhysm.ofm where it belongs (as omhysm.ofm & omhygt.ofm)
file mkdir ${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/korean/
xinstall ${distpath}/omhysm.ofm \
${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/korean/
xinstall ${distpath}/omhysm.ofm \
${destroot}${prefix}/share/texmf-dist/fonts/ofm/public/korean/omhygt.ofm
# copy ghostscript encodings
foreach encoding [glob ${prefix}/share/ghostscript/*/Resource/CMap/*] {
set encname [file tail $encoding]
if {![file exists ${destroot}${prefix}/share/texmf/dvipdfm/CMap/$encname]} {
xinstall $encoding ${destroot}${prefix}/share/texmf/dvipdfm/CMap/
}
}
}
post-activate {
system "mktexlsr"
}

files