source: trunk/dports/tex/XeTeX/Portfile @ 19600

Last change on this file since 19600 was 19600, checked in by pguyot@…, 14 years ago

tex/XeTeX: update to 0.995

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