Ticket #46896: patch-latexml-0.8.1-devans.diff
File patch-latexml-0.8.1-devans.diff, 3.7 KB (added by dbevans (David B. Evans), 9 years ago) |
---|
-
Portfile
6 6 PortSystem 1.0 7 7 8 8 name LaTeXML 9 version 0.8.0 10 revision 1 11 categories tex 9 version 0.8.1 12 10 maintainers nist.gov:bruce.miller 13 11 description LaTeXML converts TeX to XML/HTML/MathML 14 12 long_description \ … … 16 14 17 15 # Written in Perl, but it is an application, not just modules 18 16 PortGroup perl5 1.0 19 perl5.branches 5. 8 5.10 5.12 5.14 5.16 5.18 5.2017 perl5.branches 5.16 20 18 perl5.setup ${name} ${version} 21 19 perl5.link_binaries_suffix 22 20 21 categories tex 23 22 homepage http://dlmf.nist.gov/LaTeXML/ 24 23 25 24 platforms darwin 25 supported_archs noarch 26 26 27 master_sites ${homepage}/releases/ 27 checksums rmd160 cfafc6f4f5e276543333f907a1ec0db3c25e424f\28 sha256 a495019f2828f0734e9e41f0398f6c8d60ba6a934d4ccad4fea7d588ab06038828 checksums rmd160 312f0a3d74db75a9210220ab8ea4a1c3f95c6f71 \ 29 sha256 ea264e1c11210e219a46b7699a578d8632c7bbb6eaea5b06d2eb094122cbab2f 29 30 # Use: 30 31 # openssl rmd160 LaTeXML-0.8.0.tar.gz 31 32 # openssl sha256 LaTeXML-0.8.0.tar.gz … … 32 33 33 34 #============================================================ 34 35 # Dependencies 35 if {${perl5.major} ne ""} { 36 depends_lib-append \ 36 depends_lib-append \ 37 37 port:p${perl5.major}-archive-zip \ 38 38 port:p${perl5.major}-file-which \ 39 39 port:p${perl5.major}-getopt-long \ … … 47 47 port:p${perl5.major}-xml-libxml \ 48 48 port:p${perl5.major}-xml-libxslt \ 49 49 port:p${perl5.major}-perlmagick 50 }51 # Also requires: DB_File, Pod::Parser and Test::More52 # but those should be in Perl's core modules.53 50 51 # Also requires: DB_File, Pod::Parser, Test::More & version 52 # but those should be in any non-obsolete Perl's core modules. 53 54 54 #============================================================ 55 55 # LaTeXML works MUCH better if there is a TeX installed. 56 56 # - it uses some latex style files from texlive within bindings … … 63 63 64 64 # The texlive variant depends on texlive 65 65 # and install latexml's stylefiles to texlive's texmf 66 variant texlive description {Build with (macports) texlive support} {66 variant texlive conflicts mactex description {Build with (macports) texlive support} { 67 67 notes "Using texlive for TeX: will install styles to its texmf" 68 68 depends_lib-append port:texlive 69 configure.args-append TEXMF=[exec kpsewhich --expand-var='\$TEXMFLOCAL'] 69 pre-configure { 70 configure.args-append TEXMF=[exec kpsewhich --expand-var='\$TEXMFLOCAL'] 71 } 70 72 post-activate { 71 73 system "mktexlsr" 72 74 } … … 74 76 75 77 # The mactex variant expects MacTeX to be installed 76 78 # and installs latexml's stylefiles to MacTeX's texmf 77 variant mactex description {Build with MacTeX support} {79 variant mactex conflicts texlive description {Build with MacTeX support} { 78 80 # check if MacTeX actually seems to be there... 79 81 pre-configure { 80 82 if {![file executable /usr/texbin/kpsewhich]} { 81 83 ui_error "I cannot find MacTeX's kpswhich in /usr/texbin; aborting installation" 82 return -code error 84 return -code error "MacTeX not installed" 85 } else { 86 configure.args-append TEXMF=[exec /usr/texbin/kpsewhich --expand-var='\$TEXMFLOCAL'] 83 87 } 84 88 } 85 89 notes "Using MacTeX for TeX: will install styles to MacTeX's texmf \ 86 90 (outside macport's common directory structure)" 87 configure.args-append TEXMF=[exec /usr/texbin/kpsewhich --expand-var='\$TEXMFLOCAL']88 91 post-activate { 89 92 system /usr/texbin/mktexlsr 90 93 }