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

Last change on this file since 19014 was 19014, checked in by pguyot (Paul Guyot), 14 years ago

Fix an hyphenation problem existing with teTex 3.0.2.

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