Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
175 lines (165 sloc)
4.43 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: base | |
--- | |
{% assign t = site.data.locales[page.lang][page.lang] %} | |
<div id="information"> | |
<ul> | |
<li> | |
<div class="group row"> | |
<h2 id="install">{{ t.pagecontent.install.install }}</h2> | |
<br> | |
<pre style='clear:both;text-align:center;margin-bottom:0.9em'><code id='selectable' onclick="selectText(this)">/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</code></pre> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.install.paste }}</p> | |
</div> | |
<div class="col-2"> | |
<p>{{ t.pagecontent.install.what }}</p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="question">{{ t.pagecontent.question }}</h2> | |
<br> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.what }}</p> | |
</div> | |
<div class="col-2"> | |
{% highlight bash %} | |
$ brew install wget | |
{% endhighlight %} | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.how }}</p> | |
</div> | |
<div class="col-2"> | |
{% highlight bash %} | |
$ cd /usr/local | |
$ find Cellar | |
Cellar/wget/1.16.1 | |
Cellar/wget/1.16.1/bin/wget | |
Cellar/wget/1.16.1/share/man/man1/wget.1 | |
$ ls -l bin | |
bin/wget -> ../Cellar/wget/1.16.1/bin/wget | |
{% endhighlight %} | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.prefix }}</p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.createpackages }}</p> | |
</div> | |
<div class="col-2"> | |
{% highlight bash %} | |
$ brew create https://foo.com/bar-1.0.tgz | |
Created /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bar.rb | |
{% endhighlight %} | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.hack }}</p> | |
</div> | |
<div class="col-2"> | |
{% highlight bash %} | |
$ brew edit wget # {{ t.pagecontent.editor }} | |
{% endhighlight %} | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.formula }}</p> | |
</div> | |
<div class="col-2"> | |
{% highlight ruby %} | |
class Wget < Formula | |
homepage "https://www.gnu.org/software/wget/" | |
url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz" | |
sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd" | |
def install | |
system "./configure", "--prefix=#{prefix}" | |
system "make", "install" | |
end | |
end | |
{% endhighlight %} | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<div class="col-1"> | |
<p>{{ t.pagecontent.complement }}</p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="further-doc">{{ t.pagecontent.doc.further }}</h2> | |
<div class="button"> | |
<p><a href="https://docs.brew.sh">docs.brew.sh</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="further-doc">{{ t.pagecontent.doc.patreon }}</h2> | |
<div class="button"> | |
<p><a href="https://www.patreon.com/homebrew">patreon.com/homebrew</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="homebrew-community">{{ t.pagecontent.doc.community }}</h2> | |
<div class="button"> | |
<p><a href="https://discourse.brew.sh">discourse.brew.sh</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="homebrew-blog">{{ t.pagecontent.doc.blog }}</h2> | |
<div class="button"> | |
<p><a href="/blog/">brew.sh/blog</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="homebrew-formulae">{{ t.pagecontent.doc.formulae }}</h2> | |
<div class="button"> | |
<p><a href="http://formulae.brew.sh">formulae.brew.sh</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row"> | |
<h2 id="analytics-data">{{ t.pagecontent.doc.analytics }}</h2> | |
<div class="button"> | |
<p><a href="/analytics/">brew.sh/analytics</a></p> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="group row credits"> | |
<p>{{ t.pagecontent.foot.code }} {{ t.pagecontent.foot.page }} {{ t.pagecontent.foot.translation }}</p> | |
</div> | |
</li> | |
</ul> | |
</div> |