Ticket #51818: Portfile.4.diff

File Portfile.4.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 \
2462a63
25> set latexml.found_tex no
2664,73c65,75
27< notes "${name} works best with some version of TeX installed. \
28<    Please consider +texlive variant, or PRE-install MacTeX and use +mactex variant."
29<
30< # The texlive variant depends on texlive
31< # and install latexml's stylefiles to texlive's texmf
32< variant texlive conflicts mactex description {Build with (macports) texlive support} {
33<     notes "Using texlive for TeX: will install styles to its texmf"
34<     depends_lib-append      port:texlive
35<     pre-configure {
36<         configure.args-append   TEXMF=${texlive_texmfports}
37---
38> # We don't want dependencies on texlive, but want to cooperate.
39> # We'll install style files where texlive expects or will expect.
40> configure.args-append   TEXMF=${texlive_texmfdist}
41>
42> # But the .packlist will need cleanup
43> post-destroot {
44>     fs-traverse file ${destroot}${prefix}/share {
45>         if {[file isfile ${file}] && [file tail ${file}] eq ".packlist"} {
46>             ui_info "Fixing paths in [string map "${destroot}${prefix}/ {}" ${file}]"
47>             reinplace -n "s|${destroot}||p" ${file}
48>         }
4975,76c77,82
50<     post-activate {
51<         texlive.mktexlsr
52---
53> }
54>
55> # Note whether we've found a TeX
56> post-activate {
57>     if [file executable ${prefix}/bin/mktexlsr] {
58>         latexml.found_tex yes
5981,89c87,99
60< # and installs latexml's stylefiles to MacTeX's texmf
61< variant mactex conflicts texlive description {Build with MacTeX support} {
62<     # check if MacTeX actually seems to be there...
63<     pre-configure {
64<         if {![file executable /usr/texbin/kpsewhich]} {
65<             ui_error "I cannot find MacTeX's kpswhich in /usr/texbin; aborting installation"
66<             return -code error "MacTeX not installed"
67<         } else {
68<             configure.args-append   TEXMF=[exec /usr/texbin/kpsewhich --expand-var='\$TEXMFLOCAL']
69---
70> # and installs latexml's stylefiles to MacTeX's texmf (local)
71> set latexml.mactex_bin ""
72> set latexml.mactex_texmf ""
73> set latexml.mactex_candidates { \
74>    "/Library/TeX/texbin" \
75>    "/usr/texbin" \
76> }
77> variant mactex description {Build with MacTeX support} {
78>     # First, check if MacTeX actually seems to be there...
79>     foreach dir ${latexml.mactex_candidates} {
80>         if [file executable "${dir}/kpsewhich"] {
81>             set latexml.mactex_bin ${dir}
82>             break
8392,95c102,108
84<     notes "Using MacTeX for TeX: will install styles to MacTeX's texmf \
85<         (outside macport's common directory structure)"
86<     post-activate {
87<         system /usr/texbin/mktexlsr
88---
89>     if { ${latexml.mactex_bin} != "" } {
90>         set latexml.mactex_texmf \
91>             [exec ${latexml.mactex_bin}/kpsewhich --expand-var='\$TEXMFLOCAL']
92>         regsub -all {'} ${latexml.mactex_texmf} "" latexml.mactex_texmf
93>         set latexml.found_tex yes
94>     } else {
95>         return -code error "Cannot find MacTeX installation; aborting"
9697a111,129
97>     post-destroot {
98>         xinstall -d ${latexml.mactex_texmf}/tex/latex/latexml
99>         foreach sty [glob ${worksrcpath}/lib/LaTeXML/texmf/*.sty] {
100>             file copy -force ${sty} ${latexml.mactex_texmf}/tex/latex/latexml/
101>         }
102>     }
103>     post-activate {
104>         system "${latexml.mactex_bin}/mktexlsr"
105>     }
106>     # Remove style files
107>     post-uninstall {
108>         foreach sty [glob -nocomplain ${latexml.mactex_texmf}/tex/latex/latexml/*.sty] {
109>             delete ${sty}
110>         }
111>         system "${latexml.mactex_bin}/mktexlsr"
112>     }
113>     notes "Using MacTeX for TeX: will install styles to MacTeX's texmf-local \
114>         ${latexml.mactex_texmf} \
115>         (which is outside macport's common directory structure)"
116101a134,138
117> if {! ${latexml.found_tex}} {
118>   notes "${name} works best with some version of TeX installed. \
119>     Please consider installing texlive, or PRE-install MacTeX and use +mactex variant."
120> }
121>