From 3acd3209a62e2eadf233bcc0cc3768d8132e3ee8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 1 Oct 2013 16:53:08 -0500 Subject: glib: use resource --- Library/Formula/glib.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Library') 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