diff options
| author | Jack Nagel | 2012-03-12 15:07:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-13 20:44:40 -0500 |
| commit | a816936703de5d69f07e2481344aca63dd46ed3a (patch) | |
| tree | a5236014a8ee558feced675ec20ddb232b2d11b7 /Library/Formula | |
| parent | 8396b37fe9ac8c85dfaaab192d319565d94e9e23 (diff) | |
| download | homebrew-a816936703de5d69f07e2481344aca63dd46ed3a.tar.bz2 | |
glib 2.30.3
- Remove autoconf cruft for building universal; the relevant MacPorts
patch now patches configure rather than configure.ac, rendering this
a no-op.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/glib.rb | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb index 747853f90..d21585a59 100644 --- a/Library/Formula/glib.rb +++ b/Library/Formula/glib.rb @@ -4,9 +4,10 @@ def build_tests?; ARGV.include? '--test'; end class Glib < Formula homepage 'http://developer.gnome.org/glib/' - url 'ftp://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.2.tar.bz2' - sha256 '94b1f1a1456c67060ca868d299bef3f7268a2c1c5c360aabb7149d4d9b2fdcd3' + url 'ftp://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.3.tar.xz' + sha256 'e6cbb27c71c445993346e785e8609cc75cea2941e32312e544872feba572dd27' + depends_on 'xz' => :build depends_on 'gettext' depends_on 'libffi' @@ -14,17 +15,14 @@ class Glib < Formula def patches mp = "https://trac.macports.org/export/87537/trunk/dports/devel/glib2/files/" - { - :p0 => [ + { :p0 => [ mp+"patch-configure.diff", mp+"patch-glib-2.0.pc.in.diff", mp+"patch-glib_gunicollate.c.diff", mp+"patch-gi18n.h.diff", mp+"patch-gio_xdgmime_xdgmime.c.diff", mp+"patch-gio_gdbusprivate.c.diff" - ], - :p1 => [ DATA ] - } + ]} end def options @@ -52,16 +50,6 @@ class Glib < Formula s.gsub! '@@PREFIX@@', HOMEBREW_PREFIX end - if ARGV.build_universal? - # autoconf 2.61 is fine don't worry about it - inreplace ["aclocal.m4", "configure.ac"] do |s| - s.gsub! "AC_PREREQ([2.62])", "AC_PREREQ([2.61])" - end - - # Run autoconf so universal builds will work - system "autoconf" - end - # glib and pkg-config <= 0.26 have circular dependencies, so we should build glib without pkg-config # The pkg-config dependency can be eliminated if certain env variables are set # Note that this *may* need to be updated if any new dependencies are added in the future @@ -102,20 +90,3 @@ class Glib < Formula (share+'gtk-doc').rmtree end end - -# glib is being overzealous about trying to detect situations where you use headers from one version -# of iconv with libraries from another. The libiconv that comes with OS X is actually GNU libiconv, -# but symbols have standard name like iconv_open instead of libiconv_open, and glib gets a bit -# confused. This patch solves the problem by disabling glib's faulty check. -# Bug filed with upstream at https://bugzilla.gnome.org/show_bug.cgi?id=665705 -__END__ -diff --git a/glib/gconvert.c b/glib/gconvert.c -index b363bca..9924c6c 100644 ---- a/glib/gconvert.c -+++ b/glib/gconvert.c -@@ -62,7 +62,6 @@ - #error GNU libiconv in use but included iconv.h not from libiconv - #endif - #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) --#error GNU libiconv not in use but included iconv.h is from libiconv - #endif |
