[82189] trunk/dports

dports at macports.org dports at macports.org
Tue Aug 9 18:48:03 PDT 2011


Revision: 82189
          http://trac.macports.org/changeset/82189
Author:   dports at macports.org
Date:     2011-08-09 18:48:03 -0700 (Tue, 09 Aug 2011)
Log Message:
-----------
texlive portgroup: do not run mktexlsr in post-deactivate if
use_mktexlsr is disabled. Add a use_mktexlsr_on_deactivate to allow
disabling mktexlsr only on deactivate.

Set `use_mktexlsr_on_deactivate no` on texlive-basic. It should run
mktexlsr on activate, but can't on deactivate because it's the port
that installs mktexlsr.

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

Modified: trunk/dports/_resources/port1.0/group/texlive-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-10 01:47:48 UTC (rev 82188)
+++ trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-10 01:48:03 UTC (rev 82189)
@@ -146,11 +146,16 @@
 options texlive.forceupdatecnf
 default texlive.forceupdatecnf no
 
-# Whether to run mktexlsr after activation. Usually required if
+# Whether to run mktexlsr after (de)activation. Usually required if
 # installing any texmf files.
 options texlive.use_mktexlsr
 default texlive.use_mktexlsr yes
 
+# Running mktexlsr after deactivation can be disabled separately. Note
+# that the value of this option is ignored if use_mktexlsr is disabled.
+options texlive.use_mktexlsr_on_deactivate
+default texlive.use_mktexlsr_on_deactivate yes
+
 proc texlive.texmfport {} {
     homepage        http://www.tug.org/texlive/
     platforms       darwin
@@ -462,7 +467,9 @@
     post-deactivate {
         # Update ls-R and any config files to reflect that the package
         # is now gone
-        texlive.mktexlsr
+        if {${texlive.use_mktexlsr} && ${texlive.use_mktexlsr_on_deactivate}} {
+            texlive.mktexlsr
+        }
         if {${texlive.forceupdatecnf} || ${texlive.languages} != ""} {
             system "${prefix}/libexec/texlive-update-cnf language.dat"
             system "${prefix}/libexec/texlive-update-cnf language.def"

Modified: trunk/dports/tex/texlive-basic/Portfile
===================================================================
--- trunk/dports/tex/texlive-basic/Portfile	2011-08-10 01:47:48 UTC (rev 82188)
+++ trunk/dports/tex/texlive-basic/Portfile	2011-08-10 01:48:03 UTC (rev 82189)
@@ -6,7 +6,7 @@
 
 name                texlive-basic
 version             23152
-revision            0
+revision            1
 
 categories          tex
 maintainers         dports
@@ -96,5 +96,6 @@
 }
 
 texlive.forceupdatecnf yes
+texlive.use_mktexlsr_on_deactivate no
 
 texlive.texmfport
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110809/fa42219d/attachment.html>


More information about the macports-changes mailing list