aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-06-18 11:13:11 +0100
committerMax Howell2009-06-18 11:13:11 +0100
commit271acec03636dc19aea4f4741df7a8fe6cc4aa86 (patch)
tree18601d4549013be13c68c00612f47e851ab15bff
parent95ed72338e13daf799eedf51744762172f81017d (diff)
downloadhomebrew-271acec03636dc19aea4f4741df7a8fe6cc4aa86.tar.bz2
Tidied things up a little in light of recent changes
-rw-r--r--Library/Formula/boost.rb3
-rw-r--r--Library/Formula/cmake.rb4
-rw-r--r--Library/Formula/liblastfm.rb6
-rw-r--r--Library/Formula/libvorbis.rb2
-rw-r--r--Library/Formula/pkg-config.rb2
-rw-r--r--Library/Formula/yajl.rb2
-rw-r--r--README11
7 files changed, 16 insertions, 14 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb
index 2022ef952..4bc2f90b1 100644
--- a/Library/Formula/boost.rb
+++ b/Library/Formula/boost.rb
@@ -6,9 +6,6 @@ class Boost <Formula
@md5='a17281fd88c48e0d866e1a12deecbcc0'
def install
- #TODO we can save 6300 links if we just had the intelligence to symlink
- #the include/boost dir and not more
-
# we specify libdir too because the script is apparently broken
system "./bootstrap.sh --prefix='#{prefix}' --libdir='#{lib}'"
system "./bjam --layout=system --prefix='#{prefix}' --libdir='#{lib}' install"
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index 32f77bb96..22c97e861 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -4,11 +4,13 @@ class Cmake <Formula
@url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz'
@md5='5ba47a94ce276f326abca1fd72a7e7c6'
+ def deps
+ LibraryDep.new 'xmlrpc', 'xmlrpc-c'
+
def install
system "./bootstrap --prefix=#{prefix} --system-libs"
system "make install"
['man','doc'].each { |d| (prefix+d).mv prefix+'share' }
- (doc.parent+'cmake-2.6').mv doc
end
end \ No newline at end of file
diff --git a/Library/Formula/liblastfm.rb b/Library/Formula/liblastfm.rb
index 6f2b6a375..52444bdfa 100644
--- a/Library/Formula/liblastfm.rb
+++ b/Library/Formula/liblastfm.rb
@@ -6,9 +6,9 @@ class Liblastfm <Formula
@md5='3f73222ebc31635941832b01e7a494b6'
def deps
- dep_test_bin 'qmake' or 'qt'
- dep_test_lib 'fftw3f' or 'fftw'
- dep_test_lib 'samplerate' or 'libsamplerate'
+ BinaryDep.new 'qmake', 'qt'
+ LibraryDep.new 'fftw3f', 'fftw'
+ LibraryDep.new 'samplerate'
end
def install
diff --git a/Library/Formula/libvorbis.rb b/Library/Formula/libvorbis.rb
index 30ff4307e..6c9367e0e 100644
--- a/Library/Formula/libvorbis.rb
+++ b/Library/Formula/libvorbis.rb
@@ -6,7 +6,7 @@ class Libvorbis <Formula
@homepage='http://vorbis.com'
def deps
- test_lib 'ogg'
+ LibraryDep.new 'ogg'
end
def install
diff --git a/Library/Formula/pkg-config.rb b/Library/Formula/pkg-config.rb
index 9254c5a65..d95229e4c 100644
--- a/Library/Formula/pkg-config.rb
+++ b/Library/Formula/pkg-config.rb
@@ -5,7 +5,7 @@ class PkgConfig <Formula
@url='http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz'
@md5='d922a88782b64441d06547632fd85744'
- #TODO depend on our glib? --with-installed-glib
+ #TODO depend on our glib if available. --with-installed-glib
def install
system "./configure --with-pc-path=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:#{$root}/lib/pkgconfig --disable-debug --prefix='#{prefix}'"
diff --git a/Library/Formula/yajl.rb b/Library/Formula/yajl.rb
index f72432dda..962feba81 100644
--- a/Library/Formula/yajl.rb
+++ b/Library/Formula/yajl.rb
@@ -6,7 +6,7 @@ class Yajl <Formula
@md5='f4a3cbc764c43231ed1aedc54438b69b'
def deps
- dep_test_bin 'cmake'
+ BinaryDep.new 'cmake'
end
def install
diff --git a/README b/README
index 21f965b63..1cdf81b42 100644
--- a/README
+++ b/README
@@ -71,10 +71,13 @@ Search for a package already installed:
ls /usr/local/Cellar/*wget*
List all packages available to install:
- ls /Brewery/Library/Formula
+ ls /usr/local/Library/Formula
Compute installed size of package:
- du -h /Brewery/Cellar/wget
+ du -h /usr/local/Cellar/wget
+
+Show expensive packages:
+ du -md1 /usr/local/Cellar
You get the idea.
@@ -97,7 +100,7 @@ that's easy:
Why Not MacPorts?
=================
1. MacPorts installs its own libz, its own openssl, etc. It's an autarky.
- This makes no sense to me. OS X comes with all that shit.
+ This makes no sense to me. OS X comes with all that stuff.
2. MacPorts support Tiger, and PPC. We don't, so things are better optimised.
3. cmake has like 100 dependencies in MacPorts, with Homebrew it has one
@@ -127,7 +130,7 @@ Chances are that if the package hasn't been updated for a few days, then the
previous maintainer has vanished. You have to do it. Don't worry, unlike every
other packaging system ever, it's easy with Homebrew:
-1. Edit the relevant ruby file in /Brewery/Formula
+1. Edit the relevant ruby file in /usr/local/Formula
2. Fork Homebrew on github (or git diff > patch)
3. Send mxcl a pull request