homebrew-core/Formula
Max Howell bf7a82e66d Dependency resolution
Specify dependencies in your formula's deps function. You can return an Array,
String or Hash, eg:

    def deps
      { :optional => 'libogg', :required => %w[flac sdl], :recommended => 'cmake' }
    end

Note currently the Hash is flattened and qualifications are ignored. If you
only return an Array or String, the qualification is assumed to be :required.

Other packaging systems have problems when it comes to packages requiring a
specific version of a package, or some patches that may not work well with
other software. With Homebrew we have some options:

1.  If the formula is vanilla but an older version we can cherry-pick the old
    version and install it in the Cellar in parallel, but just not symlink it
    into /usr/local while forcing the formula that depends on it to link to
    that one and not any other versions of it.
2.  If the dependency requires patches then we shouldn't install this for use
    by any other tools, (I guess this needs to be decided on a per-situation
    basis). It can be installed into the parent formula's prefix, and not
    symlinked into /usr/local. In this case the dependency's Formula
    derivation should be saved in the parent formula's file (check git or
    flac for an example of this).

Both the above can be done currently with hacks, so I'll flesh out a proper
way sometime this week.
2009-09-10 19:23:03 +01:00
..
ack.rb Update Boost to 1.40 2009-08-29 14:15:22 +01:00
antiword.rb Install Antiword manpage 2009-09-02 23:48:06 +01:00
apr.rb Remove MacPorts and Fink from the build environment 2009-08-11 14:52:45 +01:00
asciidoc.rb Created /Library moved brew tool to /bin 2009-06-04 19:36:58 +01:00
astyle.rb Artistic Style code beautifier 2009-06-15 00:55:32 +01:00
bash-completion.rb Bash Completion formula 2009-09-03 18:02:26 +01:00
boost.rb Update Boost to 1.40 2009-08-29 14:15:22 +01:00
cmake.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
coreutils.rb GNU Core Utilities formula 2009-08-31 18:09:20 +01:00
ddrescue.rb GNU Ddrescue formula 2009-09-01 11:15:36 +01:00
dict.rb Dict.org client formula 2009-09-01 11:15:25 +01:00
dmd.rb Only install UNIX d samples 2009-08-10 18:12:16 +01:00
dnsmasq.rb Dnsmasq formula 2009-09-02 01:43:17 -05:00
dos2unix.rb Updated dos2unix download URL. 2009-08-12 05:41:04 +08:00
dovecot.rb Document how to start Dovecot 2009-09-01 11:50:43 +01:00
elinks.rb Formula for elinks 2009-08-30 11:36:19 -05:00
erlang.rb updated erlang to R13B01 and added man pages 2009-08-31 17:06:11 -07:00
expat.rb Expat formula 2009-09-03 00:38:28 +01:00
fabricate.rb Fabricate formula 2009-08-24 01:03:30 +01:00
fastri.rb Ruby Fastri service and library 2009-09-01 09:45:21 +01:00
fftw.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
fish.rb Dependency resolution 2009-09-10 19:23:03 +01:00
flac.rb Tests for Pathname+Yeast 2009-09-02 15:07:26 +01:00
gettext.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
ghostscript.rb Dependency resolution 2009-09-10 19:23:03 +01:00
git.rb Fix some "GCC cannot create executables" 2009-09-03 22:39:49 +01:00
glib.rb Bump glib to 2.20.5. 2009-08-31 21:59:51 +01:00
gloox.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
gnupg.rb GnuPG 1.4 formula 2009-09-01 11:50:39 +01:00
grc.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
imagemagick.rb Dependency resolution 2009-09-10 19:23:03 +01:00
jpeg.rb Update JPEG to v7 2009-07-23 13:03:15 +01:00
lame.rb Created /Library moved brew tool to /bin 2009-06-04 19:36:58 +01:00
libao.rb vorbis-tools and libao formulae 2009-06-18 11:00:03 +01:00
libevent.rb Formula for memcached 2009-08-30 11:36:27 -05:00
liblastfm.rb Dependency resolution 2009-09-10 19:23:03 +01:00
libmusicbrainz.rb Dependency resolution 2009-09-10 19:23:03 +01:00
libogg.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
libsamplerate.rb Created /Library moved brew tool to /bin 2009-06-04 19:36:58 +01:00
libtiff.rb Dependency resolution 2009-09-10 19:23:03 +01:00
libvorbis.rb Dependency resolution 2009-09-10 19:23:03 +01:00
libwmf.rb Dependency resolution 2009-09-10 19:23:03 +01:00
litmus.rb Litmus formula 2009-09-01 11:39:21 +01:00
little-cms.rb Dependency resolution 2009-09-10 19:23:03 +01:00
llvm.rb LLVM formula 2009-08-31 18:09:06 +01:00
lua.rb Lua formula 2009-09-01 10:32:34 +01:00
macfuse.rb Grammar. 2009-08-31 18:45:45 +01:00
mad.rb Created /Library moved brew tool to /bin 2009-06-04 19:36:58 +01:00
memcached.rb Dependency resolution 2009-09-10 19:23:03 +01:00
mhash.rb Mhash library formula for scoates at ##homebrew 2009-08-11 23:45:07 +01:00
mod_wsgi.rb Formula for mod_wsgi. 2009-08-25 02:48:13 +01:00
mpg123.rb mpg123 formula 2009-08-10 18:12:16 +01:00
mplayer.rb MPlayer formula 2009-08-24 01:04:53 +01:00
mysql-connector-c.rb Dependency resolution 2009-09-10 19:23:03 +01:00
mysql.rb Dependency resolution 2009-09-10 19:23:03 +01:00
neon.rb Neon and libmusicbrainz formulae 2009-08-10 18:12:16 +01:00
nginx.rb Dependency resolution 2009-09-10 19:23:03 +01:00
oniguruma.rb Oniguruma formula 2009-09-03 13:05:01 +01:00
p7zip.rb P7ZIP formula 2009-06-26 12:58:00 +01:00
pcre.rb PCRE Formula 2009-08-31 18:09:01 +01:00
pkg-config.rb Place /usr/local first in pkg-config path 2009-08-10 18:46:27 +01:00
playdar.rb Dependency resolution 2009-09-10 19:23:03 +01:00
pngcrush.rb Updated PNGcrush to version 1.7.0 2009-08-02 13:00:40 +01:00
python.rb Dependency resolution 2009-09-10 19:23:03 +01:00
qt.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
readline.rb Revert readline to version 5.2, but add patches 2009-08-10 18:12:16 +01:00
scummvm.rb Dependency resolution 2009-09-10 19:23:03 +01:00
sdl.rb Formula for SDL. 2009-08-31 01:46:19 +01:00
sqlite.rb Bump sqlite version. 2009-08-25 02:53:15 +01:00
sshfs.rb Dependency resolution 2009-09-10 19:23:03 +01:00
subversion.rb Update Subersion to 1.6.5, add SSL support, turn off BDB support. 2009-09-02 23:48:06 +01:00
taglib.rb Dependency resolution 2009-09-10 19:23:03 +01:00
term.rb Refactor 2009-08-10 18:11:17 +01:00
thrift.rb Thrift formula 2009-09-03 16:34:35 +01:00
tig.rb 'tig' formula, a curses-based front end for Git. 2009-08-02 01:25:01 +01:00
tree.rb Tree formula 2009-08-31 18:07:44 +01:00
unp.rb Dependency resolution 2009-09-10 19:23:03 +01:00
unrar.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
vorbis-tools.rb Dependency resolution 2009-09-10 19:23:03 +01:00
wget.rb Small tweaks to two formulae 2009-06-08 16:03:13 +01:00
wireshark.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
xar.rb XAR formula 2009-09-01 11:35:23 +01:00
xmlrpc-c.rb Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
yajl.rb Dependency resolution 2009-09-10 19:23:03 +01:00