[82273] trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

dports at macports.org dports at macports.org
Thu Aug 11 14:29:16 PDT 2011


Revision: 82273
          http://trac.macports.org/changeset/82273
Author:   dports at macports.org
Date:     2011-08-11 14:29:16 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
texlive-documentation-*: only try to run mktexlsr if it's there; it
might not since texlive-basic isn't actually a dependency

This is mainly for the benefit of the buildbot, as well as anyone who
enjoys documentation so much that they install only the texlive docs.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/texlive-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-11 21:26:59 UTC (rev 82272)
+++ trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-11 21:29:16 UTC (rev 82273)
@@ -415,6 +415,15 @@
     }
 
     post-activate {
+        # Disable mktexlsr if it's not installed and this is a
+        # texlive-documentation-* port. It's possible (if unlikely) to
+        # install them without texlive-basic, so mktexlsr might not
+        # exist, but if it does we do want to run it.
+        if {[regexp {^texlive-documentation-} $name] &&
+            ![file exists ${prefix}/bin/mktexlsr]} {
+            texlive.use_mktexlsr no
+        }
+        
         if {${texlive.use_mktexlsr}} {
             texlive.mktexlsr
         }
@@ -465,6 +474,13 @@
     }
 
     post-deactivate {
+        # Disable mktexlsr if it's not installed and this is a
+        # texlive-documentation-* port. See post-activate for why.
+        if {[regexp {^texlive-documentation-} $name] &&
+            ![file exists ${prefix}/bin/mktexlsr]} {
+            texlive.use_mktexlsr no
+        }
+
         # Update ls-R and any config files to reflect that the package
         # is now gone
         if {${texlive.use_mktexlsr} && ${texlive.use_mktexlsr_on_deactivate}} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/16fec8dd/attachment.html>


More information about the macports-changes mailing list