[100308] trunk/dports/devel/icu

ryandesign at macports.org ryandesign at macports.org
Fri Dec 7 17:15:12 PST 2012


Revision: 100308
          https://trac.macports.org/changeset/100308
Author:   ryandesign at macports.org
Date:     2012-12-07 17:15:12 -0800 (Fri, 07 Dec 2012)
Log Message:
-----------
icu: add patch to fix build on Tiger (#36495)

Modified Paths:
--------------
    trunk/dports/devel/icu/Portfile

Added Paths:
-----------
    trunk/dports/devel/icu/files/patch-common-putil.cpp.diff

Modified: trunk/dports/devel/icu/Portfile
===================================================================
--- trunk/dports/devel/icu/Portfile	2012-12-08 00:46:03 UTC (rev 100307)
+++ trunk/dports/devel/icu/Portfile	2012-12-08 01:15:12 UTC (rev 100308)
@@ -201,5 +201,9 @@
     destroot.env    MAKE=/usr/local/bin/gmake
 }
 
+platform darwin 8 {
+    patchfiles-append patch-common-putil.cpp.diff
+}
+
 livecheck.url   http://site.icu-project.org/download
 livecheck.regex {>ICU4C \((\d+(?:\.\d+)*)\)<}

Added: trunk/dports/devel/icu/files/patch-common-putil.cpp.diff
===================================================================
--- trunk/dports/devel/icu/files/patch-common-putil.cpp.diff	                        (rev 0)
+++ trunk/dports/devel/icu/files/patch-common-putil.cpp.diff	2012-12-08 01:15:12 UTC (rev 100308)
@@ -0,0 +1,17 @@
+http://bugs.icu-project.org/trac/ticket/9367
+--- common/putil.cpp.orig	2012-06-01 10:52:46.000000000 -0400
++++ common/putil.cpp	2012-10-05 19:53:14.000000000 -0400
+@@ -123,6 +123,13 @@
+ #endif
+ 
+ /*
++ * Mac OS X 10.4 doesn't use its localtime_r() declaration in <time.h> if either _ANSI_SOURCE or _POSIX_C_SOURCE is #defined.
++ */
++#if defined(U_TZNAME) && U_PLATFORM_IS_DARWIN_BASED && (defined(_ANSI_SOURCE) || defined(_POSIX_C_SOURCE))
++U_CFUNC struct tm *localtime_r(const time_t *, struct tm *);
++#endif
++
++/*
+  * Only include langinfo.h if we have a way to get the codeset. If we later
+  * depend on more feature, we can test on U_HAVE_NL_LANGINFO.
+  *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121207/d8328091/attachment.html>


More information about the macports-changes mailing list