Changeset 74957 for trunk/dports/tex


Ignore:
Timestamp:
Jan 9, 2011, 11:28:02 PM (9 years ago)
Author:
dports@…
Message:

latexdiff: add preactivate hook to avoid conflicts by deactivating old
version of texlive-bin-extra that contains latexdiff (see #27258)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/latexdiff/Portfile

    r41580 r74957  
    4949        xinstall -m 644 ${worksrcpath}/example/example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
    5050}
     51
     52pre-activate {
     53    # texlive-bin-extra used to contain latexdiff, but doesn't
     54    # anymore. If the old version is installed, deactivate it to avoid
     55    # a conflict.
     56    if {[file exists $prefix/bin/latexdiff]
     57        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
     58        && [rpm-vercomp [lindex $vers 1] 19536] < 0} {
     59        registry_deactivate texlive-bin-extra "" [list ports_nodepcheck 1]
     60    }
     61}
Note: See TracChangeset for help on using the changeset viewer.