2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
|
|
|
class Icu4c <Formula
|
2010-07-25 20:04:27 +00:00
|
|
|
url 'http://download.icu-project.org/files/icu4c/4.4.1/icu4c-4_4_1-src.tgz'
|
|
|
|
homepage 'http://site.icu-project.org/'
|
|
|
|
md5 'b6bc0a1153540b2088f8b03e0ba625d3'
|
|
|
|
version "4.4.1"
|
2010-07-28 19:32:40 +00:00
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
def patches
|
2009-09-15 18:05:24 +00:00
|
|
|
DATA
|
2009-09-01 14:17:44 +00:00
|
|
|
end
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2010-11-10 18:16:28 +00:00
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
2009-12-02 11:38:57 +00:00
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
def install
|
2010-07-28 19:32:40 +00:00
|
|
|
ENV.append "LDFLAGS", "-headerpad_max_install_names"
|
2009-09-01 14:17:44 +00:00
|
|
|
config_flags = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"]
|
2010-08-08 04:04:37 +00:00
|
|
|
config_flags << "--with-library-bits=64" if snow_leopard_64?
|
2009-09-01 14:17:44 +00:00
|
|
|
Dir.chdir "source" do
|
|
|
|
system "./configure", *config_flags
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2009-09-15 18:05:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
__END__
|
2009-09-16 16:08:32 +00:00
|
|
|
--- a/source/configure 2009-07-02 03:51:26.000000000 +0900
|
|
|
|
+++ b/source/configure 2009-08-16 16:15:49.000000000 +0900
|
2009-09-15 18:05:24 +00:00
|
|
|
@@ -7058,11 +7058,8 @@
|
|
|
|
test ! -s conftest.err
|
|
|
|
} && test -s conftest.$ac_objext; then
|
2010-07-28 19:32:40 +00:00
|
|
|
|
2009-09-15 18:05:24 +00:00
|
|
|
- # Check for potential -arch flags. It is not universal unless
|
|
|
|
- # there are some -arch flags. Note that *ppc* also matches
|
|
|
|
- # ppc64. This check is also rather less than ideal.
|
|
|
|
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
|
|
|
|
- *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
|
|
|
|
+ *-arch*ppc*) ac_cv_c_bigendian=yes;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
$as_echo "$as_me: failed program was:" >&5
|