5 {%- assign fname = page.title -%}
6 {%- assign data_fname = fname | remove:
"@" | remove:
"." | replace:
"+",
"_" -%}
7 {%- assign f = site.data.formula[data_fname] -%}
9 {%- if f.disabled %}
class=
"disabled" title=
"This formula has been disabled since {{ f.disable_date | escape }} because it {{ site.reasons.formula[f.disable_reason] | default: f.disable_reason | escape }}"
10 {%- elsif f.deprecated %}
class=
"deprecated" title=
"This formula has been deprecated since {{ f.deprecation_date | escape }} because it {{ site.reasons.formula[f.deprecation_reason] | default: f.deprecation_reason | escape }}"
14 {%- if f.disabled %} (disabled)
15 {%- elsif f.deprecated %} (deprecated)
19 {%- include install_command.html item=f.name %}
20 {%- if f.aliases.size
> 0 %}
21 <p class=
"aliases">Also known as:
22 {%- for alias in f.aliases %}
23 <strong>{{ alias | escape }}
</strong>
24 {%- unless forloop.last -%}, {% endunless -%}
28 {%- if f.oldnames.size
> 0 %}
29 <p class=
"oldnames">Formerly known as:
30 {%- for oldname in f.oldnames %}
31 <strong>{{ oldname | escape }}
</strong>
32 {%- unless forloop.last -%}, {% endunless -%}
36 <p class=
"desc">{{ f.desc | escape }}
</p>
37 <p class=
"homepage"><a href=
"{{ f.homepage | escape }}">{{ f.homepage | escape }}
</a></p>
38 {%- if f.license.size
> 0 %}
40 {%- for license in f.license %}
41 <strong>{{ license | replace:
"_",
" " | escape }}
</strong>
42 {%- unless forloop.last -%}, {% endunless -%}
47 <p>Formula JSON API:
<a href=
"{{ site.baseurl }}/api/formula/{{ f.name | uri_escape }}.json"><code>/api/formula/{{ f.name | escape }}.json
</code></a></p>
49 <p>Formula code:
<a target=
"_blank" href=
"{{ site.taps.core.remote }}/blob/{{ f.tap_git_head | url_encode }}/{{ f.ruby_source_path | uri_escape }}"><code>{{ f.name | escape }}.rb
</code></a> on GitHub
</p>
51 <p>Bottle (binary package)
52 {%- assign bottles = false -%}
53 {%- if f.bottle_disabled %} not required, support provided for all supported Homebrew platforms.
54 {%- elsif f.bottle.stable %} installation support provided
55 {%- if f.bottle.stable.files.all -%}.
57 {%- assign bottles = true %} for:
59 {%- else %} not available on this platform.
63 {%- assign arm64_bottle_count =
0 -%}
64 {%- assign intel_bottle_count =
0 -%}
65 {%- for b in f.bottle.stable.files -%}
66 {%- if b[
0] contains
"arm64_" -%}
67 {%- assign arm64_bottle_count = arm64_bottle_count | plus:
1 -%}
69 {%- assign intel_bottle_count = intel_bottle_count | plus:
1 -%}
73 {%- assign subsequent = false -%}
74 {%- for b in f.bottle.stable.files -%}
75 {%- if b[
0] contains
"arm64_" %}
77 {%- unless subsequent -%}
78 <th rowspan=
"{{ arm64_bottle_count }}" scope=
"rowgroup">Apple Silicon
</th>
80 <td style=
"text-transform:capitalize;">
81 {{ b[
0] | remove_first:
"arm64_" | replace:
"_",
" " }}
82 {%- assign subsequent = true -%}
88 <tr><th colspan=
"3"></th></tr>
89 {%- assign subsequent = false -%}
90 {%- for b in f.bottle.stable.files -%}
91 {%- unless b[
0] contains
"arm64_" %}
93 {%- unless subsequent -%}
94 <th rowspan=
"{{ intel_bottle_count }}" scope=
"rowgroup">Intel
</th>
96 <td style=
"text-transform:capitalize;">
97 {{ b[
0] | replace:
"x86_64",
"64-bit" | replace:
"_",
" " }}
98 {%- assign subsequent = true -%}
107 <p>Current versions:
</p>
110 <td><strong>stable
</strong></td>
112 <td>{{ f.versions.stable | escape }}
</td>
114 {%- if f.versions.head %}
116 <td><strong>head
</strong></td>
118 <td>{{ f.versions.head | escape }}
</td>
123 {%- include formulae.html fnames=f.versioned_formulae
description=
"Other versions" -%}
125 {%- if f.revision
> 0 %}
126 <p>Revision:
<strong>{{ f.revision }}
</strong></p>
133 {%- if f.options.size
> 0 %}
136 {%- for o in f.options -%}
138 <td>{{ o.option | escape }}
</td>
139 <td>{{ o.description | escape }}
</td>
145 {%- include formulae.html fnames=f.dependencies
description=
"Depends on" -%}
146 {%- include formulae.html fnames=f.recommended_dependencies
description=
"Depends on recommended" -%}
147 {%- include formulae.html fnames=f.optional_dependencies
description=
"Depends on optionally" -%}
148 {%- include formulae.html fnames=f.build_dependencies
description=
"Depends on when building from source" -%}
150 {%- if f.requirements.size
> 0 %}
152 {%- for r in f.requirements %}
154 {%- capture requirement -%}
157 {{ r.version | escape }}
158 {%- when
"macos" or
"maximum_macos" -%}
161 {{ r.name | capitalize | escape }}
165 {%- unless r.cask contains
"/" -%}
166 <a href=
"{{ site.baseurl }}/cask/{{ r.cask | uri_escape }}">{{ requirement }}
</a>
175 {%- if r.name ==
"arch" %} architecture
176 {%- elsif r.name contains
"maximum" %}
<= {{ r.version | escape }}
177 {%- else %}
>= {{ r.version | escape }}
180 {%- for c in r.contexts -%}
181 {%- if forloop.first %} ( {%- endif -%}
183 {%- unless forloop.last -%}, {% endunless -%}
184 {%- if forloop.last -%} ) {%- endif -%}
186 {%- unless forloop.last -%}, {% endunless -%}
191 {%- if f.conflicts_with.size
> 0 %}
193 {%- for conflict in f.conflicts_with %}
194 <strong><a href=
"{{ site.baseurl }}/formula/{{ conflict | uri_escape }}">{{ conflict | escape }}
</a></strong>
195 {%- unless forloop.last -%}, {% endunless -%}
201 {%- capture soft_indent %}
203 {%- capture hard_indent %}
204 {% endcapture %}
205 <table class=
"full-width">
207 <td>{{ f.caveats | escape | replace: soft_indent, hard_indent | strip | newline_to_br }}
</td>
214 {%- for interval in site.analytics.intervals -%}
215 {%- for category in site.analytics.categories.formulae -%}
216 {%- if forloop.parentloop.first == false and forloop.last -%}
220 <th colspan=
"2">{{ category.name }} ({{ interval.name }})
</th>
222 {%- for fa in site.data.analytics[category.path].homebrew-core[interval.path].formulae[fname] -%}
224 <td><code>{{ fa.formula | escape }}
</code></td>
225 <td class=
"number-data">{{ fa.count }}
</td>
229 <td><code>{{ fname | escape }}
</code></td>
230 <td class=
"number-data">0</td>