[32112] trunk/dports/sysutils/MacPorts/Portfile

jmpp at macports.org jmpp at macports.org
Sun Dec 16 21:26:09 PST 2007


Revision: 32112
          http://trac.macosforge.org/projects/macports/changeset/32112
Author:   jmpp at macports.org
Date:     2007-12-16 21:26:08 -0800 (Sun, 16 Dec 2007)

Log Message:
-----------
Correct path to the pkg's resources dir in case we don't have a language directory.

Modified Paths:
--------------
    trunk/dports/sysutils/MacPorts/Portfile

Modified: trunk/dports/sysutils/MacPorts/Portfile
===================================================================
--- trunk/dports/sysutils/MacPorts/Portfile	2007-12-17 05:20:40 UTC (rev 32111)
+++ trunk/dports/sysutils/MacPorts/Portfile	2007-12-17 05:26:08 UTC (rev 32112)
@@ -34,7 +34,7 @@
     if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
         set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
     } else {
-        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
     }
     file copy -force -- ${filespath}/ReadMe.rtf ${resources}
     file copy -force -- ${filespath}/License.html ${resources}
@@ -47,7 +47,7 @@
         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
         } else {
-            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
         }
         reinplace "s|__XVERS__|10.3|" ${resources}/ReadMe.rtf
         reinplace "s|or newer ||" ${resources}/Welcome.html
@@ -59,7 +59,7 @@
         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
         } else {
-            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
         }
         reinplace "s|is built|contains a Universal installer|" ${resources}/ReadMe.rtf
         reinplace "s|__XVERS__|10.4|" ${resources}/ReadMe.rtf
@@ -96,7 +96,7 @@
         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
         } else {
-            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
+            set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
         }
         reinplace "s|is built|contains a Universal installer|" ${resources}/ReadMe.rtf
         reinplace "s|__XVERS__|10.5|" ${resources}/ReadMe.rtf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071216/763e13c2/attachment.html


More information about the macports-changes mailing list