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

dports at macports.org dports at macports.org
Mon Jan 17 02:32:32 PST 2011


Revision: 75187
          http://trac.macports.org/changeset/75187
Author:   dports at macports.org
Date:     2011-01-17 02:32:22 -0800 (Mon, 17 Jan 2011)
Log Message:
-----------
texlive portgroup: regenerate all formats whenever we install
hyphenation patterns

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-01-17 10:17:12 UTC (rev 75186)
+++ trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-01-17 10:32:22 UTC (rev 75187)
@@ -323,8 +323,8 @@
             system "${prefix}/bin/fmtutil-sys --all"
         } else {
             # Otherwise, only update the config files that are
-            # actually affected, and only generate the formats that
-            # are being installed.
+            # actually affected, and only generate the needed
+            # formats.
             if {${texlive.languages} != ""} {
                 system "${prefix}/libexec/texlive-update-cnf language.dat"
                 system "${prefix}/libexec/texlive-update-cnf language.def"
@@ -335,6 +335,15 @@
             }
             if {${texlive.formats} != ""} {
                 system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
+            }
+
+            # Regenerate formats. If we installed any hyphenation
+            # patterns, then we need to regenerate all
+            # formats. Otherwise, just generate the formats we just
+            # installed.
+            if {${texlive.languages} != ""} {
+                system "${prefix}/bin/fmtutil-sys --all"                
+            } elseif {${texlive.formats} != ""} {
                 foreach x ${texlive.formats} {
                     set fmtname [lindex $x 1]
                     system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110117/b117f0c4/attachment.html>


More information about the macports-changes mailing list