aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2012-11-16 13:08:33 +0100
committerAdam Vandenberg2012-11-25 09:38:38 -0800
commit00afb999ce6901d89abd78cccd86751db77f01cf (patch)
tree768088b2f6deffd07a4a4526ab28a6efe505c49d /Library/Formula
parenta4d697b57ffeda1340c8ef3b6a09b9857d7ed9af (diff)
downloadhomebrew-00afb999ce6901d89abd78cccd86751db77f01cf.tar.bz2
libunistring: Patch for Xcode-only on 10.8
Closes #16107. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libunistring.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/libunistring.rb b/Library/Formula/libunistring.rb
index ac7b46bc1..3fd59d780 100644
--- a/Library/Formula/libunistring.rb
+++ b/Library/Formula/libunistring.rb
@@ -6,8 +6,36 @@ class Libunistring < Formula
homepage 'http://www.gnu.org/software/libunistring/'
sha1 'e1ea13c24a30bc93932d19eb5ad0704a618506dd'
+ def patches
+ # Submitted upstream: https://savannah.gnu.org/bugs/?37751
+ # I am not 100% sure if this is the right patch because libunistring
+ # provides its own stdint.h (and stdint.mini.h) which wraps the system's
+ # version of these files (in a complicated manner). This is fragile.
+ DATA unless MacOS::CLT.installed?
+ end
+
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
+ system "make"
+ # system "make check" # Maintainers, you might want to do the check
system "make install"
end
end
+
+__END__
+diff --git a/lib/stdint.mini.h b/lib/stdint.mini.h
+index d6f2cb0..3c0acc8 100644
+--- a/lib/stdint.mini.h
++++ b/lib/stdint.mini.h
+@@ -118,11 +118,6 @@ typedef unsigned int unistring_uint32_t;
+ #define int32_t unistring_int32_t
+ #define uint32_t unistring_uint32_t
+
+-/* Avoid collision with Solaris 2.5.1 <pthread.h> etc. */
+-#define _UINT8_T
+-#define _UINT32_T
+-#define _UINT64_T
+-
+
+ #endif /* _UNISTRING_STDINT_H */
+ #endif /* !defined _UNISTRING_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */