Skip to content

Commit

Permalink
glib 2.30.2
Browse files Browse the repository at this point in the history
This has a dependency on libffi that 2.28.x did not have; perhaps the
system library isn't good enough anymore. MacPorts had to add this, too.

Closes Homebrew#8946.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
jacknagel committed Dec 3, 2011
1 parent 9b6b9af commit afeabeb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Library/Formula/glib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
def build_tests?; ARGV.include? '--test'; end

class Glib < Formula
homepage 'http://developer.gnome.org/glib/2.28/'
url 'ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2'
sha256 '222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1f9466f'
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'

depends_on 'gettext'
depends_on 'libffi'

fails_with_llvm "Undefined symbol errors while linking" unless MacOS.lion?

Expand All @@ -18,10 +19,10 @@ class Glib < Formula
depends_on 'libiconv'

def patches
mp = "https://svn.macports.org/repository/macports/!svn/bc/79276/trunk/dports/devel/glib2/files/"
mp = "https://svn.macports.org/repository/macports/!svn/bc/87537/trunk/dports/devel/glib2/files/"
{
:p0 => [
mp+"patch-configure.ac.diff",
mp+"patch-configure.diff",
mp+"patch-glib-2.0.pc.in.diff",
mp+"patch-glib_gunicollate.c.diff",
mp+"patch-gi18n.h.diff",
Expand Down Expand Up @@ -69,7 +70,7 @@ def install
system "./configure", *args

# Fix for 64-bit support, from MacPorts
curl "https://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files/config.h.ed", "-O"
curl "https://svn.macports.org/repository/macports/!svn/bc/87537/trunk/dports/devel/glib2/files/config.h.ed", "-O"
system "ed - config.h < config.h.ed"

system "make"
Expand Down

0 comments on commit afeabeb

Please sign in to comment.