Skip to content

Commit

Permalink
Merge pull request #408 from EricFromCanada/master
Browse files Browse the repository at this point in the history
Split formula bottle support list into new table
  • Loading branch information
MikeMcQuaid committed Jan 22, 2021
2 parents d850680 + 45c3321 commit 064a6b6
Showing 1 changed file with 40 additions and 21 deletions.
61 changes: 40 additions & 21 deletions _layouts/formula.html
Expand Up @@ -32,38 +32,57 @@
<p><a target="_blank" href="{{ site.taps.core.remote }}/blob/HEAD/Formula/{{ f.name }}.rb">Formula code</a> on GitHub</p>
{%- endif %}

<p>Current versions:</p>
<p>Bottle (binary package)
{%- if f.bottle_disabled %} not required, support provided for all supported Homebrew platforms.
{%- elsif formula_path == "formula-linux" %} installation support provided for Linux platforms:
{%- else %} installation support provided for macOS releases:
{%- endif -%}</p>
{%- if f.bottle.stable %}
<table>
<tr>
<td>stable</td>
<td></td>
<td>{{ f.versions.stable }}</td>
<td><strong>Intel x86_64</strong></td>
<td style="text-transform:capitalize;">
{%- assign subsequent = false -%}
{%- for b in f.bottle.stable.files -%}
{%- unless b[0] contains "arm64_" or formula_path == "formula-linux" and b[0] != "x86_64_linux" -%}
{%- if subsequent -%}, {% endif -%}
{{ b[0] | replace: "x86_64", "64-bit" | replace: "_", "&nbsp;" }}
{%- assign subsequent = true -%}
{%- endunless -%}
{%- endfor -%}
</td>
</tr>
{%- if f.versions.devel %}
{%- unless formula_path == "formula-linux" %}
<tr>
<td><strong>Apple Silicon</strong></td>
<td style="text-transform:capitalize;">
{%- assign subsequent = false -%}
{%- for b in f.bottle.stable.files -%}
{%- if b[0] contains "arm64_" -%}
{%- if subsequent -%}, {% endif -%}
{{ b[0] | remove_first: "arm64_" | replace: "_", "&nbsp;" }}
{%- assign subsequent = true -%}
{%- endif -%}
{%- endfor -%}
</td>
</tr>
{%- endunless %}
</table>
{%- endif %}

<p>Current versions:</p>
<table>
<tr>
<td>devel</td>
<td>🛠</td>
<td><strong>stable</strong></td>
<td></td>
<td>{{ f.versions.stable }}</td>
</tr>
{%- endif -%}
{%- if f.versions.head %}
<tr>
<td>head</td>
<td><strong>head</strong></td>
<td>⚡️</td>
<td>{{ f.versions.head }}</td>
</tr>
{%- endif -%}
{%- if f.versions.bottle %}
<tr>
<td>bottle</td>
<td>🍾</td>
<td>
{%- for b in f.bottle.stable.files -%}
{{ b[0] }}
{%- unless forloop.last -%}, {% endunless %}
{%- endfor -%}
</td>
</tr>
{%- endif %}
</table>

Expand Down

0 comments on commit 064a6b6

Please sign in to comment.