[68650] users/dports/ports/tex/texlive-common/Portfile
dports at macports.org
dports at macports.org
Tue Jun 8 18:34:14 PDT 2010
Revision: 68650
http://trac.macports.org/changeset/68650
Author: dports at macports.org
Date: 2010-06-08 18:34:10 -0700 (Tue, 08 Jun 2010)
Log Message:
-----------
Avoid conflicts: delete ls-R file and deactivate old texlive ports
before activating texlive-common
Modified Paths:
--------------
users/dports/ports/tex/texlive-common/Portfile
Modified: users/dports/ports/tex/texlive-common/Portfile
===================================================================
--- users/dports/ports/tex/texlive-common/Portfile 2010-06-09 01:32:35 UTC (rev 68649)
+++ users/dports/ports/tex/texlive-common/Portfile 2010-06-09 01:34:10 UTC (rev 68650)
@@ -92,6 +92,22 @@
${destroot}${prefix}/libexec/texlive-update-cnf
}
+pre-activate {
+ # Delete ls-R index file if it exists
+ if [file exists ${texlive_texmflocal}/ls-R] {
+ delete ${texlive_texmflocal}/ls-R
+ }
+
+ # Deactivate any of the texlive 2007 ports. replaced_by does not
+ # accomplish this because not all of these ports conflict with
+ # this one (although they will cause problems later).
+ foreach oldport {texlive_base texlive_texmf-full texlive_texmf-minimal texlive_texmf-docs} {
+ if {![catch {registry_active $oldport}]} {
+ registry_deactivate $oldport "" [list ports_nodepcheck 1]
+ }
+ }
+}
+
post-activate {
system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
system "${prefix}/libexec/texlive-update-cnf language.dat"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100608/d69d9bb7/attachment.html>
More information about the macports-changes
mailing list