aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 22:00:35 -0700
committerAdam Vandenberg2013-09-11 22:05:30 -0700
commit3c94663f7a4b8a7ba52cddee7687558b13fdc9f8 (patch)
tree2e3c2decddad6faed393ce46c7467976856fbb33 /Library
parent4d7f681d14b666cfab527d7151431919ddf173dd (diff)
downloadhomebrew-3c94663f7a4b8a7ba52cddee7687558b13fdc9f8.tar.bz2
imake: use resource
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/imake.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/imake.rb b/Library/Formula/imake.rb
index 5ea43a3d3..cc4a8978d 100644
--- a/Library/Formula/imake.rb
+++ b/Library/Formula/imake.rb
@@ -1,10 +1,5 @@
require 'formula'
-class ImakeXorgCfFiles < Formula
- url 'http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.4.tar.bz2'
- sha1 'c58b7252df481572ec1ccd77b9f1ab561ed89e45'
-end
-
class Imake < Formula
homepage 'http://xorg.freedesktop.org'
url 'http://xorg.freedesktop.org/releases/individual/util/imake-1.0.5.tar.bz2'
@@ -15,6 +10,11 @@ class Imake < Formula
env :std # CPP issues under superenv
+ resource 'xorg-cf-files' do
+ url 'http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.4.tar.bz2'
+ sha1 'c58b7252df481572ec1ccd77b9f1ab561ed89e45'
+ end
+
def patches
# Remove cpp whitespace check and add "-" to pass the cpp -undef test.
# These are needed to support superenv (which uses clang)
@@ -26,7 +26,7 @@ class Imake < Formula
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
- ImakeXorgCfFiles.new.brew do
+ resource('xorg-cf-files').stage do
system "./configure", "--with-config-dir=#{lib}/X11/config"
system "make install"
end