aboutsummaryrefslogtreecommitdiffstats
path: root/index.html
blob: 2b87cf17472ac822d69d869795c88cd003af94d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html>
<head>
	<title>Homebrew &mdash; MacPorts driving you to drink? Try Homebrew!</title>
	<link rel="stylesheet" href="mxcl.css" type="text/css">
</head>

<body>

<a href="http://github.com/mxcl/homebrew"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>

<table cellspacing=0 cellpadding=0 width=100% height=100%>
<tr>
<td id="masthead" colspan="2">
<h1>Homebrew</h1>
<p>The missing package manager for OS X</p>

<div class=quote>
Homebrew is the bee's knees, friends. So far it's a perfect replacement for MacPorts.
<a href='https://twitter.com/thillerson/status/6688848379'>@thillerson</a></div>
</td>
</tr>

<tr id="abstract">
<td>
Homebrew is the easiest way to install the UNIX tools Apple didn't include with OS X.
</td>
<td>
<pre>
$ brew install wget
</pre>
</td></tr>
<tr>
<td>
Homebrew installs packages into their own isolated prefix and then symlinks everything into /usr/local.
</td>
<td><pre>
$ cd /usr/local
$ find Cellar
Cellar/wget/1.12
Cellar/wget/1.12/bin/wget
Cellar/wget/1.12/share/man/man1/wget.1

$ ls -l bin
bin/wget -&gt; ../Cellar/wget/1.12/bin/wget
</pre>
</td></tr>

<tr>
<td>
Homebrew is self contained and unintrusive.
<center><a class=more href='http://wiki.github.com/mxcl/homebrew/installation'>Install Homebrew Today!</a></center>
</td>
<td>
</td>
</tr>

<tr><td>
<p>Create your own Homebrew packages in seconds.</p>
<center><a class=more href='http://wiki.github.com/mxcl/homebrew/formula-cookbook'>Incredible Brewing Guide Here!</a></center>
</td>

<td>
<pre>
$ brew create http://example.com/foo-0.1.tar.gz
Created /usr/local/Library/Formula/foo.rb

</pre>
</td>
</tr>

<tr>
<td>
	Homebrew has a Git foundation, so enjoy version control on your brewing customizations and easily merge upstream updates.
</td>
<td><pre class=with_comments>$ brew edit wget <span># opens the formula in TextMate!</pre></td>
</tr>

<tr>
<td>Homebrew formula are simple Ruby scripts:</td>
<td>

<pre class="gist-syntax">
<span class="nb">require</span> <span class="s1">'formula'</span>

<span class="k">class</span> <span class="nc">Wget</span> <span class="o">&lt;</span><span class="no">Formula</span>
  <span class="n">homepage</span> <span class="s1">'http://www.gnu.org/software/wget/'</span>
  <span class="n">url</span> <span class="s1">'http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2'</span>
  <span class="n">md5</span> <span class="s1">'308a5476fc096a8a525d07279a6f6aa3'</span>

  <span class="k">def</span> <span class="nf">install</span>
    <span class="nb">system</span> <span class="s2">"./configure"</span><span class="p">,</span> <span class="s2">"--disable-debug"</span><span class="p">,</span> <span class="s2">"--prefix=</span><span class="si">#{</span><span class="n">prefix</span><span class="si">}</span><span class="s2">"</span>
    <span class="nb">system</span> <span class="s2">"make install"</span>
  <span class="k">end</span>
<span class="k">end</span>
</pre>

</td>
</tr>

<tr><td>Homebrew compliments OS X. Install your gems with gem, and their dependencies with brew.
</td></tr>

<tr><td style='border-bottom:0'>
<center><a class=more href='http://wiki.github.com/mxcl/homebrew'>Vastly More Information Here!</a></center>
</td></tr>

</table>

</body>
</html>