1 | --- Portfile.org Mon Jul 21 17:48:09 2003 |
---|
2 | +++ Portfile Mon Jul 21 18:21:27 2003 |
---|
3 | @@ -1,4 +1,4 @@ |
---|
4 | -# $Id: Portfile,v 1.11 2003/03/03 07:12:26 mij Exp $ |
---|
5 | +# $Id: Exp $ |
---|
6 | |
---|
7 | PortSystem 1.0 |
---|
8 | name teTeX |
---|
9 | @@ -12,72 +12,47 @@ |
---|
10 | the lengthy FEATURES file of the distribution. |
---|
11 | platforms darwin |
---|
12 | maintainers landonf@opendarwin.org |
---|
13 | -depends_lib lib:libpng.3:libpng lib:libwwwcore.0:libwww |
---|
14 | |
---|
15 | -set tetex_src teTeX-src-1.0.7.tar.gz |
---|
16 | -set tetex_texmf teTeX-texmf-1.0.2.tar.gz |
---|
17 | +set tetex_src tetex-src-2.0.2.tar.gz |
---|
18 | +set tetex_texmf tetex-texmf-2.0.2.tar.gz |
---|
19 | set tetex_texmftree ${destroot}/${prefix}/share/texmf |
---|
20 | |
---|
21 | -master_sites ftp://wuarchive.wustl.edu/packages/TeX/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
22 | - ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
23 | - ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
24 | - ftp://ftp.cise.ufl.edu/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
25 | - ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
26 | - ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
27 | - ftp://sunsite.auc.dk/pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
28 | - ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
29 | - ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
30 | - ftp://ftp.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
31 | - http://www.dnsbalance.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
32 | - ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/1.0/distrib/sources/ \ |
---|
33 | - http://distfiles.opendarwin.org/:lt |
---|
34 | +master_sites ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib \ |
---|
35 | + ftp://ftp.funet.fi/pub/TeX/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
36 | + ftp://ctan.unsw.edu.au/tex-archive/systems/unix/teTeX/2.0/distrib/ \ |
---|
37 | + ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX/2.0/distrib/ \ |
---|
38 | + ftp://ftp.kddlabs.co.jp/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
39 | + ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
40 | + ftp://ctan.tug.org/tex-archive/systems/unix/teTeX/2.0/distrib/ \ |
---|
41 | + ftp://ftp.dante.de/tex-archive/systems/unix/teTeX/2.0/distrib/ \ |
---|
42 | + ftp://gd.tuwien.ac.at/publishing/tex/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
43 | + ftp://ftp.ntnu.no/pub/tex/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
44 | + ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
45 | + http://www.t.ring.gr.jp/archives/text/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
46 | + ftp://ftp.chg.ru/pub/TeX/CTAN/systems/unix/teTeX/2.0/distrib/ \ |
---|
47 | + ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \ |
---|
48 | |
---|
49 | dist_subdir teTeX |
---|
50 | -distfiles ${tetex_src} ${tetex_texmf} ltconfig13:lt ltmain13:lt |
---|
51 | -checksums ${tetex_src} md5 2c6da2a45096c2fdc41b8de6a8af1a52 \ |
---|
52 | - ${tetex_texmf} md5 7811ed356cca07b16ea8422f00c3cd34 \ |
---|
53 | - ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \ |
---|
54 | - ltmain13 md5 e094ae92724c4015dbab97de151c2525 |
---|
55 | +distfiles ${tetex_src} ${tetex_texmf} |
---|
56 | +checksums ${tetex_src} md5 a16f6bba227d55e79aeee46fbbd82d28 \ |
---|
57 | + ${tetex_texmf} md5 d3bdb96f9077e43b2115d3cc471743b3 |
---|
58 | |
---|
59 | extract.only ${tetex_src} |
---|
60 | -worksrcdir teTeX-1.0 |
---|
61 | +worksrcdir tetex-src-2.0.2 |
---|
62 | |
---|
63 | -patchfiles patch-autoconf |
---|
64 | - |
---|
65 | -post-patch { system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig" |
---|
66 | - system "cp ${distpath}/ltmain13 ${worksrcpath}/config/ltmain.sh" |
---|
67 | -} |
---|
68 | - |
---|
69 | -configure.type gnu |
---|
70 | -configure.args --disable-multiplatform --without-texinfo --without-dialog \ |
---|
71 | - --with-system-ncurses --with-system-zlib --with-system-wwwlib \ |
---|
72 | - --with-libwww-libdir=${prefix}/lib \ |
---|
73 | - --with-libwww-include=${prefix}/include/w3c-libwww \ |
---|
74 | - --with-system-pnglib --with-pnglib-libdir=${prefix}/lib \ |
---|
75 | - --with-pnglib-include=${prefix}/include |
---|
76 | -# Apple gcc3 bug |
---|
77 | -configure.env CXXFLAGS=-fno-rtti CPPFLAGS=-no-cpp-precomp |
---|
78 | +configure.args --disable-multiplatform |
---|
79 | |
---|
80 | pre-install { file mkdir ${tetex_texmftree}; cd ${tetex_texmftree} |
---|
81 | - system "tar xfz ${distpath}/${tetex_texmf}" |
---|
82 | + system "tar vxfz ${distpath}/${tetex_texmf}" |
---|
83 | } |
---|
84 | |
---|
85 | post-install { |
---|
86 | # ranlib static library to keep darwin happy |
---|
87 | system "ranlib ${destroot}/${prefix}/lib/libkpathsea.a" |
---|
88 | # Modify mktex.opt to force use of varfonts |
---|
89 | - reinplace s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g' ${destroot}/${prefix}/share/texmf/web2c/mktex.opt |
---|
90 | - # Rename 'dialog' to 'tcdialog' |
---|
91 | - file move ${destroot}/${prefix}/man1/dialog.1 ${destroot}/${prefix}/man1/tcdialog.1 |
---|
92 | - file move ${destroot}/${prefix}/bin/dialog ${destroot}/${prefix}/bin/tcdialog |
---|
93 | - |
---|
94 | - # Create a local texmf tree |
---|
95 | - file mkdir ${destroot}/${prefix}/share/texmf.local/web2c |
---|
96 | - |
---|
97 | - # Create the texmf.macosx tree |
---|
98 | - file mkdir ${destroot}/${prefix}/share/texmf.macosx/web2c |
---|
99 | + reinplace s|MT_FEATURES=appendonlydir|MT_FEATURES=appendonlydir:varfonts|g ${destroot}/${prefix}/share/texmf/web2c/mktex.cnf |
---|
100 | } |
---|
101 | |
---|
102 | - |
---|
103 | +install.env TEXMFCNF=${destroot}/${prefix}/share/texmf/web2c/ |
---|
104 | install.target install strip |
---|
105 | install.destroot prefix=${destroot}/${prefix}/ texmf=${destroot}/${prefix}/ |
---|