a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20473 2006-11-03 15:28:36Z blair@macports.org $
PortSystem 1.0
name gtamacfonts
version 1.0
categories tex
maintainers tristan@cs.dartmouth.edu
description Support for native Mac fonts in TeX
long_description \
gtamacfonts provides definitions for some of the common Mac \
fonts in TeX: Gill Sans, Optima, Hoefler, Didot, Baskerville, \
American Typewriter, Futura, Lucida Grande, Verdana, Georgia \
and Helvetica Neue.
platforms darwin
homepage http://ii2.sourceforge.net/tex-index.html
master_sites http://ftp.nluug.nl/comp/macosx/
distname ${name}
# due to missing version number in tarball, use version subdir
dist_subdir ${name}/${version}
checksums md5 cc2cc9def8cbda07e87a120c08438687
use_bzip2 yes
depends_lib port:teTeX port:fondu
use_configure no
set texfonts [list \
gillsans \
optima \
hoefler \
didot \
baskerville \
americantypewriter \
futura \
lucidagrande \
verdana \
georgia \
helveticaneue]
set fontfiles [list \
"/Library/Fonts/GillSans.dfont" \
"/Library/Fonts/Optima.dfont" \
"/Library/Fonts/Hoefler Text.dfont" \
"/Library/Fonts/Didot.dfont" \
"/Library/Fonts/Baskerville.dfont" \
"/Library/Fonts/AmericanTypewriter.dfont" \
"/Library/Fonts/Futura.dfont" \
"/System/Library/Fonts/LucidaGrande.dfont" \
"/Library/Fonts/Verdana" \
"/Library/Fonts/Georgia" \
"/Library/Fonts/HelveticaNeue.dfont" ]
build {
set i 0
while {$i < [llength $texfonts]} {
set font [lindex $texfonts $i]
set fontfile [lindex $fontfiles $i]
file mkdir ${workpath}/fonts/truetype/${name}/${font}
cd ${workpath}/fonts/truetype/${name}/${font}
system "${prefix}/bin/fondu \"${fontfile}\""
incr i 1
}
}
destroot {
file mkdir ${destroot}/${prefix}/share/texmf-dist
system "mv ${workpath}/{doc,fonts,tex} ${destroot}/${prefix}/share/texmf-dist"
}
post-activate {
system "${prefix}/bin/fmtutil-sys --all"
system "${prefix}/bin/mktexlsr"
system "${prefix}/bin/updmap-sys --enable Map gtamacfonts.map"
}