[48620] trunk/dports/aqua/osxvnc/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Mar 26 03:10:11 PDT 2009


Revision: 48620
          http://trac.macports.org/changeset/48620
Author:   ryandesign at macports.org
Date:     2009-03-26 03:10:09 -0700 (Thu, 26 Mar 2009)
Log Message:
-----------
osxvnc: fix build on Leopard by converting all strings files to UTF-16; fixes #15919

Modified Paths:
--------------
    trunk/dports/aqua/osxvnc/Portfile

Modified: trunk/dports/aqua/osxvnc/Portfile
===================================================================
--- trunk/dports/aqua/osxvnc/Portfile	2009-03-26 08:52:20 UTC (rev 48619)
+++ trunk/dports/aqua/osxvnc/Portfile	2009-03-26 10:10:09 UTC (rev 48620)
@@ -5,6 +5,7 @@
 
 name                    osxvnc
 version                 3.0
+revision                1
 categories              aqua vnc
 homepage                http://www.redstonesoftware.com/vnc.html
 maintainers             ryandesign
@@ -22,6 +23,9 @@
     for Mac OS X providing remote access to the GUI, keyboard and \
     mouse using any VNC client.
 
+depends_build \
+    port:libiconv
+
 depends_lib \
     port:zlib
 
@@ -34,6 +38,19 @@
     }
 }
 
+post-patch {
+    # Make all strings UTF-16 so CopyStringsFile doesn't fail on Leopard. See #15919.
+    set language_encodings {
+        English utf-8
+        German macroman
+        Italian macroman
+        Japanese utf-8
+    }
+    foreach {language encoding} ${language_encodings} {
+        system "cd ${worksrcpath}/${language}.lproj && cp -p Localizable.strings Localizable.strings.orig && ${prefix}/bin/iconv -f ${encoding} -t utf-16 Localizable.strings.orig > Localizable.strings"
+    }
+}
+
 post-destroot {
     # Fix permissions for users not installing with root
     fs-traverse dir ${workpath} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090326/81859852/attachment.html>


More information about the macports-changes mailing list