[74946] trunk/dports/tex/texlive-common/Portfile
dports at macports.org
dports at macports.org
Sun Jan 9 00:37:54 PST 2011
Revision: 74946
http://trac.macports.org/changeset/74946
Author: dports at macports.org
Date: 2011-01-09 00:37:47 -0800 (Sun, 09 Jan 2011)
Log Message:
-----------
texlive-common: delete any conflicting ls-R files in any of the
installed texmf directories; and simplify code that operates on all
texmf directories
Modified Paths:
--------------
trunk/dports/tex/texlive-common/Portfile
Modified: trunk/dports/tex/texlive-common/Portfile
===================================================================
--- trunk/dports/tex/texlive-common/Portfile 2011-01-09 02:37:04 UTC (rev 74945)
+++ trunk/dports/tex/texlive-common/Portfile 2011-01-09 08:37:47 UTC (rev 74946)
@@ -46,23 +46,23 @@
build { }
+set texmfdirs [list ${texlive_texmfmain} \
+ ${texlive_texmfdist} \
+ ${texlive_texmfports} \
+ ${texlive_texmflocal} \
+ ${texlive_texmfsysvar} \
+ ${texlive_texmfsysconfig}]
destroot {
# Create texmf directories
- xinstall -d ${destroot}${texlive_texmfmain}
- xinstall -d ${destroot}${texlive_texmfdist}
- xinstall -d ${destroot}${texlive_texmfports}
- xinstall -d ${destroot}${texlive_texmflocal}
- xinstall -d ${destroot}${texlive_texmfsysvar}
- xinstall -d ${destroot}${texlive_texmfsysconfig}
+ foreach texmfdir $texmfdirs {
+ xinstall -d ${destroot}${texmfdir}
+ }
# Create empty ls-R files so that they're marked as owned by this
# port. The contents will be generated/updated by mktexlsr.
- touch ${destroot}${texlive_texmfmain}/ls-R
- touch ${destroot}${texlive_texmfdist}/ls-R
- touch ${destroot}${texlive_texmfports}/ls-R
- touch ${destroot}${texlive_texmflocal}/ls-R
- touch ${destroot}${texlive_texmfsysvar}/ls-R
- touch ${destroot}${texlive_texmfsysconfig}/ls-R
+ foreach texmfdir $texmfdirs {
+ touch ${destroot}${texmfdir}/ls-R
+ }
# Create fmt/updmap/hyphen files, directories, and install update script
xinstall -d ${destroot}${texlive_texmfsysconfig}/fmtutil.d
@@ -101,8 +101,10 @@
pre-activate {
# Delete ls-R index file if it exists
- if [file exists ${texlive_texmfports}/ls-R] {
- delete ${texlive_texmfports}/ls-R
+ foreach texmfdir $texmfdirs {
+ if [file exists ${texmfdir}/ls-R] {
+ delete ${texmfdir}/ls-R
+ }
}
# Deactivate any of the texlive 2007 ports. replaced_by does not
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110109/7d96d39e/attachment.html>
More information about the macports-changes
mailing list