From 84ffa2286c892ab24ff4ba05d0c49c0b982813f5 Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Tue, 7 May 2024 00:15:13 -0400 Subject: [PATCH] import & display full deprecate/disable reasons --- _config.yml | 20 ++++++++++++++++++++ _includes/cask.html | 6 +++++- _layouts/cask.html | 4 ++-- _layouts/formula.html | 4 ++-- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 86341ed392f..6dc73fa0bfa 100644 --- a/_config.yml +++ b/_config.yml @@ -58,6 +58,26 @@ analytics: - name: Build Errors path: build-error +# sync with Library/Homebrew/deprecate_disable.rb +reasons: + formula: + does_not_build: "does not build" + no_license: "has no license" + repo_archived: "has an archived upstream repository" + repo_removed: "has a removed upstream repository" + unmaintained: "is not maintained upstream" + unsupported: "is not supported upstream" + deprecated_upstream: "is deprecated upstream" + versioned_formula: "is a versioned formula" + checksum_mismatch: "was built with an initially released source file that had a different checksum than the current one" + cask: + discontinued: "is discontinued upstream" + moved_to_mas: "is now exclusively distributed on the Mac App Store" + no_longer_available: "is no longer available upstream" + no_longer_meets_criteria: "no longer meets the criteria for acceptable casks" + unmaintained: "is not maintained upstream" + unsigned: "is unsigned or does not meet signature requirements" + logo: /assets/img/homebrew.svg forkme_nwo: Homebrew/formulae.brew.sh diff --git a/_includes/cask.html b/_includes/cask.html index 4f417ea2888..eb4491ba014 100644 --- a/_includes/cask.html +++ b/_includes/cask.html @@ -6,7 +6,11 @@ {%- assign include_cdata = site.data.cask[include_data_token] -%} {%- endunless -%} {%- if include_cdata -%} - {{ include_cdata.token | escape }} + {{ include_cdata.token | escape }} {{ include_cdata.version | truncate: 20 | escape }} {{ include_cdata.desc | escape }} {{ include_cdata.name.first | escape }} diff --git a/_layouts/cask.html b/_layouts/cask.html index dbf44407177..f0d3c021746 100644 --- a/_layouts/cask.html +++ b/_layouts/cask.html @@ -6,8 +6,8 @@ {%- assign data_token = token | remove: "@" | remove: "." | replace: "+", "_" -%} {%- assign c = site.data.cask[data_token] -%}

{{ c.token | escape }} diff --git a/_layouts/formula.html b/_layouts/formula.html index a6a44fe28f7..82faed012ae 100644 --- a/_layouts/formula.html +++ b/_layouts/formula.html @@ -6,8 +6,8 @@ {%- assign data_fname = fname | remove: "@" | remove: "." | replace: "+", "_" -%} {%- assign f = site.data.formula[data_fname] -%}

{{ f.name | escape }}