Ticket #51818: Portfile.3.diff

File Portfile.3.diff, 4.6 KB (added by brucemiller (bruce miller), 8 years ago)
Line 
110,11c10
2< version             0.8.1
3< revision            1
4---
5> version             0.8.2
620c19
7< perl5.branches      5.22
8---
9> perl5.branches      5.24
1031,32c30,31
11< checksums           rmd160 312f0a3d74db75a9210220ab8ea4a1c3f95c6f71 \
12<                     sha256 ea264e1c11210e219a46b7699a578d8632c7bbb6eaea5b06d2eb094122cbab2f
13---
14> checksums           rmd160 6dbf960277cdcf30605ce93335e3383673c1ff66 \
15>                     sha256 3d41a3012760d31d721b569d8c1b430cde1df2b68fcc3c66f41ec640965caabf
1634,35c33,34
17< # openssl rmd160 LaTeXML-0.8.0.tar.gz
18< # openssl sha256 LaTeXML-0.8.0.tar.gz
19---
20> # openssl rmd160 LaTeXML-0.8.2.tar.gz
21> # openssl sha256 LaTeXML-0.8.2.tar.gz
2247a47
23>         port:p${perl5.major}-text-unidecode \
2463,73c63,72
25<
26< notes "${name} works best with some version of TeX installed. \
27<    Please consider +texlive variant, or PRE-install MacTeX and use +mactex variant."
28<
29< # The texlive variant depends on texlive
30< # and install latexml's stylefiles to texlive's texmf
31< variant texlive conflicts mactex description {Build with (macports) texlive support} {
32<     notes "Using texlive for TeX: will install styles to its texmf"
33<     depends_lib-append      port:texlive
34<     pre-configure {
35<         configure.args-append   TEXMF=${texlive_texmfports}
36---
37> set latexml.found_tex no
38> # No texmf install via Makefile.
39> configure.args-append   TEXMF=
40>
41> # We don't want dependencies on texlive, but want to cooperate.
42> # We'll install style files where texlive expects or will expect.
43> post-destroot {
44>     xinstall -d ${destroot}${texlive_texmfdist}/tex/latex/latexml
45>     foreach sty [glob ${worksrcpath}/lib/LaTeXML/texmf/*.sty] {
46>         file copy -force ${sty} ${destroot}${texlive_texmfdist}/tex/latex/latexml/
4775,76c74,80
48<     post-activate {
49<         texlive.mktexlsr
50---
51> }
52> # invoke mktexlsr IFF texlive already installed;
53> # otherwise texlive will do it if it's ever installed.
54> post-activate {
55>     if [file executable ${prefix}/bin/mktexlsr] {
56>         latexml.found_tex yes
57>         ${texlive.mktexlsr}
5881,89c85,97
59< # and installs latexml's stylefiles to MacTeX's texmf
60< variant mactex conflicts texlive description {Build with MacTeX support} {
61<     # check if MacTeX actually seems to be there...
62<     pre-configure {
63<         if {![file executable /usr/texbin/kpsewhich]} {
64<             ui_error "I cannot find MacTeX's kpswhich in /usr/texbin; aborting installation"
65<             return -code error "MacTeX not installed"
66<         } else {
67<             configure.args-append   TEXMF=[exec /usr/texbin/kpsewhich --expand-var='\$TEXMFLOCAL']
68---
69> # and installs latexml's stylefiles to MacTeX's texmf (local)
70> set latexml.mactex_bin ""
71> set latexml.mactex_texmf ""
72> set latexml.mactex_candidates { \
73>    "/Library/TeX/texbin" \
74>    "/usr/texbin" \
75> }
76> variant mactex description {Build with MacTeX support} {
77>     # First, check if MacTeX actually seems to be there...
78>     foreach dir ${latexml.mactex_candidates} {
79>         if [file executable "${dir}/kpsewhich"] {
80>             set latexml.mactex_bin ${dir}
81>             break
8292,95c100,106
83<     notes "Using MacTeX for TeX: will install styles to MacTeX's texmf \
84<         (outside macport's common directory structure)"
85<     post-activate {
86<         system /usr/texbin/mktexlsr
87---
88>     if { ${latexml.mactex_bin} != "" } {
89>         set latexml.mactex_texmf \
90>             [exec ${latexml.mactex_bin}/kpsewhich --expand-var='\$TEXMFLOCAL']
91>         regsub -all {'} ${latexml.mactex_texmf} "" latexml.mactex_texmf
92>         set latexml.found_tex yes
93>     } else {
94>         return -code error "Cannot find MacTeX installation; aborting"
9597a109,127
96>     post-destroot {
97>         xinstall -d ${latexml.mactex_texmf}/tex/latex/latexml
98>         foreach sty [glob ${worksrcpath}/lib/LaTeXML/texmf/*.sty] {
99>             file copy -force ${sty} ${latexml.mactex_texmf}/tex/latex/latexml/
100>         }
101>     }
102>     post-activate {
103>         system "${latexml.mactex_bin}/mktexlsr"
104>     }
105>     # Remove style files
106>     post-uninstall {
107>         foreach sty [glob -nocomplain ${latexml.mactex_texmf}/tex/latex/latexml/*.sty] {
108>             delete ${sty}
109>         }
110>         system "${latexml.mactex_bin}/mktexlsr"
111>     }
112>     notes "Using MacTeX for TeX: will install styles to MacTeX's texmf-local \
113>         ${latexml.mactex_texmf} \
114>         (which is outside macport's common directory structure)"
115101a132,136
116> if {! ${latexml.found_tex}} {
117>   notes "${name} works best with some version of TeX installed. \
118>     Please consider installing texlive, or PRE-install MacTeX and use +mactex variant."
119> }
120>