source: trunk/dports/tex/gtamacfonts/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem                      1.0
4name                            gtamacfonts
5version                         1.0
6categories                      tex
7maintainers                     cs.dartmouth.edu:tristan
8description                     Support for native Mac fonts in TeX
9long_description \
10        gtamacfonts provides definitions for some of the common Mac \
11        fonts in TeX: Gill Sans, Optima, Hoefler, Didot, Baskerville, \
12        American Typewriter, Futura, Lucida Grande, Verdana, Georgia \
13        and Helvetica Neue.
14
15platforms                       darwin
16
17homepage                        http://ii2.sourceforge.net/tex-index.html
18master_sites            http://ftp.nluug.nl/comp/macosx/
19
20distname                        ${name}
21# due to missing version number in tarball, use version subdir
22dist_subdir                     ${name}/${version}
23checksums                       md5 cc2cc9def8cbda07e87a120c08438687
24use_bzip2                       yes
25
26depends_lib                     bin:mktexlsr:texlive port:fondu
27
28use_configure           no
29
30set texfonts [list \
31        gillsans \
32        optima \
33        hoefler \
34        didot \
35        baskerville \
36        americantypewriter \
37        futura \
38        lucidagrande \
39        verdana \
40        georgia \
41        helveticaneue]
42
43set fontfiles [list \
44        "/Library/Fonts/GillSans.dfont" \
45        "/Library/Fonts/Optima.dfont" \
46        "/Library/Fonts/Hoefler Text.dfont" \
47        "/Library/Fonts/Didot.dfont" \
48        "/Library/Fonts/Baskerville.dfont" \
49        "/Library/Fonts/AmericanTypewriter.dfont" \
50        "/Library/Fonts/Futura.dfont" \
51        "/System/Library/Fonts/LucidaGrande.dfont" \
52        "/Library/Fonts/Verdana" \
53        "/Library/Fonts/Georgia" \
54        "/Library/Fonts/HelveticaNeue.dfont" ]
55       
56build {
57        set i 0
58        while {$i < [llength $texfonts]} {
59                set font [lindex $texfonts $i]
60                set fontfile [lindex $fontfiles $i]
61                file mkdir ${workpath}/fonts/truetype/${name}/${font}
62                cd ${workpath}/fonts/truetype/${name}/${font}
63                system "${prefix}/bin/fondu \"${fontfile}\""
64                incr i 1
65        }
66}
67
68destroot {
69        file mkdir ${destroot}/${prefix}/share/texmf-dist
70        system "mv ${workpath}/{doc,fonts,tex} ${destroot}/${prefix}/share/texmf-dist"
71}
72
73post-activate {
74        system "${prefix}/bin/fmtutil-sys --all"
75        system "${prefix}/bin/mktexlsr"
76        system "${prefix}/bin/updmap-sys --enable Map gtamacfonts.map"
77}
78
79
Note: See TracBrowser for help on using the repository browser.