root/trunk/dports/tex/XeTeX/Portfile

Revision 28165, 3.0 kB (checked in by ryandesign@macports.org, 1 year ago)

Correct the name of our fair operating system.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 # $Id$
2
3 PortSystem 1.0
4 name                            XeTeX
5 version                         0.995
6 categories                      tex print textproc
7 maintainers                     pguyot@kallisys.net
8 description                     The XeTeX typesetting system
9 long_description        The XeTeX typesetting system is based on a merger of TeX \
10                                         with Unicode and Mac OS X font technologies.
11 homepage                        http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=XeTeX
12 platforms                       darwin
13 depends_lib                     bin:mktexlsr:teTeX \
14                                         port:xdvipdfmx
15 distname                        [string tolower $name]-${version}
16 master_sites            http://scripts.sil.org/svn-view/xetex/TAGS/
17 checksums                       md5 9ce454a4b1a33710b66b4e18f650e34e \
18                                         rmd160 d556b65a4fb7038589386a0cfe4f16d2d015f40e \
19                                         sha1 f38b9efb031b978fb8f77653db71526c3d1f32f3
20 # This patch makes sure we use DP's path instead of relying on kpsewhich.
21 patchfiles                      patch-runConfigure.sh \
22                                         patch-install-xetex \
23                                         patch-texk-web2c-xetexdir-XeTeX_mac.c \
24                                         patch-texk-xdv2pdf-xdv2pdf.cpp
25 post-patch {
26         reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/runConfigure.sh
27         reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/install-xetex
28         reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/install-xetex
29 }
30
31 use_configure   no
32 pre-build {
33         system "chmod +x ${worksrcpath}/build-xetex"
34 }
35 build.cmd "./build-xetex"
36
37 set hyphen_files [list \
38         czhyph.tex \
39         dehyphn.tex \
40         dehypht.tex \
41         dkhyphen.tex \
42         gahyph.tex \
43         hrhyph.tex \
44         huhyph.tex \
45         plhyph.tex \
46         rohyphen.tex \
47         sihyph23.tex \
48         skhyph.tex \
49         trhyph.tex]
50 set hyphen_files_prefix ${prefix}/share/texmf-dist/tex/generic/hyphen/
51
52 pre-destroot {
53         system "chmod +x ${worksrcpath}/install-xetex"
54 }
55 destroot.cmd "./install-xetex"
56
57 post-destroot {
58         # fmtutil.cnf
59         file mkdir ${destroot}${prefix}/share/texmf-config/web2c/
60         xinstall -m 644 ${portpath}/${filesdir}/fmtutil.cnf \
61                         ${destroot}${prefix}/share/texmf-config/web2c/
62
63         # hyphen files
64         foreach hyphen_file $hyphen_files {
65                 system "mv ${destroot}${hyphen_files_prefix}${hyphen_file} \
66                 ${destroot}${hyphen_files_prefix}${hyphen_file}.xetex"
67         }
68        
69         file mkdir ${destroot}${prefix}/share/texmf-dist/tex/generic/config/
70         xinstall -m 644 ${portpath}/${filesdir}/language.dat \
71                 ${destroot}${prefix}/share/texmf-dist/tex/generic/config/language.dat.xetex
72 }
73
74 post-activate   {
75         # hyphen files
76         foreach hyphen_file $hyphen_files {
77                 system "cp -p ${hyphen_files_prefix}${hyphen_file}.xetex \
78                 ${hyphen_files_prefix}${hyphen_file}"
79         }
80        
81         # language.dat file
82         system "cp -p \
83                 ${prefix}/share/texmf-dist/tex/generic/config/language.dat.xetex \
84                 ${prefix}/share/texmf-dist/tex/generic/config/language.dat"
85
86         system "\
87                 texhash && \
88                 fmtutil-sys --enablefmt xetex && \
89                 fmtutil-sys --byfmt xetex && \
90                 fmtutil-sys --enablefmt xelatex && \
91                 fmtutil-sys --byfmt xelatex && \
92                 texlinks --silent"
93
94         # These are required so that local additions are picked
95         # up if teTeX is updated:
96         system "mktexlsr"
97         system "updmap-sys"
98 }
99
100 livecheck.check         regex
101 livecheck.url           http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=xetex_download
102 livecheck.regex         <h2>Version (\[0-9a-z.\]+), released \[0-9\]{4}-\[0-9\]{2}-\[0-9\]{2}</h2>
Note: See TracBrowser for help on using the browser.