aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-10-01 16:53:08 -0500
committerJack Nagel2013-10-01 16:53:55 -0500
commit3acd3209a62e2eadf233bcc0cc3768d8132e3ee8 (patch)
treef47640bacce54b67b2499581ac3b5a2167209179 /Library/Formula
parent15fecb7748177751567484fe5aa0f5ce2aba3e8f (diff)
downloadhomebrew-3acd3209a62e2eadf233bcc0cc3768d8132e3ee8.tar.bz2
glib: use resource
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/glib.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb
index 40bbef897..a32f30a95 100644
--- a/Library/Formula/glib.rb
+++ b/Library/Formula/glib.rb
@@ -18,6 +18,12 @@ class Glib < Formula
cause "Undefined symbol errors while linking"
end
+ resource 'config.h.ed' do
+ url 'https://trac.macports.org/export/111532/trunk/dports/devel/glib2/files/config.h.ed'
+ version '111532'
+ sha1 '0926f19d62769dfd3ff91a80ade5eff2c668ec54'
+ end if build.universal?
+
def patches
p = {}
# https://bugzilla.gnome.org/show_bug.cgi?id=673135 Resolved as wontfix,
@@ -58,7 +64,8 @@ class Glib < Formula
system "./configure", *args
if build.universal?
- system "curl 'https://trac.macports.org/export/95596/trunk/dports/devel/glib2/files/config.h.ed' | ed - config.h"
+ buildpath.install resource('config.h.ed')
+ system "ed -s - config.h <config.h.ed"
end
system "make"