aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swig.rb
diff options
context:
space:
mode:
authorMax Howell2009-10-15 15:53:03 +0100
committerMax Howell2009-10-15 15:54:08 +0100
commite25b647e6a79ced7464ecf077dd1b4dfd4e06c46 (patch)
treeb2da1d08094ed317a2d9b9b9d4b16a3c447a3eba /Library/Formula/swig.rb
parent0eda9d868ac294c6b7f2459953dcc485cd2e47f2 (diff)
downloadhomebrew-e25b647e6a79ced7464ecf077dd1b4dfd4e06c46.tar.bz2
Deversion swig/share
Versioning dirs is redundant with Homebrew so I try to remove it where possible.
Diffstat (limited to 'Library/Formula/swig.rb')
-rw-r--r--Library/Formula/swig.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/swig.rb b/Library/Formula/swig.rb
index 1a7dd7c65..ced3a1206 100644
--- a/Library/Formula/swig.rb
+++ b/Library/Formula/swig.rb
@@ -5,9 +5,15 @@ class Swig <Formula
homepage 'http://www.swig.org/'
md5 '2df766c9e03e02811b1ab4bba1c7b9cc'
+ def patches
+ DATA
+ end
+
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
- system "make"
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
+ # turns prefix/share/swig/1.3.40 into prefix/share/swig
+ # as versioned dirs are redundant with Homebrew
+ "--with-swiglibdir=#{prefix}/share/swig"
system "make install"
end
end