[32697] trunk/dports/devel/icu/Portfile

nox at macports.org nox at macports.org
Fri Jan 11 08:25:02 PST 2008


Revision: 32697
          http://trac.macosforge.org/projects/macports/changeset/32697
Author:   nox at macports.org
Date:     2008-01-11 08:25:00 -0800 (Fri, 11 Jan 2008)

Log Message:
-----------
icu: Updated to 3.8.1.

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

Modified: trunk/dports/devel/icu/Portfile
===================================================================
--- trunk/dports/devel/icu/Portfile	2008-01-11 16:15:06 UTC (rev 32696)
+++ trunk/dports/devel/icu/Portfile	2008-01-11 16:25:00 UTC (rev 32697)
@@ -4,7 +4,8 @@
 
 name            icu
 set my_name     icu4c
-version         3.8
+version         3.8.1
+set doc_version	[join [lrange [split ${version} .] 0 1] _]
 categories      devel
 platforms       darwin freebsd
 maintainers     nox
@@ -25,20 +26,36 @@
 distfiles       [suffix ${distname}-src]
 
 checksums       [suffix ${distname}-src] \
-                    sha1 4370becc68eab7a01292db62e1649239b1732a5b \
-                    md5 67cc2650fbcae4c8e3ba5ce4dda4b072 \
-                    rmd160 e9a0105477b54e6d3f222bf7741a61058c70665b \
-                ${distname}-docs.zip \
+                    md5 a827dbc9d909febd4ec39b90386868ba \
+    		    sha1 c2b933aee6741c28956f1b87dc514dee49b949aa \
+    		    rmd160 d297330ff0eb91bff5ac91e59188f1751f899032 \
+    		${my_name}-${doc_version}-docs.zip \
+                    md5 677b218cbca2acc304b9771c63bd69bf \
                     sha1 94b47b5dd88bce15dab608719efbbd405d15e912 \
-                    md5 677b218cbca2acc304b9771c63bd69bf \
                     rmd160 927f4466758722e958b90a2bae873b11da222e88
 
 worksrcdir      ${name}/source
 set docdir      ${prefix}/share/doc/${name}-${version}
 
+post-patch {
+    reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin
+}
+
+configure.cmd   ./runConfigureICU MacOSX
+
 configure.args  --mandir=${prefix}/share/man \
                 --disable-samples
 
+# ICU wants to build with -O3, let's do as it wants.
+configure.cflags-delete -O2
+
+pre-configure {
+    # The -delete statement above may lead to configure.cflags variable being unset
+    if {! [info exists configure.cflags]} {
+	configure.cflags
+    }
+}
+
 # Fix bug #11981 that prevents ICU from building when upgrading.
 # The default configure flags causes utilisation of outdated ICU headers/libs instead of the right
 # ones. Eventually the virtual chroot mechanism will fix that.
@@ -61,10 +78,10 @@
 
 variant doc description {Install extra documentation} {
     extract.only        [suffix ${distname}-src]
-    distfiles-append    ${distname}-docs.zip
+    distfiles-append    ${my_name}-${doc_version}-docs.zip
 
     post-extract {
-        system "unzip -q ${distpath}/${distname}-docs.zip -d ${workpath}/doc"
+        system "unzip -q ${distpath}/${my_name}-${doc_version}-docs.zip -d ${workpath}/doc"
     }
 
     post-destroot {
@@ -72,12 +89,6 @@
     }
 }
 
-platform darwin {
-    post-patch {
-        reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin
-    }
-}
-
 platform darwin 8 {
     configure.compiler  gcc-4.0
 }
@@ -88,4 +99,3 @@
 }
 
 livecheck.distname  ICU4C
-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080111/c60f9036/attachment-0001.html


More information about the macports-changes mailing list