From 9ae23ee6d654d3d2885f95d4ad4cf4bb721a9da1 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 16 Feb 2020 10:33:23 +0000 Subject: [PATCH] docs: `depends_on :linux` is now the identifier for Linux-only formulae - This was changed in https://github.com/Homebrew/linuxbrew-core/commit/6578a4aa86b80816cf0553f1d45828c0072197a4. --- docs/Homebrew-linuxbrew-core-Maintainer-Guide.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/Homebrew-linuxbrew-core-Maintainer-Guide.md b/docs/Homebrew-linuxbrew-core-Maintainer-Guide.md index eede7ab145439..366ae9830c000 100644 --- a/docs/Homebrew-linuxbrew-core-Maintainer-Guide.md +++ b/docs/Homebrew-linuxbrew-core-Maintainer-Guide.md @@ -260,13 +260,14 @@ push a bottle commit to Homebrew/linuxbrew-core. Make a PR to `Homebrew/linuxbrew-core` containing one commit named like this: `name (new formula)`. Keep only one commit in this PR, -squash and force push to your branch if needed. Include a comment: `# -tag "linux"` in the formula after the `url` stanza, so maintainers can -easily find Linux only formulae. +squash and force push to your branch if needed. Include the line +`depends_on :linux` in the dependencies section, so that maintainers +can easily find Linux-only formulae. For the bottle commit to be successful when new formulae are added, we have to insert an empty bottle block into the formula code. This -usually goes after the `linux` tag. +usually goes after the `url` and `sha256` lines, with a blank line in +between. ```ruby bottle do @@ -351,7 +352,7 @@ correct repository: ### Linux-only formulae If the formula is a Linux-only formula, it either: -- will contain the line `# tag "linux"` +- will contain the line `depends_on :linux` - won't have macOS bottles If the user hasn't used `brew bump-formula-pr`, or is submitting