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), 4 years ago)

Maintainer's proposed patch as revised by devans

  • Portfile

     
    66PortSystem          1.0
    77
    88name                LaTeXML
    9 version             0.8.0
    10 revision            1
    11 categories          tex
     9version             0.8.1
    1210maintainers         nist.gov:bruce.miller
    1311description         LaTeXML converts TeX to XML/HTML/MathML
    1412long_description \
     
    1614
    1715# Written in Perl, but it is an application, not just modules
    1816PortGroup           perl5 1.0
    19 perl5.branches      5.8 5.10 5.12 5.14 5.16 5.18 5.20
     17perl5.branches      5.16
    2018perl5.setup         ${name} ${version}
    2119perl5.link_binaries_suffix
    2220
     21categories          tex
    2322homepage            http://dlmf.nist.gov/LaTeXML/
    2423
    2524platforms           darwin
     25supported_archs     noarch
     26
    2627master_sites        ${homepage}/releases/
    27 checksums           rmd160 cfafc6f4f5e276543333f907a1ec0db3c25e424f \
    28                     sha256 a495019f2828f0734e9e41f0398f6c8d60ba6a934d4ccad4fea7d588ab060388
     28checksums           rmd160 312f0a3d74db75a9210220ab8ea4a1c3f95c6f71 \
     29                    sha256 ea264e1c11210e219a46b7699a578d8632c7bbb6eaea5b06d2eb094122cbab2f
    2930# Use:
    3031# openssl rmd160 LaTeXML-0.8.0.tar.gz
    3132# openssl sha256 LaTeXML-0.8.0.tar.gz
     
    3233
    3334#============================================================
    3435# Dependencies
    35 if {${perl5.major} ne ""} {
    36     depends_lib-append \
     36depends_lib-append \
    3737        port:p${perl5.major}-archive-zip \
    3838        port:p${perl5.major}-file-which \
    3939        port:p${perl5.major}-getopt-long \
     
    4747        port:p${perl5.major}-xml-libxml \
    4848        port:p${perl5.major}-xml-libxslt \
    4949        port:p${perl5.major}-perlmagick
    50 }
    51 # Also requires: DB_File, Pod::Parser and Test::More
    52 # but those should be in Perl's core modules.
    5350
     51# Also requires: DB_File, Pod::Parser, Test::More & version
     52# but those should be in any non-obsolete Perl's core modules.
     53
    5454#============================================================
    5555# LaTeXML works MUCH better if there is a TeX installed.
    5656# - it uses some latex style files from texlive within bindings
     
    6363
    6464# The texlive variant depends on texlive
    6565# and install latexml's stylefiles to texlive's texmf
    66 variant texlive description {Build with (macports) texlive support} {
     66variant texlive conflicts mactex description {Build with (macports) texlive support} {
    6767    notes "Using texlive for TeX: will install styles to its texmf"
    6868    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    }
    7072    post-activate {
    7173        system "mktexlsr"
    7274    }
     
    7476
    7577# The mactex variant expects MacTeX to be installed
    7678# and installs latexml's stylefiles to MacTeX's texmf
    77 variant mactex description {Build with MacTeX support} {
     79variant mactex conflicts texlive description {Build with MacTeX support} {
    7880    # check if MacTeX actually seems to be there...
    7981    pre-configure {
    8082        if {![file executable /usr/texbin/kpsewhich]} {
    8183            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']
    8387        }
    8488    }
    8589    notes "Using MacTeX for TeX: will install styles to MacTeX's texmf \
    8690        (outside macport's common directory structure)"
    87     configure.args-append   TEXMF=[exec /usr/texbin/kpsewhich --expand-var='\$TEXMFLOCAL']
    8891    post-activate {
    8992        system /usr/texbin/mktexlsr
    9093    }