Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split formula bottle support list into new table #408

Merged
merged 2 commits into from Jan 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>
EricFromCanada marked this conversation as resolved.
Show resolved Hide resolved
<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