[74957] trunk/dports/tex/latexdiff/Portfile

dports at macports.org dports at macports.org
Sun Jan 9 15:28:09 PST 2011


Revision: 74957
          http://trac.macports.org/changeset/74957
Author:   dports at macports.org
Date:     2011-01-09 15:28:02 -0800 (Sun, 09 Jan 2011)
Log Message:
-----------
latexdiff: add preactivate hook to avoid conflicts by deactivating old
version of texlive-bin-extra that contains latexdiff (see #27258)

Modified Paths:
--------------
    trunk/dports/tex/latexdiff/Portfile

Modified: trunk/dports/tex/latexdiff/Portfile
===================================================================
--- trunk/dports/tex/latexdiff/Portfile	2011-01-09 23:26:59 UTC (rev 74956)
+++ trunk/dports/tex/latexdiff/Portfile	2011-01-09 23:28:02 UTC (rev 74957)
@@ -48,3 +48,14 @@
 	xinstall -m 644 ${worksrcpath}/example/example-draft.tex ${destroot}${prefix}/share/doc/${name}/example
 	xinstall -m 644 ${worksrcpath}/example/example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
 }
+
+pre-activate {
+    # texlive-bin-extra used to contain latexdiff, but doesn't
+    # anymore. If the old version is installed, deactivate it to avoid
+    # a conflict.
+    if {[file exists $prefix/bin/latexdiff] 
+        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
+        && [rpm-vercomp [lindex $vers 1] 19536] < 0} {
+        registry_deactivate texlive-bin-extra "" [list ports_nodepcheck 1]
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110109/b0ffb8f9/attachment.html>


More information about the macports-changes mailing list