2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 17:55:25 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libunistring < Formula
|
2013-01-29 05:28:42 +00:00
|
|
|
homepage 'http://www.gnu.org/software/libunistring/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/libunistring/libunistring-0.9.3.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'e1ea13c24a30bc93932d19eb5ad0704a618506dd'
|
2009-09-19 17:55:25 +00:00
|
|
|
|
2012-11-16 12:08:33 +00:00
|
|
|
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
|
|
|
|
|
2009-09-19 17:55:25 +00:00
|
|
|
def install
|
2013-01-29 05:28:42 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2012-11-16 12:08:33 +00:00
|
|
|
system "make"
|
|
|
|
# system "make check" # Maintainers, you might want to do the check
|
2009-09-19 17:55:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-11-16 12:08:33 +00:00
|
|
|
|
|
|
|
__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 */
|